summaryrefslogtreecommitdiff
path: root/app/services/delete_branch_service.rb
Commit message (Collapse)AuthorAgeFilesLines
* Move GitHooksService to Gitlab::GitJacob Vosmaer2017-08-231-1/+1
|
* Add confirm delete protected branch modalSam Rose2017-05-081-12/+4
|
* Moved Project#protected_branch? to ProtectedBranch, similar for tagsJames Edwards-Jones2017-04-031-1/+1
|
* Remove unnecessary require_relative calls from service classesSemyon Pupkov2016-11-221-2/+0
| | | | | Rails by default use autoload for all dirs from app folder. require_relative not needed. See ActiveSupport::Dependencies.autoload_paths
* Fix lightweight tags not processed correctly by GitTagPushService22271-drone-tag-pipeline-buildAlejandro Rodríguez2016-10-281-1/+1
| | | | | | | | When we updated gitlab_git to 10.4.1, `tag.target` changed from pointing to the sha of the tag to the sha of the commit the tag points to. The problem is that only annotated tags have `object_sha`s, lightweight tags don't (it's nil), so (only) in their case we still need to use `tag.target`.
* Simplify the name for data builder, feedback:Lin Jen-Shin2016-08-121-2/+7
| | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5620#note_13671791
* Move those builders to their own namespace, feedback:Lin Jen-Shin2016-08-041-1/+1
| | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5620#note_13540099
* Update to gitlab_git 10.4.1 and take advantage of preserved Ref objectsAlejandro Rodríguez2016-07-281-1/+1
|
* Revert "Merge branch ↵Alejandro Rodríguez2016-07-241-1/+1
| | | | | '17073-tagscontroller-index-is-terrible-response-time-goes-up-to-5-…" This reverts merge request !5375
* Update to gitlab_git 10.4.1 and take advantage of preserved Ref objectsAlejandro Rodríguez2016-07-211-1/+1
|
* Services: code style fixes, minor refactoringservices_refactoring1Valery Sizov2016-07-061-10/+2
|
* Better message for git hooks and file locksValery Sizov2016-07-041-2/+2
|
* Fix duplicated branch creation/deletion Web hooks/service notifications when ↵Stan Hu2016-02-091-5/+1
| | | | | | | | | | | | | | | | | | | using Web UI Similar to 423d2d6, except duplicates occurred only if a Web service (e.g. Slack) were configured. When deleting a branch, this is what was happening: 1. DeleteBranchService calls execute_hooks and execute_services 2. The call to repository.rm_branch triggers the GitHooksService. 3. This, in turn, calls GitPushService and then calls the same hooks/services again. 5145706 now makes it no longer necessary for DeleteBranchService and CreateBranchService to execute the branch hooks/services. Note that tags behave differently in GitTagPushService and GitPushService is not called. Closes #10330
* Fix duplicated branch creation/deletion events when using Web UIStan Hu2016-01-081-1/+0
| | | | | | | | | | | | When deleting a branch, this is what was happening: 1. DeleteBranchService calls EventCreateService and creates an event. 2. The call to repository.rm_branch triggers the GitHooksService. 3. This, in turn, calls GitPushService and then calls EventCreateService again. 5145706c now makes it no longer necessary for DeleteBranchService and CreateBranchService to create an event. Closes #4304
* Run custom Git hooks when creating or deleting branches through the UI. #1156Rubén Dávila2015-12-031-1/+3
|
* Ecevute hooks and services when branches are created/deleted through web.Douwe Maan2015-03-131-0/+3
|
* Use PushDataBuilder where applicable.Douwe Maan2015-03-131-2/+9
|
* Move all event creation to EventCreateService.Douwe Maan2015-02-131-1/+1
|
* Factor error and success methods from services.Ciro Santilli2014-09-211-11/+10
|
* Validate branch-names and references in WebUI, APIRobert Schilling2014-09-031-5/+6
| | | | Add specs for GitRefValidator
* Improve branch-removal logicDmitriy Zaporozhets2014-05-221-0/+4
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Delete branch service with permission checksDmitriy Zaporozhets2014-05-221-0/+42
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>