Skip to content

Commit 448d6b9

Browse files
authored
feat: added an auto-labeller for documentation PRs. (#877)
1 parent d97ae4c commit 448d6b9

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/labeler.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
documentation:
2+
- '**Doxyfile'
3+
- '**docpages/**'
4+
- '**/*.h'
5+
- '**/documentation.yml'

.github/workflows/labeler.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: "Pull Request Labeler"
2+
on:
3+
- pull_request_target
4+
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
triage:
10+
permissions:
11+
contents: read
12+
pull-requests: write
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Harden Runner
16+
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09 # v2.5.1
17+
with:
18+
egress-policy: audit
19+
20+
- uses: actions/labeler@ac9175f8a1f3625fd0d4fb234536d26811351594 # v4.3.0
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)