Skip to content

Commit 997bd77

Browse files
author
l
committed
use pr event context
1 parent 5093abe commit 997bd77

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/test-sdc-tasks.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ jobs:
4343
if: steps.test-individual-shell-tools.outputs.attempted == 'y' || steps.test-jq.outputs.attempted == 'y' || steps.test-shell-pipelines.outputs.attempted == 'y'
4444
env:
4545
GH_TOKEN: ${{ secrets.MY_TOKEN }}
46-
ISSUE_URL: ${{ github.event.issue.html_url }}
46+
ISSUE_URL: ${{ github.event.pull_request.html_url }}
4747
run: |
48-
gh issue comment $ISSUE_URL --body-file testoutput.txt
48+
gh pr comment $ISSUE_URL --body-file testoutput.txt
4949
- name: add appropriate labels
5050
if: steps.test-individual-shell-tools.outputs.complete == 'y' || steps.test-jq.outputs.complete == 'y' || steps.test-shell-pipelines.outputs.complete == 'y'
5151
env:
5252
GH_TOKEN: ${{ secrets.MY_TOKEN }}
53-
ISSUE_URL: ${{ github.event.issue.html_url }}
53+
ISSUE_URL: ${{ github.event.pull_request.html_url }}
5454
run: |
55-
gh issue edit $ISSUE_URL --add-label "Complete"
56-
gh issue edit $ISSUE_URL --remove-label "Needs Review"
55+
gh pr edit $ISSUE_URL --add-label "Complete"
56+
gh pr edit $ISSUE_URL --remove-label "Needs Review"

0 commit comments

Comments
 (0)