mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 20:40:11 +01:00
Add auto-labeling for some docs and infra. (#2481)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user