Skip to content

Commit 4701c36

Browse files
authored
Infrastructure: auto-label PRs (#77)
1 parent 9ceb2d6 commit 4701c36

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/labeler.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
area/main-binary:
2+
- 'main.go'
3+
- 'internal/**/*'
4+
area/sdk:
5+
- any:
6+
- 'pkg/**/*'
7+
- '!pkg/plugin/**/*'
8+
area/plugin:
9+
- 'pkg/plugin/**/*'
10+
area/infra:
11+
- '.github/**/*'
12+
- 'Makefile'
13+
- '.goreleaser.yml'
14+
- '.golangci.yml'
15+
area/deps:
16+
- 'go.mod'
17+
- 'go.sum'
18+
area/docs:
19+
- 'README.md'
20+
area/testing:
21+
- '**/*_test.go'
22+
- '**/testdata/**/*'

.github/workflows/pr-labeler.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: "PR Labeler"
2+
on:
3+
- pull_request_target
4+
5+
jobs:
6+
triage:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/labeler@main
10+
with:
11+
sync-labels: true
12+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)