Skip to content

Commit 0be2355

Browse files
committed
update workflow
1 parent c18c948 commit 0be2355

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/conference_auto_respond.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,23 @@ jobs:
2121
with:
2222
github-token: ${{ secrets.GITHUB_TOKEN }}
2323
script: |
24-
const issueNumber = context.payload.issue.number;
24+
const issueNumber = context.issue.number;
2525
const comment = "Thank you for submitting this issue. A member of the triage team will review the information and followup on this request. There is no code action to be taken.";
2626
27-
await github.issues.createComment({
27+
github.rest.issues.createComment({
2828
...context.repo,
2929
issue_number: issueNumber,
3030
body: comment
3131
});
32-
3332
- name: Add approved comment
3433
uses: actions/github-script@v6
3534
if: ${{ github.event.action == 'opened' && startsWith(github.event.issue.title, '[CONFERENCE]') && contains(github.event.issue.labels.*.name, 'conference_accepted') }}
3635
with:
3736
script: |
38-
const issueNumber = context.payload.issue.number;
37+
const issueNumber = context.issue.number;
3938
const comment = "Your conference submission has been accepted. You will shortly see your conference on the website."
4039
41-
await github.issues.createComment({
40+
github.rest.issues.createComment({
4241
...context.repo,
4342
issue_number: issueNumber,
4443
body: comment

0 commit comments

Comments
 (0)