Add auto-labeling for some docs and infra. (#2481)

This commit is contained in:
Jon Ross-Perkins
2022-12-20 11:17:45 -08:00
committed by GitHub
parent 9d234aa7e7
commit cc9ea4da66
+27 -1
View File
@@ -15,11 +15,29 @@ jobs:
uses: dorny/paths-filter@v2
with:
filters: |
documentation:
- '*.md'
- 'docs/**'
explorer:
- 'explorer/**'
infrastructure:
- 'BUILD'
- 'WORKSPACE'
- '.*'
- '.*/**'
- 'bazel/**'
- 'scripts/**'
toolchain:
- 'toolchain/**'
- id: documentation
if: steps.filter.outputs.docs == 'true'
run: |
gh pr edit "${PR}" --add-label "documentation"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR: ${{ github.event.pull_request.html_url }}
- id: explorer
if: steps.filter.outputs.explorer == 'true'
run: |
@@ -28,7 +46,15 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR: ${{ github.event.pull_request.html_url }}
- id: assign-toolchain
- id: infrastructure
if: steps.filter.outputs.docs == 'true'
run: |
gh pr edit "${PR}" --add-label "infrastructure"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR: ${{ github.event.pull_request.html_url }}
- id: toolchain
if: steps.filter.outputs.toolchain == 'true'
run: |
gh pr edit "${PR}" --add-label "toolchain"