Skip to content

Commit 9b97bd3

Browse files
committed
fix: remove PR head ref checkout for issue_comment events
Checking out the PR head meant ./packages/action had old code from the PR branch (before trigger support). Letting issue_comment check out main (default) ensures the action code includes trigger handling. The diff still works via fetch-depth: 0 and API-fetched SHAs. https://claude.ai/code/session_01F7qRXukhynYjUukzhaBzSK
1 parent 9d4bc7b commit 9b97bd3

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

.github/workflows/demo.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ jobs:
2626
- uses: actions/checkout@v4
2727
with:
2828
fetch-depth: 0
29-
# On issue_comment, check out the PR head ref (default branch otherwise has no trigger code)
30-
ref: ${{ github.event_name == 'issue_comment' && format('refs/pull/{0}/head', github.event.issue.number) || '' }}
3129

3230
- uses: actions/setup-node@v4
3331
with:

0 commit comments

Comments
 (0)