forgejo-federation/models/migrations
Mario Lubenka 61db834904 Change target branch for pull request (#6488)
* Adds functionality to change target branch of created pull requests

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Use const instead of var in JavaScript additions

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Check if branches are equal and if PR already exists before changing target branch

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Make sure to check all commits

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Print error messages for user as error flash message

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Disallow changing target branch of closed or merged pull requests

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Resolve conflicts after merge of upstream/master

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Change order of branch select fields

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Removes duplicate check

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Use ctx.Tr for translations

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Recompile JS

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Use correct translation namespace

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Remove redundant if condition

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Moves most change branch logic into pull service

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Completes comment

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Add Ref to ChangesPayload for logging changed target branches
instead of creating a new struct

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Revert changes to go.mod

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Directly use createComment method

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Return 404 if pull request is not found. Move written check up

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Remove variable declaration

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Return client errors on change pull request target errors

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Return error in commit.HasPreviousCommit

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Adds blank line

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Test patch before persisting new target branch

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Update patch before testing (not working)

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Removes patch calls when changeing pull request target

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Removes unneeded check for base name

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Moves ChangeTargetBranch completely to pull service. Update patch status.

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Set webhook mode after errors were validated

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Update PR in one transaction

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Move logic for check if head is equal with branch to pull model

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Adds missing comment and simplify return

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>

* Adjust CreateComment method call

Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
2019-12-16 14:20:25 +08:00
..
migrations.go Change target branch for pull request (#6488) 2019-12-16 14:20:25 +08:00
v13.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v14.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v15.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v16.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v17.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v18.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v19.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v20.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v21.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v22.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v23.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v24.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v25.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v26.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v27.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v28.go Stop using git count-objects and use raw directory size for repository (#8848) 2019-11-10 21:33:47 +00:00
v29.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v30.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v31.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v32.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v33.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v34.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v35.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v36.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v37.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v38.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v39.go Move some repository methods from models to modules/repository (#9353) 2019-12-14 18:30:01 +01:00
v40.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v41.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v45.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v46.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v47.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v48.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v49.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v50.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v51.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v52.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v53.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v54.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v55.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v56.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v57.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v58.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v59.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v60.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v61.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v62.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v63.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v64.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v65.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v66.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v67.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v68.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v69.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v70.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v71.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v72.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v73.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v74.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v75.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v76.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v77.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v78.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v79.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v80.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v81.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v82.go Add Close() method to gogitRepository (#8901) 2019-11-13 07:01:19 +00:00
v83.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v84.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v85.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v86.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v87.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v88.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v89.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v90.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v91.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v92.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v93.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v94.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v95.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v96.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v97.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v98.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v99.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v100.go Upgrade xorm to v0.8.0 (#8536) 2019-10-17 11:26:49 +02:00
v101.go Allow more than 255 characters for tokens in external_login_user table (#8554) 2019-10-18 09:58:36 +03:00
v102.go Fix bug on pull requests when transfer head repository (#8564) 2019-10-18 19:13:31 +08:00
v103.go Allow Protected Branches to Whitelist Deploy Keys (#8483) 2019-10-21 09:21:45 +01:00
v104.go Fix extra columns from label table (#8633) 2019-10-23 14:48:32 +03:00
v105.go Add team option to grant rights for all organization repositories (#8688) 2019-11-06 11:37:14 +02:00
v106.go Auto-subscribe user to repository when they commit/tag to it (#7657) 2019-11-10 09:22:19 +00:00
v107.go Template Repositories (#8768) 2019-11-11 23:15:29 +08:00
v108.go Improve notification (#8835) 2019-11-12 16:33:34 +08:00
v109.go Team permission to create repository in organization (#8312) 2019-11-20 19:27:49 +08:00
v110.go Change review content column to type text in db (#9229) 2019-12-02 13:32:40 -05:00
v111.go Branch protection: Possibility to not use whitelist but allow anyone with write access (#9055) 2019-12-03 20:08:56 -05:00
v112.go Remove release attachments which repository has been deleted (#9334) 2019-12-13 22:30:39 -05:00
v113.go Change target branch for pull request (#6488) 2019-12-16 14:20:25 +08:00