Skip to content

Commit b459f54

Browse files
committed
chore: test comment action
1 parent 97965d2 commit b459f54

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/comment.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
on: issue_comment
2+
3+
jobs:
4+
pr_commented:
5+
# This job only runs for pull request comments
6+
name: PR comment
7+
if: ${{ github.event.issue.pull_request }}
8+
runs-on: ubuntu-latest
9+
steps:
10+
- run: |
11+
echo A comment on PR $NUMBER
12+
env:
13+
NUMBER: ${{ github.event.issue.number }}
14+
15+
issue_commented:
16+
# This job only runs for issue comments
17+
name: Issue comment
18+
if: ${{ !github.event.issue.pull_request }}
19+
runs-on: ubuntu-latest
20+
steps:
21+
- run: |
22+
echo A comment on issue $NUMBER
23+
env:
24+
NUMBER: ${{ github.event.issue.number }}
25+
26+
context:
27+
name: Context
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/github-script@v7
31+
with:
32+
script: |
33+
console.dir(context, { depth: 10 });

0 commit comments

Comments
 (0)