Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat][workflow] Upgrade to new version of documentation bot #16027

Merged
merged 1 commit into from
Jun 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 18 additions & 14 deletions .github/workflows/ci-documentbot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,33 +17,37 @@
# under the License.
#

name: Auto Labeling
name: Documentation Bot

on:
pull_request_target :
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.
- 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
Comment on lines +37 to +41
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this doesn't make sense.


- 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'