Skip to content

Commit

Permalink
Add document label check robot for Pull requests (apache#11977)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengtao1998 authored Sep 22, 2021
1 parent 4ddbf6f commit d4702ed
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ Check the box below and label this PR (if you have committer privilege).

Need to update docs?

- [ ] doc-required
- [ ] `doc-required`

(If you need help on updating docs, create a doc issue)

- [ ] no-need-doc
- [ ] `no-need-doc`

(Please explain why)

- [ ] doc
- [ ] `doc`

(If this PR contains doc changes)

Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/ci-documentbot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Auto Labeling

on:
pull_request:
types:
- opened
- edited
- labeled



# A GitHub token created for a PR coming from a fork doesn't have
# 'admin' or 'write' permission (which is required to add labels)
# To avoid this issue, you can use the `scheduled` event and run
# this action on a certain interval.And check the label about the
# document.

jobs:
labeling:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: apache/pulsar-test-infra/doc-label-check@master
with:
github-token: ${{ secrets.PULSARBOT_TOKEN }}
label-pattern: '- \[(.*?)\] ?`(.+?)`' # matches '- [x] `label`'
bot-name: 'pr-bot-test'

0 comments on commit d4702ed

Please sign in to comment.