From b68512f479217f5724555b63ee81825257edcc45 Mon Sep 17 00:00:00 2001 From: xrkffgg Date: Fri, 19 Feb 2021 16:47:16 +0800 Subject: [PATCH] ci: create pr-refuse.yml (#29361) * Create pr-refuse.yml * Update .github/workflows/pr-refuse.yml --- .github/workflows/pr-refuse.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/pr-refuse.yml diff --git a/.github/workflows/pr-refuse.yml b/.github/workflows/pr-refuse.yml new file mode 100644 index 0000000000..0a9196d15a --- /dev/null +++ b/.github/workflows/pr-refuse.yml @@ -0,0 +1,20 @@ +name: PR Refuse + +on: + pull_request_target: + types: [opened, edited] + +jobs: + refuse: + runs-on: ubuntu-latest + steps: + - uses: actions-cool/pr-welcome@v1.1.1 + with: + refuse-issue-label: '🎱 Collaborate PR only' + need-creator-authority: 'write' + comment: | + Hi @${{ github.event.pull_request.user.login }}. The issue mentioned in this PR needs to be confirmed with the designer or core team. This PR is temporarily not accepted. Thank you again for your contribution! 😊 + + 你好 @${{ github.event.pull_request.user.login }}。这个 PR 提及的 issue 需要和设计师或核心团队进行确认,暂时不接受 PR,再次感谢你的贡献!😊 + pr-emoji: 'heart' + close: true