diff --git a/README.md b/README.md index b8e19751..fa8f6ddd 100644 --- a/README.md +++ b/README.md @@ -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 }} ``` @@ -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. \ No newline at end of file +You can use `*` as a wildcard for matching multiple branch names. See https://www.npmjs.com/package/matcher for more information about wildcard options.