Skip to main content

Changing the stage of a pull request

Mark a draft pull request as ready for review or convert an open pull request back to a draft to manage your workflow effectively.

Qui peut utiliser cette fonctionnalité ?

People with write permissions to a repository and pull request authors can change the stage of a pull request.

Marking a pull request as ready for review

Quand vous êtes prêt à recevoir des commentaires sur votre demande de tirage, vous pouvez marquer votre brouillon de demande de tirage comme étant prêt pour la révision. Le marquage d’une demande de tirage comme étant prête pour la révision demande des révisions à tous les propriétaires de code.

Conseil

You can also mark a pull request as ready for review using the GitHub CLI. See gh pr ready in the GitHub CLI documentation.

  1. Sous le nom de votre référentiel, cliquez sur Demandes de tirage.

    Capture d’écran de la page principale d’un dépôt. Dans la barre de navigation horizontale, un onglet intitulé « Demandes de tirage » est indiqué en orange foncé.

  2. In the "Pull requests" list, click the pull request you want to mark as ready for review.

  3. In the merge box, click Ready for review.

    Screenshot of the merge box in a pull request. The "Ready for review" button is outlined in dark orange.

Converting a pull request to a draft

You can convert a pull request to a draft at any time. For example, if you accidentally opened a pull request instead of a draft, or if you've received feedback on your pull request that you need to address, you can convert the pull request to a draft to indicate further changes are needed.

No one can merge the pull request until you mark the pull request as ready for review again. People who are already subscribed to notifications for the pull request will not be unsubscribed when you convert the pull request to a draft.

  1. Sous le nom de votre référentiel, cliquez sur Demandes de tirage.

    Capture d’écran de la page principale d’un dépôt. Dans la barre de navigation horizontale, un onglet intitulé « Demandes de tirage » est indiqué en orange foncé.

  2. In the "Pull requests" list, click the pull request you want to convert to a draft.

  3. In the right sidebar, under "Reviewers," click Convert to draft.

    Screenshot of the "Reviewers" section in the right sidebar of a pull request. The "Convert to draft" link is outlined in dark orange.

  4. Click Convert to draft.

Further reading