gitea/web_src/js/features
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>
2022-04-28 17:45:33 +02:00
..
comp Never use /api/v1 from Gitea UI Pages (#19318) 2022-04-07 20:59:56 +02:00
admin-common.js
admin-emails.js
admin-users.js
clipboard.js
codeeditor.js
colorpicker.js
common-global.js
common-issue.js
common-organization.js
contextpopup.js
dropzone.js
emoji.js
eventsource.sharedworker.js
heatmap.js
imagediff.js Fix two UI bugs: JS error in imagediff.js, 500 error in diff/compare.tmpl 2022-04-26 11:14:01 +08:00
install.js
notification.js Never use /api/v1 from Gitea UI Pages (#19318) 2022-04-07 20:59:56 +02:00
org-team.js Never use /api/v1 from Gitea UI Pages (#19318) 2022-04-07 20:59:56 +02:00
repo-branch.js
repo-code.js Add a new menu in file view to open blame view and fix blame view select range bug (#19500) 2022-04-26 13:54:40 +03:00
repo-commit.js Allow commit status popup on /pulls page (#19507) 2022-04-26 21:09:46 +02:00
repo-common.js
repo-diff.js
repo-editor.js
repo-graph.js
repo-home.js Never use /api/v1 from Gitea UI Pages (#19318) 2022-04-07 20:59:56 +02:00
repo-issue-content.js
repo-issue.js Add "Allow edits from maintainer" feature (#18002) 2022-04-28 17:45:33 +02:00
repo-legacy.js Allow commit status popup on /pulls page (#19507) 2022-04-26 21:09:46 +02:00
repo-migrate.js
repo-migration.js
repo-projects.js
repo-release.js
repo-settings.js Never use /api/v1 from Gitea UI Pages (#19318) 2022-04-07 20:59:56 +02:00
repo-template.js Never use /api/v1 from Gitea UI Pages (#19318) 2022-04-07 20:59:56 +02:00
repo-unicode-escape.js
repo-wiki.js
serviceworker.js
sshkey-helper.js
stopwatch.js Improve Stopwatch behavior (#18930) 2022-04-25 22:45:22 +02:00
tablesort.js
tribute.js
user-auth-webauthn.js
user-auth.js
user-settings.js