actions / actions/checkout

GitHub workflow missing ref PR merge

Open
#1,982 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
8.9k
Forks
2.8k
PR merge metrics
No merged PRs in 30d

Description

checkout fails checking out refs/pull/<PR_ID>/merge

Run actions/checkout@v4.2.2
  with:
    ref: refs/pull/<PR_ID>/merge

added workflow demonstrating the checkout failure - #1981

issue reproduces:

  • create a PR
  • checkout PR merge branch refs/pull/<PR_ID>/merge - ✅ successfully
  • close PR, reopen PR
  • checkout PR merge branch refs/pull/<PR_ID>/merge - ⛔ FAIL

checkoutFail

checkoutFail2

checkoutFail3


started writing this workflow only after trying v4.2.1,
expected https://github.com/actions/checkout/pull/1924 to fix the regression,
however, regression still here

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the workflow added in issue #1981 and reproduce the sequence using actions/checkout@v4.2.2: create a PR, check out refs/pull/<PR_ID>/merge, close and reopen the PR, then retry. Compare the behavior with the reported regression in issue #1782 and pull request #1924; done means the merge ref can be checked out after reopening the PR.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, github-actions, typescript
Domain
ci-cd
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.