Skip to content

Commit

Permalink
chore(ci): auto doc labeler job (GreptimeTeam#2998)
Browse files Browse the repository at this point in the history
* chore(ci): auto doc labeler job

Signed-off-by: Ruihang Xia <[email protected]>

* tweak rules

Signed-off-by: Ruihang Xia <[email protected]>

---------

Signed-off-by: Ruihang Xia <[email protected]>
  • Loading branch information
waynexia authored Dec 25, 2023
1 parent 417be13 commit 3bd2f79
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/doc-label-config.yml
Original file line number Diff line number Diff line change
@@ -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.'
1 change: 1 addition & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
19 changes: 19 additions & 0 deletions .github/workflows/doc-label.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
configuration-path: .github/doc-label-config.yml
enable-versioned-regex: false
repo-token: ${{ github.token }}

0 comments on commit 3bd2f79

Please sign in to comment.