An open API service indexing awesome lists of open source software.

https://github.com/netlify/pr-labeler-action


https://github.com/netlify/pr-labeler-action

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# pr-labeler-action

Example usage:

Create a `.github/workflows/labeler.yml` file with the content of:

```yaml
name: Label PR
on:
pull_request:
types: [opened, edited]

jobs:
label-pr:
runs-on: ubuntu-latest
steps:
- uses: netlify/[email protected]
if: startsWith(github.event.pull_request.title, 'fix')
with:
token: '${{ secrets.GITHUB_TOKEN }}'
label: 'type: bug'
- uses: netlify/[email protected]
if: startsWith(github.event.pull_request.title, 'chore')
with:
token: '${{ secrets.GITHUB_TOKEN }}'
label: 'type: chore'
- uses: netlify/[email protected]
if: startsWith(github.event.pull_request.title, 'feat')
with:
token: '${{ secrets.GITHUB_TOKEN }}'
label: 'type: feature'
```