From 3c82b4b5a919e4dd33c27a51f452574a55846465 Mon Sep 17 00:00:00 2001 From: fengmk2 Date: Fri, 11 Aug 2023 23:41:57 +0800 Subject: [PATCH] chore: add pr welcome action (#5249) follow https://github.com/ant-design/ant-design/pull/44184 --- .github/workflows/pr-contributor-welcome.yml | 34 ++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/pr-contributor-welcome.yml diff --git a/.github/workflows/pr-contributor-welcome.yml b/.github/workflows/pr-contributor-welcome.yml new file mode 100644 index 0000000000..ce5382bee9 --- /dev/null +++ b/.github/workflows/pr-contributor-welcome.yml @@ -0,0 +1,34 @@ +# 当 PR 被合并时,留言欢迎加入共建群 +name: PullRequest Contributor Welcome + +on: + pull_request_target: + types: + - closed + paths: + - 'app/**' + - 'site/**' + - 'config/**' + - 'lib/**' + - 'test/**' + - '*.js' + - '*.ts' + +jobs: + check-merged: + runs-on: ubuntu-latest + needs: read-file + if: github.event.pull_request.merged == true + steps: + - uses: actions-cool/maintain-one-comment@v3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + body: | + 🎉 Thanks for contribution. Please feel free to join DingTalk Social Community (Provide the PR link please). + + 🎉 感谢参与贡献,欢迎扫码(或搜索群号 21751340)加入钉钉社区(进群后请提供 PR 地址)。 + + + + + body-include: ''