Skip to content

Commit

Permalink
chore(ci): Apply doc needed label automatically on PRs (#733)
Browse files Browse the repository at this point in the history
  • Loading branch information
Savio-Sou authored Feb 3, 2023
1 parent 9ff654c commit 2d6b27c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Add/remove 'doc needed' label if issue/PR contains the line '- [x] This PR requires documentation updates when merged.'
"doc needed":
- '- \[x\] This PR requires documentation updates when merged.'
1 change: 1 addition & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Resolves # <!-- link to issue -->
- [ ] I have [linked](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue) this PR to the issue(s) that it resolves.
- [ ] I have reviewed the changes on GitHub, line by line.
- [ ] I have ensured all changes are covered in the description.
- [ ] This PR requires documentation updates when merged.

# Additional context

Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "Labeler"
on:
pull_request_target:
types:
- opened
- reopened
- edited
- synchronize

permissions:
pull-requests: write
contents: read

jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: github/issue-labeler@v2.6
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/labeler.yml
enable-versioned-regex: 0

0 comments on commit 2d6b27c

Please sign in to comment.