Skip to content

Commit

Permalink
chore(gh): add pull request labels
Browse files Browse the repository at this point in the history
Add pull request labels.

Signed-off-by: Ryan Johnson <[email protected]>
  • Loading branch information
tenthirtyam committed Nov 19, 2024
1 parent 33e482f commit 3aeb5b0
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/labeler-pull-requests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
chore:
- changed-files:
- any-glob-to-any-file:
- ".github/**/*"
- ".gitignore"
- "scripts/**/*"
- "go.mod"
- "go.sum"
dependencies:
- changed-files:
- any-glob-to-any-file:
- "go.mod"
- "go.sum"
documentation:
- changed-files:
- any-glob-to-any-file:
- "**/*.md"
- "examples/**/*"
- "docs/**/*"
- "website/**/*"
github-actions:
- changed-files:
- any-glob-to-any-file:
- ".github/workflows/**/*"
needs-review:
- changed-files:
- any-glob-to-any-file:
- "**"
provider:
- changed-files:
- any-glob-to-any-file:
- "vra/**/*"
- "GNUmakefile"
- "go.mod"
- "go.sum"
- "main.go"
27 changes: 27 additions & 0 deletions .github/workflows/pull-requests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Pull Request Labels

on:
pull_request_target:
branches:
- main
types:
- opened
- synchronize
- reopened
- edited
- ready_for_review

jobs:
labeler:
name: Labeler
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Apply Labels
uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
with:
configuration-path: .github/labeler-pull-requests.yml
repo-token: '${{ secrets.GITHUB_TOKEN }}'

0 comments on commit 3aeb5b0

Please sign in to comment.