Update ci-bot.yml (#181)
This commit is contained in:
parent
f2eef465a4
commit
709a31d863
|
@ -3,13 +3,17 @@ on:
|
||||||
issue_comment:
|
issue_comment:
|
||||||
types:
|
types:
|
||||||
- created
|
- created
|
||||||
|
|
||||||
pull_request_review_comment:
|
pull_request_review_comment:
|
||||||
types:
|
types:
|
||||||
- created
|
- created
|
||||||
|
|
||||||
issues:
|
issues:
|
||||||
types:
|
types:
|
||||||
- opened
|
- opened
|
||||||
pull_request:
|
|
||||||
|
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target
|
||||||
|
pull_request_target:
|
||||||
types:
|
types:
|
||||||
- opened
|
- opened
|
||||||
|
|
||||||
|
@ -19,11 +23,15 @@ env:
|
||||||
assign
|
assign
|
||||||
auto-cc
|
auto-cc
|
||||||
cc
|
cc
|
||||||
|
|
||||||
|
# This plugins is for author of issue or PR
|
||||||
|
AUTHOR_PLUGINS: |-
|
||||||
label-bug
|
label-bug
|
||||||
label-documentation
|
label-documentation
|
||||||
label-enhancement
|
label-enhancement
|
||||||
label-question
|
label-question
|
||||||
|
retest
|
||||||
|
|
||||||
# This plugins is for organization member or repository member
|
# This plugins is for organization member or repository member
|
||||||
MEMBERS_PLUGINS: |-
|
MEMBERS_PLUGINS: |-
|
||||||
label-duplicate
|
label-duplicate
|
||||||
|
@ -32,8 +40,13 @@ env:
|
||||||
label-invalid
|
label-invalid
|
||||||
label-kind
|
label-kind
|
||||||
label-wontfix
|
label-wontfix
|
||||||
|
label-bug
|
||||||
|
label-documentation
|
||||||
|
label-enhancement
|
||||||
|
label-question
|
||||||
lifecycle
|
lifecycle
|
||||||
|
retest
|
||||||
|
|
||||||
# This plugins is for in the REVIEWERS environment variable
|
# This plugins is for in the REVIEWERS environment variable
|
||||||
REVIEWERS_PLUGINS: |-
|
REVIEWERS_PLUGINS: |-
|
||||||
label-lgtm
|
label-lgtm
|
||||||
|
@ -41,6 +54,7 @@ env:
|
||||||
|
|
||||||
# This plugins is for in the APPROVERS environment variable
|
# This plugins is for in the APPROVERS environment variable
|
||||||
APPROVERS_PLUGINS: |-
|
APPROVERS_PLUGINS: |-
|
||||||
|
label
|
||||||
merge
|
merge
|
||||||
|
|
||||||
# This plugins is for in the MAINTAINERS environment variable
|
# This plugins is for in the MAINTAINERS environment variable
|
||||||
|
@ -69,16 +83,34 @@ env:
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
|
||||||
|
permissions:
|
||||||
|
actions: write
|
||||||
|
checks: read
|
||||||
|
contents: read
|
||||||
|
deployments: none
|
||||||
|
id-token: none
|
||||||
|
issues: write
|
||||||
|
discussions: read
|
||||||
|
packages: none
|
||||||
|
pages: none
|
||||||
|
pull-requests: write
|
||||||
|
repository-projects: read
|
||||||
|
security-events: none
|
||||||
|
statuses: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
issue_opened:
|
bot:
|
||||||
name: Issue Opened
|
name: Bot
|
||||||
if: ${{ github.event_name == 'issues' }}
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: wzshiming/gh-ci-bot@master
|
- name: Issue Opened
|
||||||
|
uses: wzshiming/gh-ci-bot@v1
|
||||||
|
if: ${{ github.event_name == 'issues' }}
|
||||||
env:
|
env:
|
||||||
LOGIN: ${{ github.event.issue.user.login }}
|
LOGIN: ${{ github.event.issue.user.login }}
|
||||||
|
AUTHOR: ${{ github.event.issue.user.login }}
|
||||||
MESSAGE: ${{ github.event.issue.body }}
|
MESSAGE: ${{ github.event.issue.body }}
|
||||||
ISSUE_NUMBER: ${{ github.event.issue.number }}
|
ISSUE_NUMBER: ${{ github.event.issue.number }}
|
||||||
AUTHOR_ASSOCIATION: ${{ github.event.issue.author_association }}
|
AUTHOR_ASSOCIATION: ${{ github.event.issue.author_association }}
|
||||||
|
@ -89,14 +121,12 @@ jobs:
|
||||||
感谢您的反馈!
|
感谢您的反馈!
|
||||||
我们会尽快跟进.
|
我们会尽快跟进.
|
||||||
|
|
||||||
pr_opened:
|
- name: PR Opened
|
||||||
name: PR Opened
|
uses: wzshiming/gh-ci-bot@v1
|
||||||
if: ${{ github.event_name == 'pull_request' }}
|
if: ${{ github.event_name == 'pull_request_target' }}
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: wzshiming/gh-ci-bot@master
|
|
||||||
env:
|
env:
|
||||||
LOGIN: ${{ github.event.pull_request.user.login }}
|
LOGIN: ${{ github.event.pull_request.user.login }}
|
||||||
|
AUTHOR: ${{ github.event.pull_request.user.login }}
|
||||||
MESSAGE: ${{ github.event.pull_request.body }}
|
MESSAGE: ${{ github.event.pull_request.body }}
|
||||||
ISSUE_NUMBER: ${{ github.event.pull_request.number }}
|
ISSUE_NUMBER: ${{ github.event.pull_request.number }}
|
||||||
AUTHOR_ASSOCIATION: ${{ github.event.pull_request.author_association }}
|
AUTHOR_ASSOCIATION: ${{ github.event.pull_request.author_association }}
|
||||||
|
@ -105,44 +135,38 @@ jobs:
|
||||||
GREETING: |-
|
GREETING: |-
|
||||||
Hi @${{ github.event.pull_request.user.login }},
|
Hi @${{ github.event.pull_request.user.login }},
|
||||||
感谢您的 PR !
|
感谢您的 PR !
|
||||||
我们会尽快跟进.
|
如果 PR 已经准备就绪可以 `/auto-cc` ,我们会尽快跟进.
|
||||||
|
|
||||||
issue_commented:
|
- name: Issue Commented
|
||||||
name: Issue Commented
|
uses: wzshiming/gh-ci-bot@v1
|
||||||
if: ${{ github.event_name == 'issue_comment' && !github.event.issue.pull_request }}
|
if: ${{ github.event_name == 'issue_comment' && !github.event.issue.pull_request }}
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: wzshiming/gh-ci-bot@master
|
|
||||||
env:
|
env:
|
||||||
LOGIN: ${{ github.event.comment.user.login }}
|
LOGIN: ${{ github.event.comment.user.login }}
|
||||||
|
AUTHOR: ${{ github.event.issue.user.login }}
|
||||||
MESSAGE: ${{ github.event.comment.body }}
|
MESSAGE: ${{ github.event.comment.body }}
|
||||||
ISSUE_NUMBER: ${{ github.event.issue.number }}
|
ISSUE_NUMBER: ${{ github.event.issue.number }}
|
||||||
AUTHOR_ASSOCIATION: ${{ github.event.comment.author_association }}
|
AUTHOR_ASSOCIATION: ${{ github.event.comment.author_association }}
|
||||||
ISSUE_KIND: issue
|
ISSUE_KIND: issue
|
||||||
TYPE: comment
|
TYPE: comment
|
||||||
|
|
||||||
pr_review_commented:
|
- name: PR Review Commented
|
||||||
name: PR Review Commented
|
uses: wzshiming/gh-ci-bot@v1
|
||||||
if: ${{ github.event_name == 'pull_request_review_comment' }}
|
if: ${{ github.event_name == 'pull_request_review_comment' }}
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: wzshiming/gh-ci-bot@master
|
|
||||||
env:
|
env:
|
||||||
LOGIN: ${{ github.event.comment.user.login }}
|
LOGIN: ${{ github.event.comment.user.login }}
|
||||||
|
AUTHOR: ${{ github.event.pull_request.user.login }}
|
||||||
MESSAGE: ${{ github.event.comment.body }}
|
MESSAGE: ${{ github.event.comment.body }}
|
||||||
ISSUE_NUMBER: ${{ github.event.pull_request.number }}
|
ISSUE_NUMBER: ${{ github.event.pull_request.number }}
|
||||||
AUTHOR_ASSOCIATION: ${{ github.event.comment.author_association }}
|
AUTHOR_ASSOCIATION: ${{ github.event.comment.author_association }}
|
||||||
ISSUE_KIND: pr
|
ISSUE_KIND: pr
|
||||||
TYPE: comment
|
TYPE: comment
|
||||||
|
|
||||||
pr_commented:
|
- name: PR Commented
|
||||||
name: PR Commented
|
uses: wzshiming/gh-ci-bot@v1
|
||||||
if: ${{ github.event_name == 'issue_comment' && github.event.issue.pull_request }}
|
if: ${{ github.event_name == 'issue_comment' && github.event.issue.pull_request }}
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: wzshiming/gh-ci-bot@master
|
|
||||||
env:
|
env:
|
||||||
LOGIN: ${{ github.event.comment.user.login }}
|
LOGIN: ${{ github.event.comment.user.login }}
|
||||||
|
AUTHOR: ${{ github.event.issue.user.login }}
|
||||||
MESSAGE: ${{ github.event.comment.body }}
|
MESSAGE: ${{ github.event.comment.body }}
|
||||||
ISSUE_NUMBER: ${{ github.event.issue.number }}
|
ISSUE_NUMBER: ${{ github.event.issue.number }}
|
||||||
AUTHOR_ASSOCIATION: ${{ github.event.comment.author_association }}
|
AUTHOR_ASSOCIATION: ${{ github.event.comment.author_association }}
|
||||||
|
|
Loading…
Reference in New Issue