Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

code-search: handle changeset fork when creating a batch change via src-cli#58156

Merged
BolajiOlajide merged 2 commits into
mainfrom
bo/bug-fix-changeset-fork
Nov 8, 2023
Merged

code-search: handle changeset fork when creating a batch change via src-cli#58156
BolajiOlajide merged 2 commits into
mainfrom
bo/bug-fix-changeset-fork

Conversation

@BolajiOlajide

Copy link
Copy Markdown
Contributor

Part 1 of #58150

#51572 added the fork attribute to the changeset template. This allowed per-batch-change control for pushing to a fork of the upstream repository. However, this was only supported by SSBC, and the field was ignored by batch changes created via the src-cli tool.

This PR adds the attributes to the /lib so that src-cli can properly parse the fork attribute whenever it's specified in a batch spec.

Test plan

  • I did a couple of manual tests to ensure this change didn't introduce any regression.
  • Added a test for fork support to the ParseChangesetSpec function.
  • Batch changes created via src-cli with the fork attribute now have the proper fork_namespace set.

CleanShot 2023-11-07 at 14 08 42@2x

@BolajiOlajide BolajiOlajide requested a review from a team November 7, 2023 13:18
@BolajiOlajide BolajiOlajide self-assigned this Nov 7, 2023
@cla-bot cla-bot Bot added the cla-signed label Nov 7, 2023

@camdencheek camdencheek left a comment

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.

Nice, LGTM!

@peterguy

peterguy commented Nov 7, 2023

Copy link
Copy Markdown
Contributor

Good job finding this so quickly!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants