Recover an automatic fix that opened no pull request
On the problem's confirmation, open Validation and patch if it is available. Read the recorded stopping reason before deciding whether to retry the same commit or request another confirmation after a push.
Identify who can remove the cause#
The line reads No pull request opened because followed by one of the reasons below. When the fix passed validation but the step that opens the pull request refused or failed, the line gives that step's own sentence instead.
Removing the cause does not restart the fix. For six of these reasons you can request the confirmation again at the same commit once the cause is gone: the fix rule was turned off or changed, the rule's limit was reached by fixes in progress and open pull requests, fix generation is off for this organization, the organization has no usable model, the organization reached its daily fix limit and other fixes ran for the whole wait. The rule must be on and cover the confirmation's environment and repository. The new request checks the problem again, and a result of Confirmed starts a new fix.
After any other reason, request a new confirmation once the default branch has moved; a confirmation recorded as Confirmed then starts a new fix. Until the branch moves, a new request returns the existing confirmation.
An administrator of the organization in GitHub removes these:
- the fix rule was turned off or changed, or The automatic fix rule that requested this fix was turned off before it was written.: under Settings → Review policy → Automatic fixes, make sure the rule is on and covers this environment and repository.
- the rule's limit was reached by fixes in progress and open pull requests: raise Open pull requests at most, or wait until fixes in progress finish and their pull requests are merged or closed.
- the GitHub App has not been granted Contents: write or the GitHub App has not been granted Pull requests: write: accept the permission in the Proofline GitHub App's installation settings on GitHub.
- the GitHub App installation is suspended or removed: unsuspend or reinstall the Proofline GitHub App on GitHub.
- the repository is no longer linked: link the repository to the environment again, then turn automatic fixes on again, because unlinking the repository turned them off.
A Proofline administrator removes these:
- fix generation is off for this organization: turn on Generate fixes under Settings → Review policy → Automation.
- the organization has no usable model: choose a model the organization can use under Settings → Review policy → Models, as Choose review models describes.
- shadow mode is on for this repository: turn off Shadow mode for the organization or the repository, as Review without posting to GitHub describes.
No setting removes these. Wait, or read why on Validation and patch:
- another fix for this problem was already in progress, or pull request and its number for this problem was already open: a problem gets one automatic fix at a time in each repository. When that fix's pull request is open, the line links it. Once that pull request is merged or closed without a merge, a new confirmation can start a fix after the default branch has moved.
- the organization reached its daily fix limit: the limit counts the fixes of the last 24 hours, so wait a day.
- other fixes ran for the whole wait: Proofline writes one fix at a time for the organization, and this fix waited six hours for others to finish.
- Proofline cannot write fixes for this organization: the Proofline deployment that serves the organization cannot run fixes, and no setting changes that.
- the fix did not pass validation, Proofline wrote no patch it could check or the fix did not finish: Validation and patch shows the failed step or why no patch was written.
- the default branch moved past the fix's head: the branch moved on from the commit the fix was written for.
- the fix weakens a check, so Proofline did not open it on its own: Validation and patch shows why the fix was held. Proofline does not open such a fix, because no person reads it before the pull request opens.
- it stopped before it finished or it was cancelled: the fix ended before it opened a pull request.
- The step's own sentence, such as The publisher failed while writing the fix to GitHub. or A branch with this fix's name already exists.: the pull request was not opened, and the fix is not tried again.