Skip to content

Add fast-forward PR functionality to sync-internal-release pipeline/tool#6684

Merged
lbussell merged 12 commits into
dotnet:nightlyfrom
lbussell:sync-pipeline-2
Sep 26, 2025
Merged

Add fast-forward PR functionality to sync-internal-release pipeline/tool#6684
lbussell merged 12 commits into
dotnet:nightlyfrom
lbussell:sync-pipeline-2

Conversation

@lbussell
Copy link
Copy Markdown
Member

Follow-up to #6668. Commits should be reviewable individually.

If the internal/release/* branch is behind the release/* branch in history, then create a new branch based off of release/* and submit a pull request targeting internal/release/*.

Example pull request: https://dev.azure.com/dnceng/internal/_git/dotnet-docker-tools-internal/pullrequest/53787 [internal link]

The changeset looks larger than it actually is because I needed to split the GitRepoHelper class into LocalGitRepoHelper and RemoteGitRepoHelper. I chose to do this so that they could be mocked separately - I needed to ensure that the branch ancestry behavior works properly in a real (not mocked) git repo.

I define "remote" operations as those that reach out to the internet, even those that use a local git client instead of an API call. For example, git fetch would be a remote operation. This separation means we could use a real LocalGitRepoHelper and a mock RemoteGitRepoHelper at the same time in tests.

A few methods needed to use both local and remote functions - those stay on GitRepoHelper.

@lbussell lbussell requested a review from a team as a code owner September 25, 2025 23:15
@lbussell lbussell merged commit cda127a into dotnet:nightly Sep 26, 2025
104 checks passed
@lbussell lbussell deleted the sync-pipeline-2 branch September 26, 2025 16:36
lbussell added a commit to lbussell/dotnet-docker that referenced this pull request Oct 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants