Skip to content

ci: update-flake: preserve existing commits on branch#2262

Open
0xda157 wants to merge 1 commit intonix-community:masterfrom
0xda157:flake-update-preserve-previous-commits
Open

ci: update-flake: preserve existing commits on branch#2262
0xda157 wants to merge 1 commit intonix-community:masterfrom
0xda157:flake-update-preserve-previous-commits

Conversation

@0xda157
Copy link
Copy Markdown
Contributor

@0xda157 0xda157 commented Apr 3, 2026

prevents this workflow from pushing over existing commits, as was encountered in #2180

Link: https://github.com/nix-community/stylix/pull/2180

prevents this workflow from pushing over existing commits, as was
encountered in nix-community#2180

Link: nix-community#2180
@0xda157 0xda157 added topic: ci /.github/ subsystem backport: release-25.11 To be backported to the release-25.11 stable branch labels Apr 3, 2026
Copy link
Copy Markdown
Member

@trueNAHO trueNAHO left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This action forcefully overriding existing manual changes has also been bothering me for a while. However, I never opened a PR for this because resolving the pulled breaking changes usually does not take long and the occasional override is not huge problem. Unfortunately, the long-pending #2180 update breaks this assumption with its non-trivial breaking changes.

Considering this PR is fairly low-priority, I can also take over this PR next week.

env:
base_branch: ${{ matrix.branch }}
run: |
git pull origin "$base_branch" --rebase
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this not break when $base_branch does not exist yet? Maybe the later pr_count logic can be used here? Unsure whether this can be neatly implemented without duplicating a pr_count guard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport: release-25.11 To be backported to the release-25.11 stable branch topic: ci /.github/ subsystem

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants