Same pull_request number in github actions, for two pull request from one branch
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 8.9k
- Forks
- 2.8k
- PR merge metrics
- No merged PRs in 30d
Description
I making screnario when i try to make two pull request from one branch to two other different.
So I got mine working branch ex. test-1
I making pr test-1 to master and get in url pr number 100 - i leave open that pr.
After that i made next pr text-1 to staging branch and in url see pr number 101 - and also leave open.
I checked github actions and in both cases i got same check_run_id with different pr number.
When i made ${{ github.event.number }} in github action got same pr number in both actions and its looking like is one action.
Do anyone know how to keep actions separate for each pr and get right pr_number?
I tried a lot of cases, read docs and cant find anythink what will solve my problem.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the two pull requests, their workflow runs, and the values of ${{ github.event.number }} and check_run_id in each run. Read the GitHub Actions event context documentation to determine which event data identifies each pull request; done means both workflows expose distinct, correct pull request numbers.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions
- Domain
- ci-cd
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100