Skip to content

Commit

Permalink
ci: Automate PR labeling (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanuppal authored Jan 28, 2025
1 parent 43de9be commit 6b840f9
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/labels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
"Code: Verilator":
- changed-files:
- any-glob-to-any-file: "verilator/**"

"Code: Verilog Support":
- changed-files:
- any-glob-to-any-file: "verilog-support/**"

"Code: Spade Support":
- changed-files:
- any-glob-to-any-file: "spade-support/**"

"Infra: CI":
- changed-files:
- any-glob-to-any-file: ".github/workflows/*"
- any-glob-to-any-file: ".github/labels.yaml"

"Documentation":
- changed-files:
- any-glob-to-any-file: "**/*.md"
- any-glob-to-any-file: "assets/**"
15 changes: 15 additions & 0 deletions .github/workflows/labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: "Pull Request Labeler"
on:
- pull_request_target

jobs:
labeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/labeler@v5
with:
configuration-path: ".github/labels.yaml"

0 comments on commit 6b840f9

Please sign in to comment.