diff --git a/.github/doc-label-config.yml b/.github/doc-label-config.yml new file mode 100644 index 000000000000..60f20533a1d2 --- /dev/null +++ b/.github/doc-label-config.yml @@ -0,0 +1,4 @@ +Doc not needed: + - '- \[x\] This PR does not require documentation updates.' +Doc update required: + - '- \[ \] This PR does not require documentation updates.' diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 1c62e4ad4105..c0bc418013d2 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -15,5 +15,6 @@ Please explain IN DETAIL what the changes are in this PR and why they are needed - [ ] I have written the necessary rustdoc comments. - [ ] I have added the necessary unit tests and integration tests. +- [ ] This PR does not require documentation updates. ## Refer to a related PR or issue link (optional) diff --git a/.github/workflows/doc-label.yml b/.github/workflows/doc-label.yml new file mode 100644 index 000000000000..ba8bf61f759d --- /dev/null +++ b/.github/workflows/doc-label.yml @@ -0,0 +1,19 @@ +name: "PR Doc Labeler" +on: + pull_request: + types: [opened, edited] + +permissions: + pull-requests: write + contents: read + +jobs: + triage: + if: ${{ github.repository == 'GreptimeTeam/greptimedb' }} + runs-on: ubuntu-latest + steps: + - uses: github/issue-labeler@v3.3 + with: + configuration-path: .github/doc-label-config.yml + enable-versioned-regex: false + repo-token: ${{ github.token }}