Skip to content

Commit 0c80388

Browse files
committed
update
1 parent 155b871 commit 0c80388

File tree

2 files changed

+10
-25
lines changed

2 files changed

+10
-25
lines changed
Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
1+
name: "Comment on Issue"
2+
description: "Posts a comment on a given issue"
3+
4+
inputs:
5+
issue_number:
6+
description: "The issue number to comment on"
7+
required: true
8+
19
runs:
210
using: "composite"
311
steps:
412
- uses: actions/github-script@v8
5-
env:
6-
ISSUE_NUMBER: ${{ inputs.issue_number }}
713
with:
814
script: |
9-
const issue_number = parseInt(process.env.ISSUE_NUMBER, 10);
10-
15+
const issue_number = parseInt('${{ inputs.issue_number }}', 10);
1116
await github.issues.createComment({
1217
...context.repo,
1318
issue_number,
14-
body: "👋, Thank you for opening this issue! We will look into it as soon as possible."
19+
body: "👋 Thank you for opening this issue! We will look into it as soon as possible."
1520
});

.github/scripts/comment.js

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

0 commit comments

Comments
 (0)