gitea/modules/structs
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
..
admin_user.go Move sdk structs to modules/structs (#6905) 2019-05-11 18:21:34 +08:00
attachment.go Revert "make modules/structs as a spereate go mod (#7127)" (#7175) 2019-06-10 15:55:58 -04:00
doc.go Move sdk structs to modules/structs (#6905) 2019-05-11 18:21:34 +08:00
fork.go Move sdk structs to modules/structs (#6905) 2019-05-11 18:21:34 +08:00
git_blob.go Move sdk structs to modules/structs (#6905) 2019-05-11 18:21:34 +08:00
git_hook.go Move sdk structs to modules/structs (#6905) 2019-05-11 18:21:34 +08:00
hook.go Change target branch for pull request (#6488) 2019-12-16 14:20:25 +08:00
issue.go Fix API deadline removal (#8759) 2019-11-03 22:46:32 +08:00
issue_comment.go Display original author and URL information when showing migrated issues/comments (#7352) 2019-07-08 10:14:12 +08:00
issue_label.go Add missing description of label on API (#7159) 2019-06-16 20:39:52 +08:00
issue_milestone.go Move sdk structs to modules/structs (#6905) 2019-05-11 18:21:34 +08:00
issue_reaction.go [API] Add Reactions (#9220) 2019-12-07 17:04:19 -05:00
issue_stopwatch.go [API] extend StopWatch (#9196) 2019-12-11 23:23:05 -05:00
issue_tracked_time.go Move sdk structs to modules/structs (#6905) 2019-05-11 18:21:34 +08:00
lfs_lock.go Move sdk structs to modules/structs (#6905) 2019-05-11 18:21:34 +08:00
miscellaneous.go API method to list all commits of a repository (#6408) 2019-08-26 16:09:10 +02:00
org.go Add teams to repo on collaboration page. (#8045) 2019-09-23 23:08:03 +03:00
org_member.go Move sdk structs to modules/structs (#6905) 2019-05-11 18:21:34 +08:00
org_team.go Team permission to create repository in organization (#8312) 2019-11-20 19:27:49 +08:00
org_type.go Fixes #7023 - API Org Visibility (#7028) 2019-05-30 13:57:55 -04:00
pull.go Fix API deadline removal (#8759) 2019-11-03 22:46:32 +08:00
release.go Move sdk structs to modules/structs (#6905) 2019-05-11 18:21:34 +08:00
repo.go Add release_counter to Repo API (#9214) 2019-11-30 14:28:47 -05:00
repo_branch.go Update branch API endpoint to show effective branch protection. (#9031) 2019-11-16 19:39:18 +00:00
repo_collaborator.go Move sdk structs to modules/structs (#6905) 2019-05-11 18:21:34 +08:00
repo_commit.go Move sdk structs to modules/structs (#6905) 2019-05-11 18:21:34 +08:00
repo_file.go Be more strict with git arguments (#7715) 2019-08-05 21:39:39 +01:00
repo_key.go Move sdk structs to modules/structs (#6905) 2019-05-11 18:21:34 +08:00
repo_refs.go Move sdk structs to modules/structs (#6905) 2019-05-11 18:21:34 +08:00
repo_tag.go Fixes #2738 - Adds the /git/tags API endpoint (#7138) 2019-06-08 17:31:11 +03:00
repo_topic.go Add API endpoint for accessing repo topics (#7963) 2019-09-03 23:46:24 +08:00
repo_tree.go Move sdk structs to modules/structs (#6905) 2019-05-11 18:21:34 +08:00
repo_watch.go Move sdk structs to modules/structs (#6905) 2019-05-11 18:21:34 +08:00
status.go Move sdk structs to modules/structs (#6905) 2019-05-11 18:21:34 +08:00
task.go Move migrating repository from frontend to backend (#6200) 2019-10-13 21:23:14 +08:00
user.go Add LastLogin to the User API (#7196) 2019-06-15 23:28:32 -04:00
user_app.go Move sdk structs to modules/structs (#6905) 2019-05-11 18:21:34 +08:00
user_email.go Move sdk structs to modules/structs (#6905) 2019-05-11 18:21:34 +08:00
user_gpgkey.go Move sdk structs to modules/structs (#6905) 2019-05-11 18:21:34 +08:00
user_key.go Move sdk structs to modules/structs (#6905) 2019-05-11 18:21:34 +08:00
utils.go Add golangci (#6418) 2019-06-12 15:41:28 -04:00