Skip to content

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

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

Open
2 tasks done
divansantana opened this issue Nov 15, 2019 · 3 comments · May be fixed by #34240
Open
2 tasks done
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.

Comments

@divansantana
Copy link

divansantana commented Nov 15, 2019

versions

  • Gitea version : 2.16.5
  • Git version: 1.10
  • Operating system: linux
  • Database (use [x]):
    • MySQL
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes

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.

@lunny lunny added the type/enhancement An improvement of existing functionality label Nov 15, 2019
@stale
Copy link

stale bot commented Jan 14, 2020

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.

@stale stale bot added the issue/stale label Jan 14, 2020
@lunny lunny added the issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented label Jan 15, 2020
@stale stale bot removed the issue/stale label Jan 15, 2020
@gardouille
Copy link

Also interested in this feature 😅

@RokeJulianLockhart
Copy link

RokeJulianLockhart commented Aug 30, 2024

#9017 (comment)

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.

@lunny lunny added type/feature Completely new functionality. Can only be merged if feature freeze is not active. and removed type/enhancement An improvement of existing functionality labels Aug 31, 2024
@lunny lunny changed the title auto create fork and submit PR to origin Creating fork and submit PR to origin automatically when editing file from UI with read-only permission Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants