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