You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/services
qwerty287 8eb1cd9264
Add "Allow edits from maintainer" feature (#18002)
Adds a feature [like GitHub has](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request-from-a-fork) (step 7).
If you create a new PR from a forked repo, you can select (and change later, but only if you are the PR creator/poster) the "Allow edits from maintainers" option.
Then users with write access to the base branch get more permissions on this branch:
* use the update pull request button
* push directly from the command line (`git push`)
* edit/delete/upload files via web UI
* use related API endpoints

You can't merge PRs to this branch with this enabled, you'll need "full" code write permissions.

This feature has a pretty big impact on the permission system. I might forgot changing some things or didn't find security vulnerabilities. In this case, please leave a review or comment on this PR.

Closes #17728

Co-authored-by: 6543 <6543@obermui.de>
2 years ago
..
agit more context for models (#19511) 2 years ago
asymkey more context for models (#19511) 2 years ago
attachment Use a struct as test options (#19393) 2 years ago
auth Remove dependent on session auth for api/v1 routers (#19321) 2 years ago
comments Move some issue methods as functions (#19255) 2 years ago
context Add `ContextUser` to http request context (#18798) 2 years ago
cron Remove legacy unmaintained packages, refactor to support change default locale (#19308) 2 years ago
externalaccount Refactor auth package (#17962) 3 years ago
forms Add "Allow edits from maintainer" feature (#18002) 2 years ago
gitdiff Use a struct as test options (#19393) 2 years ago
issue more context for models (#19511) 2 years ago
lfs more context for models (#19511) 2 years ago
mailer Use a struct as test options (#19393) 2 years ago
migrations Fix migrate release from github (#19510) 2 years ago
mirror Remove `git.Command.Run` and `git.Command.RunInDir*` (#19280) 2 years ago
org Use a struct as test options (#19393) 2 years ago
packages Package registry changes (#19305) 2 years ago
pull Add "Allow edits from maintainer" feature (#18002) 2 years ago
release Use a struct as test options (#19393) 2 years ago
repository Prevent dangling archiver goroutine (#19516) 2 years ago
task Use a more general (and faster) method to sanitize URLs with credentials (#19239) 2 years ago
user Use a struct as test options (#19393) 2 years ago
webhook Use queue instead of memory queue in webhook send service (#19390) 2 years ago
wiki Use a struct as test options (#19393) 2 years ago