renaming a command-line git fork with gh

Viewed 185

Goal: A jenkins pipeline that forks a repo, makes a change, pushes the change and generates a PR from master.

My issue is that since this may run in parallel, I need each fork to have a unique name. The gh command-line tool seems to indicate this is possible with the --remote-name flag, but it's not doing what I'd expect and I don't know if there is another way

My command gh repo fork https://host/team/aws.git --remote=true --clone properly creates a user/aws repo, however gh repo fork https://host/team/aws.git --remote-name=ME-test --clone returns user/aws already exists

Is there another way to achieve a renamed fork?

1 Answers
Related