Skip to content

Auto create fork repo with GitHub API #17

@Leo6Leo

Description

@Leo6Leo

Note: this command currently only works with github repositories!

https://docs.github.com/en/rest/repos/forks?apiVersion=2022-11-28#create-a-fork

And allowing git clonefork to detect, if the link provided is connected to a repo that is not created by the current user, we will automatically create a fork repo for them and do the remote config.

If the link provided is connected to a repo that is created by the current user, we will only do the remote config.
e.g:
git clonefork <upstream> will create the fork repo in my account
git clonefork <Leo6Leo/reponame> will not create the fork repo

Metadata

Metadata

Assignees

No one assigned

    Labels

    command/cloneforkThis affects the git clonefork commandenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions