-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't attempt to reopen a PR after updating a branch if it already ex…
…ists The PR remediation was checking if a PR with the same contents already exist as a fast and cheap check to avoid triggering the remediation again. But in case the profile changes or the contents change for another reason, we want to push to the existing branch to update it, but don't try to open a PR again as that would fail with 422. To do that, this patch adds a check if a PR is already open from the branch we just pushed to and if it is, just returns before opening the PR again.
- Loading branch information
Showing
1 changed file
with
34 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters