You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by li...@apache.org on 2022/06/13 07:44:45 UTC
[pulsar] branch master updated: [feat][workflow] Upgrade to new version of documentation bot #16027
This is an automated email from the ASF dual-hosted git repository.
liuyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new f1d6b32b451 [feat][workflow] Upgrade to new version of documentation bot #16027
f1d6b32b451 is described below
commit f1d6b32b4513b8bec329b4fe13c8d10a934f1aa3
Author: Max Xu <ma...@gmail.com>
AuthorDate: Mon Jun 13 15:44:36 2022 +0800
[feat][workflow] Upgrade to new version of documentation bot #16027
---
.github/workflows/ci-documentbot.yml | 32 ++++++++++++++++++--------------
1 file changed, 18 insertions(+), 14 deletions(-)
diff --git a/.github/workflows/ci-documentbot.yml b/.github/workflows/ci-documentbot.yml
index b0970773cbc..03debde79aa 100644
--- a/.github/workflows/ci-documentbot.yml
+++ b/.github/workflows/ci-documentbot.yml
@@ -17,7 +17,7 @@
# under the License.
#
-name: Auto Labeling
+name: Documentation Bot
on:
pull_request_target :
@@ -25,25 +25,29 @@ on:
- 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.
+ - unlabeled
jobs:
- labeling:
+ label:
if: ${{ github.repository == 'apache/pulsar' }}
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
+ - name: Checkout action
+ uses: actions/checkout@v3
+ with:
+ repository: apache/pulsar-test-infra/docbot
+ ref: master
- - uses: apache/pulsar-test-infra/doc-label-check@master
+ - name: Set up Go
+ uses: actions/setup-go@v3
with:
- github-token: ${{ secrets.GITHUB_TOKEN }}
- label-pattern: '- \[(.*?)\] ?`(.+?)`' # matches '- [x] `label`'
+ go-version: 1.18
+
+ - name: Labeling
+ uses: apache/pulsar-test-infra/docbot@master
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ LABEL_WATCH_LIST: 'doc,doc-required,doc-not-needed,doc-complete'
+ LABEL_MISSING: 'doc-label-missing'
\ No newline at end of file