0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-26 17:34:11 -05:00
forgejo/templates/repo
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
..
branch Button tooltip formatting under Branches (#9034) 2019-11-16 12:03:07 +00:00
diff Fix context menu overflow & review tag margin (#9231) 2019-12-03 01:03:30 +02:00
editor Allow committing / adding empty files using the web ui (#8420) (#8532) 2019-10-16 22:28:41 +03:00
issue Change target branch for pull request (#6488) 2019-12-16 14:20:25 +08:00
pulls
release Fix max length check and limit in multiple repo forms (#9148) 2019-11-25 01:06:23 +02:00
settings Make repository management section handle lfs locks (#8726) 2019-12-12 21:18:07 +08:00
wiki wiki - add 'write' 'preview' buttons to wiki edit like in issues (#7241) 2019-11-17 14:42:44 -05:00
activity.tmpl Add additional periods to activity page (#8829) 2019-11-05 00:45:48 -05:00
blame.tmpl
branch_dropdown.tmpl
commit_page.tmpl Sign merges, CRUD, Wiki and Repository initialisation with gpg key (#7631) 2019-10-16 14:42:42 +01:00
commit_status.tmpl
commits.tmpl
commits_list.tmpl Don't link wiki revision to commit (#9244) 2019-12-03 13:15:41 -05:00
commits_table.tmpl Change some label colors (#9051) 2019-12-03 20:39:58 -05:00
create.tmpl Show label list on label set (#9251) 2019-12-06 21:13:19 -05:00
empty.tmpl
forks.tmpl
graph.tmpl Add pagination to commit graph page (#8360) 2019-10-14 22:38:35 +01:00
header.tmpl Template Repositories (#8768) 2019-11-11 23:15:29 +08:00
home.tmpl Template Repositories (#8768) 2019-11-11 23:15:29 +08:00
migrate.tmpl
migrating.tmpl [assets] configurable URL for static resources (#7911) 2019-10-22 20:11:01 +08:00
search.tmpl
sub_menu.tmpl Show repository size in repo home page and settings (#8940) 2019-11-13 00:45:19 +00:00
user_cards.tmpl
view_file.tmpl Respect LFS File Lock on UI (#8719) 2019-10-29 23:32:21 +02:00
view_list.tmpl Project files table style update (#8757) 2019-11-02 00:26:21 +00:00
watchers.tmpl