forked from apache/pulsar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add document label check robot for Pull requests (apache#11977)
- Loading branch information
1 parent
4ddbf6f
commit d4702ed
Showing
2 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |