From b73bc66e6a6e37b8ccdd4e966cbe44d05c9f8f3f Mon Sep 17 00:00:00 2001 From: Jade-fu <32590310+richerfu@users.noreply.github.com> Date: Mon, 17 Jun 2024 19:20:11 +0800 Subject: [PATCH] ci: add metion workflow --- .github/workflows/metion.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/metion.yml diff --git a/.github/workflows/metion.yml b/.github/workflows/metion.yml new file mode 100644 index 0000000..f77e6b6 --- /dev/null +++ b/.github/workflows/metion.yml @@ -0,0 +1,31 @@ +name: Auto Mention on Issue + +on: + issues: + types: [opened, reopened] + pull_request: + types: [opened,reopened] + +permissions: + issues: write + pull-requests: write + +jobs: + mention: + runs-on: ubuntu-latest + steps: + - name: issue mention user + if: github.event_name == 'issues' + uses: peter-evans/create-or-update-comment@v4 + with: + issue-number: ${{ github.event.issue.number }} + body: | + @richerfu Please check this issue, thanks. + + - name: pr mention user + if: github.event_name == 'pull_request' + uses: peter-evans/create-or-update-comment@v4 + with: + issue-number: ${{ github.event.pull_request.number }} + body: | + @richerfu Please check this PR, thanks.