After your PR was squash-merged, you continued on the same branch; the next PR shows conflicts with your own already-merged changes.
IntermediateTroubleshootingGitHub, Actions and Pull Request Issues
Answer
Likely causes → Squash merge creates a brand-new commit on main; your original commits are not ancestors of main. Git sees them as different changes touching the same lines.
Diagnose →
git log --oneline origin/main..feature # still lists the commits that were squashed
git cherry -v origin/main feature # "+" = not found upstream by patch-id
Fix → Rebase only the new commits onto main:
git fetch origin
git rebase --onto origin/main <last-squashed-commit> feature
git push --force-with-lease
Prevent → Start a fresh branch from origin/main after each squash merge, and enable auto-delete of merged head branches.
More on GitHub, Actions and Pull Request Issues
A workflow step that pushes a version bump fails with `remote: Permission to org/repo.git denied to github-actions[bot].` and `The requested URL returned error: 403`.IntermediateA workflow pushes a commit or tag, but the workflow that should run on that push or tag never starts.IntermediateA container job fails on any Git command with `fatal: detected dubious ownership in repository at '/__w/app/app'`.IntermediateYour PR suddenly shows 340 changed files and dozens of commits you did not write.IntermediateThe PR is stuck on `Expected — Waiting for status to be reported` for a required check called `build`.IntermediateThe PR was approved, but merging shows "Review required" again after you pushed a small fix.Beginner