Skip to content

Commit

Permalink
Improve usage example
Browse files Browse the repository at this point in the history
Co-Authored-By: TraumaER <traumaer@users.noreply.github.com>
  • Loading branch information
TimonVS and TraumaER committed Sep 23, 2019
1 parent 8ef332f commit 63f01ab
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@ Can be used in combination with [Release Drafter](https://github.com/toolmantim/
Add `.github/workflows/pr-labeler.yml` with the following:

```yml
name: Label PRs
on: [pull_request]
name: PR Labeler
on:
pull_request:
types: [opened]

jobs:
pr-labeler:
runs-on: ubuntu-latest
steps:
- uses: TimonVS/pr-labeler@master
if: github.event.action == 'opened'
- uses: TimonVS/pr-labeler-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```
Expand All @@ -37,4 +39,4 @@ Then if a pull request is opened with the branch name `feature/218-add-emoji-sup

### Wildcard branches in configuration

You can use `*` as a wildcard for matching multiple branch names. See https://www.npmjs.com/package/matcher for more information about wildcard options.
You can use `*` as a wildcard for matching multiple branch names. See https://www.npmjs.com/package/matcher for more information about wildcard options.

0 comments on commit 63f01ab

Please sign in to comment.