Skip to content

Commit 53364de

Browse files
committed
Revert "[feat][workflow] Upgrade to new version of documentation bot apache#16027"
This reverts commit f1d6b32.
1 parent f1d6b32 commit 53364de

File tree

1 file changed

+14
-18
lines changed

1 file changed

+14
-18
lines changed

.github/workflows/ci-documentbot.yml

+14-18
Original file line numberDiff line numberDiff line change
@@ -17,37 +17,33 @@
1717
# under the License.
1818
#
1919

20-
name: Documentation Bot
20+
name: Auto Labeling
2121

2222
on:
2323
pull_request_target :
2424
types:
2525
- opened
2626
- edited
2727
- labeled
28-
- unlabeled
28+
29+
30+
31+
# A GitHub token created for a PR coming from a fork doesn't have
32+
# 'admin' or 'write' permission (which is required to add labels)
33+
# To avoid this issue, you can use the `scheduled` event and run
34+
# this action on a certain interval.And check the label about the
35+
# document.
2936

3037
jobs:
31-
label:
38+
labeling:
3239
if: ${{ github.repository == 'apache/pulsar' }}
3340
permissions:
3441
pull-requests: write
3542
runs-on: ubuntu-latest
3643
steps:
37-
- name: Checkout action
38-
uses: actions/checkout@v3
39-
with:
40-
repository: apache/pulsar-test-infra/docbot
41-
ref: master
44+
- uses: actions/checkout@v2
4245

43-
- name: Set up Go
44-
uses: actions/setup-go@v3
46+
- uses: apache/pulsar-test-infra/doc-label-check@master
4547
with:
46-
go-version: 1.18
47-
48-
- name: Labeling
49-
uses: apache/pulsar-test-infra/docbot@master
50-
env:
51-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52-
LABEL_WATCH_LIST: 'doc,doc-required,doc-not-needed,doc-complete'
53-
LABEL_MISSING: 'doc-label-missing'
48+
github-token: ${{ secrets.GITHUB_TOKEN }}
49+
label-pattern: '- \[(.*?)\] ?`(.+?)`' # matches '- [x] `label`'

0 commit comments

Comments
 (0)