Skip to content

Feature/target repo fork name#4886

Merged
vilmibm merged 5 commits intocli:trunkfrom
g14a:feature/target-repo-fork-name
Jan 25, 2022
Merged

Feature/target repo fork name#4886
vilmibm merged 5 commits intocli:trunkfrom
g14a:feature/target-repo-fork-name

Conversation

@g14a
Copy link
Contributor

@g14a g14a commented Dec 11, 2021

This PR adds the functionality to add a --fork-name flag to specify what the final name of the forked repo should be. Since the Github API doesn't yet support this automatically via the Fork API, we fork it and later rename it via the Rename API.

Fixes #4849

@g14a g14a requested a review from a team as a code owner December 11, 2021 04:50
@g14a g14a requested review from vilmibm and removed request for a team December 11, 2021 04:50
@cliAutomation cliAutomation added the external pull request originating outside of the CLI core team label Dec 11, 2021
@g14a
Copy link
Contributor Author

g14a commented Jan 8, 2022

@vilmibm This is ready for review. Do let me know if any changes are required :)

@g14a
Copy link
Contributor Author

g14a commented Jan 22, 2022

@vilmibm just wanted to know if any more changes are required here :)

Copy link
Contributor

@vilmibm vilmibm left a comment

Choose a reason for hiding this comment

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

thank you for this! I pushed a small commit; without it, I ran into a race condition where we tried to rename before the fork actually existed. I also think being explicit about the fact that this is a fork then a rename is a good thing, so I changed the logging to reflect that.

@vilmibm vilmibm enabled auto-merge January 25, 2022 21:38
@vilmibm vilmibm merged commit a564909 into cli:trunk Jan 25, 2022
@waldyrious
Copy link
Contributor

Just a small note for those who may come to this PR (e.g. from the release notes) and didn't see the corresponding issue: This option affects the name of the repository on github (e.g. johndoe/custom-fork-name), rather than the local name of the fork remote. The latter is accomplished via the --remote-name option.

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

Labels

external pull request originating outside of the CLI core team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

let user to specify the target repo fork name

5 participants