Skip to content

Commit

Permalink
ci: add metion workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
richerfu authored Jun 17, 2024
1 parent 79b7345 commit b73bc66
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/metion.yml
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit b73bc66

Please sign in to comment.