You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
PR Welcome
v1.2.0
Thanks for your contribution. But I maybe refuse.
name: PR Welcome
on:
pull_request_target:
types: [opened, edited, reopened]
jobs:
welcome:
runs-on: ubuntu-latest
steps:
- uses: actions-cool/pr-welcome@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
refuse-issue-label: 'xxx'
need-creator-authority: 'write'
comment: |
HI ~
δ½ ε₯½~
emoji: '+1, -1, heart'
reviewers: 'user1, user2'
close: true
Name | Desc | Type | Required |
---|---|---|---|
token | GitHub token | string | β |
refuse-issue-label | Only when the label included in the issue mentioned in the PR is triggered | string | β |
need-creator-authority | Filter the permissions of the creator. Option: read write admin |
string | β |
comment | Comment content after filter | string | β |
emoji | Comment emoji | string | β |
pr-emoji | Add emoji to PR | string | β |
close | If close pr | boolean | β |
reviewers | Add reviewers to PR | string | β |
- When has
refuse-issue-label
orneed-creator-authority
, it will start filter mode - Comment only once in a PR
- Triger event only support
pull_request
andpull_request_target
. When usepull_request
, the Action will only show the CI status icon(Because of permissions). When usepull_request_target
, must see - Can use v1 or v1.2.0
content | emoji |
---|---|
+1 |
π |
-1 |
π |
laugh |
π |
confused |
π |
heart |
β€οΈ |
hooray |
π |
rocket |
π |
eyes |
π |