You want a PR merge to close an issue automatically.
BeginnerScenarioRemotes, Collaboration and Pull Requests
Answer
Situation read → GitHub supports closing keywords.
What I'd do →
- In the PR description or a commit message, write
Closes #231(alsoFixes,Resolves). - Use
Closes ORG/REPO#231for another repo. - Merge into the default branch; the issue closes automatically.
- Or link manually in the PR's Development sidebar.
Why → Closing keywords only fire when the PR targets the default branch.
Interview tip → For release branches, close issues manually or via workflow.
More on Remotes, Collaboration and Pull Requests
You are new to a team. How do you collaborate daily without stepping on others' toes?BeginnerYou are migrating a repo from Bitbucket to GitHub and must keep every branch and tag.IntermediateYou want to contribute a fix to an open-source project you do not have write access to.BeginnerA teammate sent a 3,000-line PR and nobody can review it properly.IntermediateA reviewer asks for changes. How do you update the PR cleanly?BeginnerYour team wants stacked PRs so that large work arrives in small reviewable steps. How do you set it up?Advanced