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/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>
2 years ago
..
comp Never use /api/v1 from Gitea UI Pages (#19318) 2 years ago
admin-common.js Add LDAP group sync to Teams, fixes #1395 (#16299) 3 years ago
admin-emails.js Use explicit jQuery import, remove unused eslint globals (#18435) 3 years ago
admin-users.js Use explicit jQuery import, remove unused eslint globals (#18435) 3 years ago
clipboard.js Use explicit jQuery import, remove unused eslint globals (#18435) 3 years ago
codeeditor.js Add new JS linter rules (#17699) 3 years ago
colorpicker.js Move jquery-minicolors to npm/webpack (#12305) 4 years ago
common-global.js Skip frontend ROOT_URL check on installation page, remove unnecessary global var (#19291) 2 years ago
common-issue.js Replace deprecated String.prototype.substr() with String.prototype.slice() (#18796) 2 years ago
common-organization.js Use explicit jQuery import, remove unused eslint globals (#18435) 3 years ago
contextpopup.js Use explicit jQuery import, remove unused eslint globals (#18435) 3 years ago
dropzone.js Update JS dependencies (#17611) 3 years ago
emoji.js Frontend refactor, PascalCase to camelCase, remove unused code (#17365) 3 years ago
eventsource.sharedworker.js Update JS dependencies (#16708) 3 years ago
heatmap.js Use explicit jQuery import, remove unused eslint globals (#18435) 3 years ago
imagediff.js Fix two UI bugs: JS error in imagediff.js, 500 error in diff/compare.tmpl 2 years ago
install.js Use explicit jQuery import, remove unused eslint globals (#18435) 3 years ago
notification.js Never use /api/v1 from Gitea UI Pages (#19318) 2 years ago
org-team.js Never use /api/v1 from Gitea UI Pages (#19318) 2 years ago
repo-branch.js Add apply-patch, basic revert and cherry-pick functionality (#17902) 3 years ago
repo-code.js Add a new menu in file view to open blame view and fix blame view select range bug (#19500) 2 years ago
repo-commit.js Allow commit status popup on /pulls page (#19507) 2 years ago
repo-common.js Refactor repo clone button and repo clone links, fix JS error on empty repo page (#19208) 2 years ago
repo-diff.js Use explicit jQuery import, remove unused eslint globals (#18435) 3 years ago
repo-editor.js Use explicit jQuery import, remove unused eslint globals (#18435) 3 years ago
repo-graph.js Use explicit jQuery import, remove unused eslint globals (#18435) 3 years ago
repo-home.js Never use /api/v1 from Gitea UI Pages (#19318) 2 years ago
repo-issue-content.js Use explicit jQuery import, remove unused eslint globals (#18435) 3 years ago
repo-issue.js Add "Allow edits from maintainer" feature (#18002) 2 years ago
repo-legacy.js Allow commit status popup on /pulls page (#19507) 2 years ago
repo-migrate.js Use explicit jQuery import, remove unused eslint globals (#18435) 3 years ago
repo-migration.js Use explicit jQuery import, remove unused eslint globals (#18435) 3 years ago
repo-projects.js Feature: show issue assignee on project board (#15232) 2 years ago
repo-release.js Use explicit jQuery import, remove unused eslint globals (#18435) 3 years ago
repo-settings.js Never use /api/v1 from Gitea UI Pages (#19318) 2 years ago
repo-template.js Never use /api/v1 from Gitea UI Pages (#19318) 2 years ago
repo-unicode-escape.js Use explicit jQuery import, remove unused eslint globals (#18435) 3 years ago
repo-wiki.js Use explicit jQuery import, remove unused eslint globals (#18435) 3 years ago
serviceworker.js Frontend refactor, PascalCase to camelCase, remove unused code (#17365) 3 years ago
sshkey-helper.js Use explicit jQuery import, remove unused eslint globals (#18435) 3 years ago
stopwatch.js Improve Stopwatch behavior (#18930) 2 years ago
tablesort.js Added missing `data-` prefix. (#17884) 3 years ago
tribute.js Frontend refactor, PascalCase to camelCase, remove unused code (#17365) 3 years ago
user-auth-webauthn.js Prevent security failure due to bad APP_ID (#18678) 3 years ago
user-auth.js Use explicit jQuery import, remove unused eslint globals (#18435) 3 years ago
user-settings.js Use explicit jQuery import, remove unused eslint globals (#18435) 3 years ago