File tree 1 file changed +18
-14
lines changed
1 file changed +18
-14
lines changed Original file line number Diff line number Diff line change 17
17
# under the License.
18
18
#
19
19
20
- name : Auto Labeling
20
+ name : Documentation Bot
21
21
22
22
on :
23
23
pull_request_target :
24
24
types :
25
25
- opened
26
26
- edited
27
27
- labeled
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.
28
+ - unlabeled
36
29
37
30
jobs :
38
- labeling :
31
+ label :
39
32
if : ${{ github.repository == 'apache/pulsar' }}
40
33
permissions :
41
34
pull-requests : write
42
35
runs-on : ubuntu-latest
43
36
steps :
44
- - uses : actions/checkout@v2
37
+ - name : Checkout action
38
+ uses : actions/checkout@v3
39
+ with :
40
+ repository : apache/pulsar-test-infra/docbot
41
+ ref : master
45
42
46
- - uses : apache/pulsar-test-infra/doc-label-check@master
43
+ - name : Set up Go
44
+ uses : actions/setup-go@v3
47
45
with :
48
- github-token : ${{ secrets.GITHUB_TOKEN }}
49
- label-pattern : ' - \[(.*?)\] ?`(.+?)`' # matches '- [x] `label`'
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'
You can’t perform that action at this time.
0 commit comments