-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skip autofix on pending Renovate Branches #1226
Conversation
🦋 Changeset detectedLatest commit: 649b06f The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
src/cli/lint/autofix.ts
Outdated
log.warn( | ||
'Could not find an open pull request for this branch. The autofix commit will not be applied to allow Renovate to open a pull request successfully.', | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll review this proper in a bit but seems perfectly reasonable. Could we also write a Buildkite warning and share next steps (i.e. fix is available but we did not push it, if the PR has since been created then you can manually rerun the step to push).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏
Co-authored-by: Ryan Ling <[email protected]>
Reverts #1226 Unblocked by seek-oss/rynovate#121
On my run of Skuba renovate's I encountered a number of branches which had autofix commits pushed so they were stuck in Edited/Blocked.
This means that not only does the Renovate branch no longer get pushed to/updated automatically. It means I have to manually intervene and open the repository in order to see that it's stuck in Edited/Blocked.
Should we avoid pushing on skuba renovate branches unless we know there's an open PR?
Happy to be pushed back on this one.
Example
https://github.com/SEEK-Jobs/backoffice-budgets-api/tree/renovate-skuba-7.x