Read Anthropic’s case study about Graphite Reviewer

How to delete or cancel a pull request in Azure DevOps

Sara Verdi
Sara Verdi
Graphite software engineer
Try Graphite

In this guide, we'll walk through the steps to delete or cancel a pull request in Azure DevOps. We'll also see how Graphite's PR inbox can enhance your pull request management by providing an organized view and additional features for managing your PRs efficiently.

  • Log in to your Azure DevOps account and go to the project where your pull request is located.
  • In the project's dashboard, click on the 'Repos' tab, then select 'Pull requests' from the drop-down menu.
  • Find the pull request you want to delete or cancel and click on it to open the pull request details.

Azure DevOps does not allow direct deletion of a pull request to preserve the history of changes. However, you can abandon the pull request, which effectively cancels it:

  • Inside the pull request details page, look for the '...' or 'More actions' button usually located at the top-right corner of the interface.
  • Click on this button and select 'Abandon pull request' from the drop-down menu.
  • You will be prompted to confirm your action. Click 'Yes' to abandon the pull request.

Effective pull request (PR) management is essential for software development teams to maintain code quality and ensure timely project progress. For teams using platforms like Azure DevOps to manage large-scale projects and complex pipelines, managing pull requests efficiently is crucial. It helps in systematic code review, enhances collaboration, and speeds up the integration of new code changes without compromising stability or performance.

While Graphite's PR inbox does not integrate directly with Azure DevOps, it serves as an excellent example of how specialized tools can enhance PR management. Graphite organizes PRs into a user-friendly interface similar to an email client, making it easier for developers to track the status of their PRs, prioritize reviews, and manage notifications effectively. For teams in Azure DevOps, adopting similar management strategies or tools that offer these functionalities can lead to more streamlined development workflows, better resource allocation, and improved overall efficiency in handling pull requests.

Git inspired
Graphite's CLI and VS Code extension make working with Git effortless.
Learn more

Built for the world's fastest engineering teams, now available for everyone