Skip to content

Commit

Permalink
Infrastructure: auto-label PRs (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
joelanford committed Jan 17, 2021
1 parent 9ceb2d6 commit 4701c36
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
area/main-binary:
- 'main.go'
- 'internal/**/*'
area/sdk:
- any:
- 'pkg/**/*'
- '!pkg/plugin/**/*'
area/plugin:
- 'pkg/plugin/**/*'
area/infra:
- '.github/**/*'
- 'Makefile'
- '.goreleaser.yml'
- '.golangci.yml'
area/deps:
- 'go.mod'
- 'go.sum'
area/docs:
- 'README.md'
area/testing:
- '**/*_test.go'
- '**/testdata/**/*'
12 changes: 12 additions & 0 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: "PR Labeler"
on:
- pull_request_target

jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@main
with:
sync-labels: true
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit 4701c36

Please sign in to comment.