bench-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 Refuse merge until all required status checks success (#7481) 2019-09-18 08:39:45 +03:00
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 keep blame view buttons sequence consistent with normal view when view a file (#8007) 2019-08-27 22:23:18 -04:00
branch_dropdown.tmpl Escape branch name in dropdown menu (#3691) 2018-03-19 22:29:16 +08:00
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 UI: Fix overflow issues in repo (#7190) 2019-06-14 09:32:13 +08:00
commits.tmpl Responsive view (#2750) 2017-12-30 18:47:52 -06:00
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 Feature: Archive repos (#5009) 2019-01-23 13:58:38 -05:00
forks.tmpl #3348 always use relative avatar link in the template 2016-08-05 12:12:54 -07:00
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 Improve migrations to support migrating milestones/labels/issues/comments/pullrequests (#6290) 2019-05-07 09:12:51 +08:00
migrating.tmpl [assets] configurable URL for static resources (#7911) 2019-10-22 20:11:01 +08:00
search.tmpl Don't warn users about *every* dirty form (#3707) 2018-03-23 22:10:42 +08:00
sub_menu.tmpl Show repository size in repo home page and settings (#8940) 2019-11-13 00:45:19 +00:00
user_cards.tmpl Unifies pagination template usage (#6531) (#6533) 2019-04-20 00:15:19 -04:00
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 #1692 APIs: Users Followers 2015-12-21 04:24:11 -08:00