Skip to content

Allow forking without a repo ID #29512

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
CanisHelix opened this issue Mar 1, 2024 · 3 comments · Fixed by #29519
Closed

Allow forking without a repo ID #29512

CanisHelix opened this issue Mar 1, 2024 · 3 comments · Fixed by #29519
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@CanisHelix
Copy link

Feature Description

Forking a repository via the web UI currently requires visiting a /repo/fork/{{repoid}} URL. This makes it cumbersome to create a link that starts a fork, because the repository ID is only available via the API. While it is possible to create a link, doing so requires extra steps.

To make it easier to have a "Fork me!"-style links, introduce the /{username}/{repo}/fork route, which will start the forking process based on the repository in context instead.

This would bring gitea in line with Github's behavior too.

Screenshots

No response

@CanisHelix CanisHelix added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Mar 1, 2024
@wxiaoguang
Copy link
Contributor

I guess the title could be "Allow forking without a repo ID"?

@CanisHelix CanisHelix changed the title Allow forking with a repo ID Allow forking without a repo ID Mar 1, 2024
@CanisHelix
Copy link
Author

I guess the title could be "Allow forking without a repo ID"?

Good spot, really should have coffee earlier :-D

@wxiaoguang
Copy link
Contributor

-> Use a predictiable fork URL to allow forking repositories without providing a repo ID #29519

wxiaoguang added a commit that referenced this issue Mar 1, 2024
…viding a repo ID (#29519)

Close #29512

The "fork" URL:

* Before: `/repo/fork/{RepoID}`
* After: `/{OwnerName}/{RepoName}/fork`
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
2 participants