Skip to content

Commit e746521

Browse files
committed
comment on issue
1 parent 0c80388 commit e746521

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/comment-on-issue.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- uses: actions/checkout@v4
22-
- uses: ./.github/actions/comment-on-issue
22+
- uses: actions/github-script@v8
2323
with:
24-
issue_number: ${{ github.event.inputs.issue_number }}
24+
script: |
25+
// Use workflow_dispatch input if present, otherwise fall back to issue event
26+
const issue_number = context.payload.inputs?.issue_number
27+
? parseInt(context.payload.inputs.issue_number, 10)
28+
: context.issue.number;
29+
await github.issues.createComment({
30+
...context.repo,
31+
issue_number,
32+
body: "👋 Thank you for opening this issue! We will look into it as soon as possible."
33+
});

0 commit comments

Comments
 (0)