Skip to content

Improve handling of merged PRs#31

Merged
alicederyn merged 16 commits intomainfrom
fix.overwrite.bugs
Jul 14, 2025
Merged

Improve handling of merged PRs#31
alicederyn merged 16 commits intomainfrom
fix.overwrite.bugs

Conversation

@alicederyn
Copy link
Owner

  • Delete rather than fast-forward unreferenced branches
  • Fix a bug in the fast-forward safety check, which was causing it to lose changes
  • Add a --help CLI param with a dynamic description based on the current repo setup
  • Add integration tests of the PR merge behaviour

Add integration tests for the current, intended behaviour of fast-forward, so we do not regress.
fastforward is supposed to avoid losing changes to a branch that were not in the PR. Unfortunately, the check was accidentally using the PR branch name, not the hash, causing it to always fastforward. Fix and regression test the behaviour.
Determine what the current configuration will make the tool do, and tell the user what that is if they pass --help.
Instead of fast-forwarding unreferenced branches, delete them.
@alicederyn alicederyn added bug Something isn't working enhancement New feature or request integration Changes to CI or release labels Jul 12, 2025
@alicederyn alicederyn force-pushed the fix.overwrite.bugs branch from ab7d24c to 14c682f Compare July 12, 2025 13:15
@alicederyn alicederyn force-pushed the fix.overwrite.bugs branch from a72b69c to bcadce5 Compare July 13, 2025 11:15
@alicederyn alicederyn merged commit 3d3ab46 into main Jul 14, 2025
3 checks passed
@alicederyn alicederyn deleted the fix.overwrite.bugs branch July 14, 2025 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request integration Changes to CI or release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant