Skip to content

Commit

Permalink
Add auto labeler workflow (#455)
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Ohlsen <[email protected]>
(cherry picked from commit 3bdb4f6)
  • Loading branch information
ohltyler committed Mar 23, 2022
1 parent 649704e commit 17285cc
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
backport 1.x:
- "*"
- "*/*"
- "*/**/*"
- "*/**/**/*"
- "*/**/**/**/*"
- "*/**/**/**/**/*"
- "*/**/**/**/**/**/*"
- "*/**/**/**/**/**/**/*"
- "*/**/**/**/**/**/**/**/*"
- "*/**/**/**/**/**/**/**/**/*"
- ".github/**/*"

infra:
- ".github/**/*"
- "build.gradle"

documentation:
- "*.md"
- "release-notes/*"
- "docs/*"
26 changes: 26 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "Pull Request Labeler"
on:
pull_request_target:
branches:
- main
types:
- opened

jobs:
label:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: GitHub App token
id: github_app_token
uses: tibdex/[email protected]
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
installation_id: 22958780
- name: Label
uses: actions/labeler@v4
with:
repo-token: ${{ steps.github_app_token.outputs.token }}

0 comments on commit 17285cc

Please sign in to comment.