go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
44.11k stars 5.41k forks source link

Creating fork and submit PR to origin automatically when editing file from UI with read-only permission #9017

Open divansantana opened 4 years ago

divansantana commented 4 years ago

versions

Description

I'm got a site with docs as code using a static site generator.

It gives the end user an edit button.

The edit button takes them to the repo at this URL:

https://gitea.example.com/org/project/_edit/master/docs/index.md

This opens and works fine, if the user has write access to the repo.

If the user does have write access to the repo all is well and one can edit the doc and save to master.

If one has read access but not write to repo this however fails with a 404.

On GitLab/GitHub, instead the page renders and in the background a fork is automatically created and a PR is submitted to origin.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

gardouille commented 1 year ago

Also interested in this feature :sweat_smile:

RokeJulianLockhart commented 2 weeks ago

https://github.com/go-gitea/gitea/issues/9017#issuecomment-574157096

This was a problem at https://projects.blender.org/blender/blender-manual/issues/104787#issuecomment-1282529, recently. It rather significantly stalls Blender's documentation migration to Gitea.