We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 155b871 commit 0c80388Copy full SHA for 0c80388
2 files changed
.github/actions/comment-on-issue/action.yml
@@ -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
9
runs:
10
using: "composite"
11
steps:
12
- uses: actions/github-script@v8
- env:
- ISSUE_NUMBER: ${{ inputs.issue_number }}
13
with:
14
script: |
- const issue_number = parseInt(process.env.ISSUE_NUMBER, 10);
-
15
+ const issue_number = parseInt('${{ inputs.issue_number }}', 10);
16
await github.issues.createComment({
17
...context.repo,
18
issue_number,
- 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."
20
});
.github/scripts/comment.js
0 commit comments