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
![](https://github.blog/wp-content/uploads/2024/03/Enterprise-LightMode-1-1.png?resize=400%2C212)
GitHub Availability Report: January 2025
In January, we experienced two incidents that resulted in degraded performance across GitHub services.
![GitHub Copilot agent mode](https://github.blog/wp-content/uploads/2025/02/Agent-Sunrise-1.png?resize=400%2C212)
GitHub Copilot: The agent awakens
Introducing agent mode for GitHub Copilot in VS Code, announcing the general availability of Copilot Edits, and providing a first look at our SWE agent.
![](https://github.blog/wp-content/uploads/2025/01/innovation_graph_1.png?resize=400%2C212)
That’s a wrap: GitHub Innovation Graph in 2024
Discover the latest trends and insights on public software development activity on GitHub with the release of Q2 & Q3 2024 data for the Innovation Graph.