Skip to content
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

feat: avoid pushing release branch only for rebasing #114

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

apricote
Copy link
Owner

Right now releaser-pleaser pushes the branch even if it is only for a "rebase", this wastes CI resources. Instead it should only push when there are changes to the files it owns.

Old: Push when there is a diff origin/release-pr..release-pr
New: Push when the these two diffs are not the same:

  • origin/main..release-pr
  • $(git merge-base origin/main origin/release-pr)..release-pr

Closes #92


Right now the tests are still WIP. I was able to salvage the git test framework from a0a064d#diff-483ac1310305711011d4ac806cabfaacb53b40c182ddcd7f251b2cd141e3e229

@apricote apricote added the enhancement New feature or request label Nov 20, 2024
@apricote apricote self-assigned this Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix: only push when there are actual changes, not only for rebasing
1 participant