From e02ad8a2f9f7b02ded4f6afef8dc14595eb1091c Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Mon, 10 Nov 2025 11:10:31 +0800 Subject: [PATCH] ci: add pr-comment action (#22733) --- .github/workflows/pr-comment.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/pr-comment.yml diff --git a/.github/workflows/pr-comment.yml b/.github/workflows/pr-comment.yml new file mode 100644 index 0000000000..9132409c42 --- /dev/null +++ b/.github/workflows/pr-comment.yml @@ -0,0 +1,20 @@ +name: Thanks to the PR Contributor +on: + pull_request: + types: [closed] +jobs: + comment: + runs-on: ubuntu-latest + permissions: + pull-requests: write + if: | + github.event.pull_request.merged == true && + github.repository_owner == 'element-plus' && + !contains(github.event.pull_request.labels.*.name, '1st contribution') + steps: + - name: Comment on PR + uses: actions-cool/maintain-one-comment@v3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + body: | + @${{ github.event.pull_request.user.login }} Thanks for your contribution! :heart: