-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
PRs without forking #19322
Comments
What's the difference from sending PR from the same repository? |
Actually none, but
|
aGit Workflow is already implemented |
@6543 maybe you didn't read my description carefully, but:
|
I think it would be posible to have a option to allow anybody to write to a repo, but this whould have so many security issues, i dont know where to start. If you propose a way how this securely would work please tell me :) |
Maybe a compromise could be to list forks in a different category (with an option to ”promote” them when the fork becomes a project on its own) and use Copy on Write copies on file systems that support it? Maybe there could even be a prompt when you're trying to push to a repository you don't have access to, like: “You don't have access to this repository. Do you want to create a fork? [Y/N]”. Although this could cause problems with git interfaces that don't expect interactive prompts on push, like editor plugins. |
@6543 my idea was mainly to give permissions not by repo, but per branch. I.e. everybody can create new branches in a repo, but only the branch creators can push to it (repo owners for example can't, if it's is not allowed). Branches are working then without a fork, and PRs can be created how it is possible right now with PRs with the same base/head repository. The only differences are
@tastytea asking the user also has the issue with git remotes which can't be added from the remote, gitea would need some kind of "branch redirection" to redirect branches to corresponding forks. |
It's too complex and it will be full of securities problems but less benefits. |
I know that it's very complex, but if it's implemented properly, I don't see any security issues. However, I understand your concerns about this. |
if we would add as proposed we would have to rebuild the same system as we have with forks but within the repo and the two can have conflicts ... beside the "ownership" now is not that deterministic anymore, and what if a person want to delete a repo but a other has still a branch on it?!? what about impersonating stuff - now we for sure can not detect that, because of the structure how git works |
|
I like that idea and think we should open that as a new issue. |
git already do this if you have a btrfs,...
that would be an UI/UX idea ... go on with it - some sketch "draft" views would be awesome in this case too *sketch = painted / screenshot of gitea with custom css / picutre created with gimp / ... |
Created one to continue discussion there: #19327 |
Feature Description
Currently, I need to fork a project to contribute. Unfortunately, forking is not a that nice way in some views:
What I think would be great is something that's similar to AGit with some differences. AGit is a nice idea, however, it has two main drawbacks:
A workflow that would be nice is:
<username>/<original branch name>
, issue would be if you use something likefeature/cool-feature
)Other things should be considered:
I know that this is a complete change to the way how Gitea (and most other forges) work, but for me - and probably most other too - it would be really nice.
Screenshots
No response
The text was updated successfully, but these errors were encountered: