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.
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>
5 years ago
..
branch Button tooltip formatting under Branches (#9034) 5 years ago
diff Fix context menu overflow & review tag margin (#9231) 5 years ago
editor Allow committing / adding empty files using the web ui (#8420) (#8532) 5 years ago
issue Change target branch for pull request (#6488) 5 years ago
pulls Refuse merge until all required status checks success (#7481) 5 years ago
release Fix max length check and limit in multiple repo forms (#9148) 5 years ago
settings Make repository management section handle lfs locks (#8726) 5 years ago
wiki wiki - add 'write' 'preview' buttons to wiki edit like in issues (#7241) 5 years ago
activity.tmpl Add additional periods to activity page (#8829) 5 years ago
blame.tmpl keep blame view buttons sequence consistent with normal view when view a file (#8007) 5 years ago
branch_dropdown.tmpl Escape branch name in dropdown menu (#3691) 6 years ago
commit_page.tmpl Sign merges, CRUD, Wiki and Repository initialisation with gpg key (#7631) 5 years ago
commit_status.tmpl UI: Fix overflow issues in repo (#7190) 5 years ago
commits.tmpl Responsive view (#2750) 7 years ago
commits_list.tmpl Don't link wiki revision to commit (#9244) 5 years ago
commits_table.tmpl Change some label colors (#9051) 5 years ago
create.tmpl Show label list on label set (#9251) 5 years ago
empty.tmpl Feature: Archive repos (#5009) 6 years ago
forks.tmpl #3348 always use relative avatar link in the template 8 years ago
graph.tmpl Add pagination to commit graph page (#8360) 5 years ago
header.tmpl Template Repositories (#8768) 5 years ago
home.tmpl Template Repositories (#8768) 5 years ago
migrate.tmpl Improve migrations to support migrating milestones/labels/issues/comments/pullrequests (#6290) 5 years ago
migrating.tmpl [assets] configurable URL for static resources (#7911) 5 years ago
search.tmpl Don't warn users about *every* dirty form (#3707) 6 years ago
sub_menu.tmpl Show repository size in repo home page and settings (#8940) 5 years ago
user_cards.tmpl Unifies pagination template usage (#6531) (#6533) 5 years ago
view_file.tmpl Respect LFS File Lock on UI (#8719) 5 years ago
view_list.tmpl Project files table style update (#8757) 5 years ago
watchers.tmpl #1692 APIs: Users Followers 9 years ago