Skip to content

Commit 2d94ca6

Browse files
committed
chore(gh): add pull request labels (#455)
Add pull request labels. Signed-off-by: Ryan Johnson <ryan.johnson@broadcom.com>
1 parent 400691c commit 2d94ca6

File tree

3 files changed

+65
-0
lines changed

3 files changed

+65
-0
lines changed

.github/labeler-pull-requests.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
chore:
3+
- changed-files:
4+
- any-glob-to-any-file:
5+
- ".github/**/*"
6+
- ".gitignore"
7+
- ".release"
8+
- "scripts/**/*"
9+
- "tools/**/*"
10+
- "go.mod"
11+
- "go.sum"
12+
dependencies:
13+
- changed-files:
14+
- any-glob-to-any-file:
15+
- "go.mod"
16+
- "go.sum"
17+
documentation:
18+
- changed-files:
19+
- any-glob-to-any-file:
20+
- "**/*.md"
21+
- "examples/**/*"
22+
- "docs/**/*"
23+
github-actions:
24+
- changed-files:
25+
- any-glob-to-any-file:
26+
- ".github/workflows/**/*"
27+
needs-review:
28+
- changed-files:
29+
- any-glob-to-any-file:
30+
- "**"
31+
provider:
32+
- changed-files:
33+
- any-glob-to-any-file:
34+
- "internal/**/*"
35+
- "Makefile"
36+
- "go.mod"
37+
- "go.sum"
38+
- "main.go"
File renamed without changes.

.github/workflows/pull-requests.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: Pull Request Labels
3+
4+
on:
5+
pull_request_target:
6+
branches:
7+
- main
8+
types:
9+
- opened
10+
- synchronize
11+
- reopened
12+
- edited
13+
- ready_for_review
14+
15+
jobs:
16+
labeler:
17+
name: Labeler
18+
runs-on: ubuntu-latest
19+
permissions:
20+
contents: read
21+
pull-requests: write
22+
steps:
23+
- name: Apply Labels
24+
uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
25+
with:
26+
configuration-path: .github/labeler-pull-requests.yml
27+
repo-token: '${{ secrets.GITHUB_TOKEN }}'

0 commit comments

Comments
 (0)