gitea/models/migrations
qwerty287 8eb1cd9264
Add "Allow edits from maintainer" feature ()
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 

Co-authored-by: 6543 <6543@obermui.de>
..
fixtures Attempt to fix the webauthn migration again - part 3 ()
migrations.go Add "Allow edits from maintainer" feature ()
migrations_test.go Remove legacy `unknwon/com` package ()
testlogger_test.go migrations: add test for importing pull requests in gitea uploader ()
v70.go chore(models): rewrite code format. ()
v71.go Use base32 for 2FA scratch token ()
v72.go
v73.go
v74.go
v75.go
v76.go chore(models): rewrite code format. ()
v77.go
v78.go
v79.go chore(models): rewrite code format. ()
v80.go
v81.go
v82.go Make git.OpenRepository accept Context ()
v83.go
v84.go
v85.go Use base32 for 2FA scratch token ()
v86.go
v87.go
v88.go chore(models): rewrite code format. ()
v89.go
v90.go
v91.go
v92.go chore(models): rewrite code format. ()
v93.go
v94.go
v95.go
v96.go chore(models): rewrite code format. ()
v97.go
v98.go
v99.go
v100.go chore(models): rewrite code format. ()
v101.go
v102.go
v103.go
v104.go chore(models): rewrite code format. ()
v105.go chore(models): rewrite code format. ()
v106.go
v107.go chore(models): rewrite code format. ()
v108.go
v109.go
v110.go
v111.go Move unit into models/unit/ ()
v112.go
v113.go
v114.go chore(models): rewrite code format. ()
v115.go refactor: move from io/ioutil to io and os package ()
v116.go chore(models): rewrite code format. ()
v117.go
v118.go
v119.go
v120.go
v121.go
v122.go chore(models): rewrite code format. ()
v123.go
v124.go chore(models): rewrite code format. ()
v125.go
v126.go
v127.go
v128.go Remove `git.Command.Run` and `git.Command.RunInDir*` ()
v129.go chore(models): rewrite code format. ()
v130.go Add an abstract json layout to make it's easier to change json library ()
v131.go
v132.go
v133.go
v134.go Remove `git.Command.Run` and `git.Command.RunInDir*` ()
v135.go
v136.go Propagate context and ensure git commands run in request context ()
v137.go
v138.go
v139.go
v140.go
v141.go
v142.go A better go code formatter, and now `make fmt` can run in Windows ()
v143.go
v144.go A better go code formatter, and now `make fmt` can run in Windows ()
v145.go
v146.go chore(models): rewrite code format. ()
v147.go Fix various documentation, user-facing, and source comment typos ()
v148.go
v149.go
v150.go
v151.go
v152.go
v153.go
v154.go
v155.go
v156.go Make git.OpenRepository accept Context ()
v157.go chore(models): rewrite code format. ()
v158.go chore(models): rewrite code format. ()
v159.go
v160.go
v161.go Fix database keyword quote problem on migration v161 ()
v162.go Add support for corporate WeChat webhooks ()
v163.go
v164.go
v165.go
v166.go
v167.go
v168.go
v169.go
v170.go
v171.go
v172.go v172 migration adds created_unix field instead of expiry ()
v173.go
v174.go Delete Labels & IssueLabels on Repo Delete too ()
v175.go A better go code formatter, and now `make fmt` can run in Windows ()
v176.go Create Proper Migration Tests ()
v176_test.go format with gofumpt ()
v177.go Create Proper Migration Tests ()
v177_test.go format with gofumpt ()
v178.go Add LFS Migration and Mirror ()
v179.go OAuth2 auto-register ()
v180.go Use a more general (and faster) method to sanitize URLs with credentials ()
v181.go Rework repository archive ()
v181_test.go format with gofumpt ()
v182.go Add primary_key to issue_index ()
v182_test.go format with gofumpt ()
v183.go Add push to remote mirror repository ()
v184.go Check if column exist before rename if exist, just return with no error ()
v185.go Rework repository archive ()
v186.go Add tag protection ()
v187.go Refactor Webhook + Add X-Hub-Signature ()
v188.go Add option to provide signature for a token to verify key ownership ()
v189.go Add an abstract json layout to make it's easier to change json library ()
v189_test.go format with gofumpt ()
v190.go Add agit flow support in gitea ()
v191.go format with gofumpt ()
v192.go Add primary_key to issue_index ()
v193.go Add repo_id for attachment ()
v193_test.go Add repo_id for attachment ()
v194.go Support unprotected file patterns ()
v195.go Fix commit status index problem ()
v195_test.go format with gofumpt ()
v196.go Kanban colored boards ()
v197.go Add a simple way to rename branch like gh ()
v198.go Save and view issue/comment content history ()
v199.go Refactor update checker to use AppState ()
v200.go Sync gitea app path for git hooks and authorized keys when starting ()
v201.go Refactor update checker to use AppState ()
v202.go Add support for ssh commit signing ()
v203.go Support sorting for project board issuses ()
v204.go Migration 204 use Sync2 ()
v205.go Increase Salt randomness ()
v206.go Team permission allow different unit has different permission ()
v207.go Attempt to fix the webauthn migration again - part 3 ()
v208.go Attempt to fix the webauthn migration again - part 3 ()
v209.go Attempt to fix the webauthn migration again - part 3 ()
v210.go Update the webauthn_credential_id_sequence in Postgres ()
v210_test.go Lock gofumpt to v0.3.0 and run it ()
v211.go Store the foreign ID of issues during migration ()
v212.go Add Package Registry ()
v213.go Add "Allow edits from maintainer" feature ()