Skip to content

Commit a220cad

Browse files
committed
comment-on-issue workflow from action-club
1 parent 0a8d381 commit a220cad

File tree

2 files changed

+9
-32
lines changed

2 files changed

+9
-32
lines changed

.github/actions/comment-on-issue/action.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

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

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
description: "Issue number"
1111
required: true
1212
type: number
13+
comment_body:
14+
description: "Comment text"
15+
required: true
16+
type: string
1317

1418
permissions:
1519
issues: write
@@ -20,16 +24,9 @@ jobs:
2024
steps:
2125
- uses: actions/checkout@v4
2226

23-
- uses: actions/github-script@v8
27+
- name: Run Comment Action
28+
uses: recursivezero/action-club/.github/actions/comment-on-issue@v0.2.57
2429
with:
25-
script: |
26-
// For workflow_dispatch, use the input; for issue events, use context.issue.number
27-
const issue_number = context.payload.inputs?.issue_number
28-
? parseInt(context.payload.inputs.issue_number, 10)
29-
: context.issue.number;
30-
31-
await github.rest.issues.createComment({
32-
...context.repo,
33-
issue_number,
34-
body: "👋 Thank you for opening this issue! We will look into it as soon as possible."
35-
});
30+
issue_number: ${{ github.event.inputs.issue_number }}
31+
comment_body: ${{ github.event.inputs.comment_body }}
32+
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)