-
-
Notifications
You must be signed in to change notification settings - Fork 2
27 lines (25 loc) · 689 Bytes
/
Copy pathmentionsActions.yml
File metadata and controls
27 lines (25 loc) · 689 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: "Mentioned Actions"
run-name: "Mentioned Actions"
on:
issue_comment:
types: [created]
jobs:
actionsResponse:
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Create Comment"
if: contains(github.event.comment.body, '@github-actions')
uses: actions/github-script@v8
with:
script: |
github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
body: "Hello!"
})