Closing Issues via Pull Requests
It’s been possible to close an issue from a commit for quite a while, but some issues take more work than a single commit to close. That’s why you can…
It’s been possible to close an issue from a commit for quite a while, but
some issues take more work than a single commit to close. That’s why you
can now close an issue from a Pull Request. All you have to do is include the
special keyword syntax (eg. “fixes #5”) in the body of your Pull Request.
And the referenced issue will automatically be closed when the PR is merged
into the default branch.
You will even see the references as pending fixes before merging.
This works the same way closing an issue from a commit message does.
It even works across repositories.
Happy bug fixing!
Written by
Related posts

Explore the best of GitHub Universe: 9 spaces built to spark creativity, connection, and joy
See what’s happening at Universe 2025, from experimental dev tools and career coaching to community-powered spaces. Save $400 on your pass with Early Bird pricing.

Agents panel: Launch Copilot coding agent tasks anywhere on GitHub
Delegate coding tasks to Copilot and track progress wherever you are on GitHub. Copilot works in the background, creates a pull request, and tags you for review when finished.

Q1 2025 Innovation Graph update: Bar chart races, data visualization on the rise, and key research
Discover the latest trends and insights on public software development activity on GitHub with the quarterly release of data for the Innovation Graph, updated through March 2025.