Creating fork and submit PR to origin automatically when editing file from UI with read-only permission #9017
Labels
issue/confirmed
Issue has been reviewed and confirmed to be present or accepted to be implemented
type/feature
Completely new functionality. Can only be merged if feature freeze is not active.
versions
[x]
):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.
The text was updated successfully, but these errors were encountered: