diff --git a/.github/workflows/conference_auto_respond.yml b/.github/workflows/conference_auto_respond.yml index 7305c1b..1be8550 100644 --- a/.github/workflows/conference_auto_respond.yml +++ b/.github/workflows/conference_auto_respond.yml @@ -21,10 +21,8 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | - const issueNumber = context.payload.issue.number; + const issueNumber = context.issue.number; 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."; - - await github.issues.createComment({ ...context.repo, issue_number: issueNumber, body: comment @@ -35,10 +33,10 @@ jobs: if: ${{ github.event.action == 'opened' && startsWith(github.event.issue.title, '[CONFERENCE]') && contains(github.event.issue.labels.*.name, 'conference_accepted') }} with: script: | - const issueNumber = context.payload.issue.number; + const issueNumber = context.issue.number; const comment = "Your conference submission has been accepted. You will shortly see your conference on the website." - await github.issues.createComment({ + github.rest.issues.createComment({ ...context.repo, issue_number: issueNumber, body: comment