diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000..8e0c08c95c --- /dev/null +++ b/.github/labeler.yml @@ -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.' diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 85855468f2..d90e5c63ba 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -25,6 +25,7 @@ Resolves # - [ ] 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 diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000000..efcf3ed7c6 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -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