Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
terminal

GitHub Action

PR Welcome

v1.1.2

PR Welcome

terminal

PR Welcome

Thanks for your contribution. πŸ˜… But I refuse

Installation

Copy and paste the following snippet into your .yml file.

              

- name: PR Welcome

uses: actions-cool/[email protected]

Learn more about this action in actions-cool/pr-welcome

Choose a version

πŸ˜… PR Welcome

Thanks for your contribution. But I maybe refuse.

How to use?

name: PR Welcome

on:
  pull_request_target:
    types: [opened, edited, reopened]

jobs:
  welcome:
    runs-on: ubuntu-latest
    steps:
      - uses: actions-cool/[email protected]
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          refuse-issue-label: 'xxx'
          need-creator-authority: 'write'
          comment: |
            HI ~

            δ½ ε₯½~
          emoji: '+1, -1, heart'
          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 βœ–

Note

  • When has refuse-issue-label or need-creator-authority, it will start filter mode
  • Comment only once in a PR
  • Triger event only support pull_request and pull_request_target. When use pull_request, the Action will only show the CI status icon(Because of permissions). When use pull_request_target, must see

Changelog

CHANGELOG

Emoji List

content emoji
+1 πŸ‘
-1 πŸ‘Ž
laugh πŸ˜„
confused πŸ˜•
heart ❀️
hooray πŸŽ‰
rocket πŸš€
eyes πŸ‘€

LICENSE

MIT