summaryrefslogtreecommitdiff
path: root/lib/gitlab_post_receive.rb
Commit message (Collapse)AuthorAgeFilesLines
* Remove hooks, they belong to Gitaly nowJacob Vosmaer2019-04-031-125/+0
|
* Rename print_broadbast method to be genericdisplay-post-receive-warningsLuke Duncalfe2019-04-011-3/+3
| | | | | | print_warnings is now using that method in order to print a large formatted warning message, so renaming the method to be less tied to the broadcast message functionality.
* Allow GitlabPostReceive to print warningsLuke Duncalfe2019-03-281-0/+6
| | | | | | Warnings are printed using the same method that prints broadcast messages. This ensures that whatever warnings are returned will be displayed correctly.
* Use 'push_options' everywhere instead of 'push_opts'Jonathon Reinhart2018-12-131-3/+3
|
* Pass push options to GitLab /internal/post_receive APIJonathon Reinhart2018-12-131-2/+3
| | | | | | | | | | push_opts[] is named as such so that it becomes an array in the GitLab internal Grape::API params hash. If it were named push_opts, only the final (scalar) push_opts parameter would be present. Also update specs to include push_opts parameter: - gitlab_post_receive_spec - gitlab_net_spec for the internal API change
* Remove unused lib/names_helper.rbJonathon Reinhart2018-12-131-2/+0
| | | | As of 7eb45672b7, NamesHelper is no longer used.
* Revert "Merge branch 'ash.mckenzie/srp-refactor' into 'master'"Nick Thomas2018-08-141-10/+8
| | | | | This reverts commit 3aaf4751e09262c53544a1987f59b1308af9b6c1, reversing changes made to c6577e0d75f51b017f2f332838b97c3ca5b497c0.
* Use actor when we don't know if it's a Key or UserAsh McKenzie2018-08-011-8/+10
| | | | | | * Use gl_id when we don't know if it's a key-X or user-X * Use Actor.new_from(gl_id) which will figure out if it's a Key or User * Use key_str when we're referring to key-X as key_id is confusing
* allow long strings to remain intact while parsing broadcast messageCameron Crockett2018-06-011-4/+26
| | | | | | | | | | | | | | Added fix for msg nil edge case. fixed comment wording code review issues, bumped version and changelog entry Fixed rebase issues Moved strip out of the function Fixes for code review comments Removed trailing whitespaces
* Update files to pass modern rubocop checks. Disable some of themdz-update-depsDmitriy Zaporozhets2018-02-221-2/+2
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Update rubocop and code to pass itDmitriy Zaporozhets2018-02-221-7/+9
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Print new project information in post receiveTiago Botelho2018-02-061-0/+1
|
* Remove direct redis integrationNick Thomas2018-01-121-54/+0
|
* Prints a message if project was redirected35385-allow-git-pull-push-on-project-redirectsMayra Cabrera2017-12-071-1/+1
|
* Support new /internal/post-receive API endpointAlejandro Rodríguez2017-08-301-20/+39
|
* Revert "Merge branch ↵revert-gl-repositoryAlejandro Rodríguez2017-07-031-3/+6
| | | | | | | '86-follow-up-from-use-gl_repository-if-present-when-enqueing-sidekiq-postreceive-jobs' into 'master'" This reverts commit fa6343515ba65423e9de4c98c6005facc6059938, reversing changes made to 62af7f6af72728cecb98c5275d8b7aeb3953e564.
* Remove old `project` parameter, use `gl_repository` instead86-follow-up-from-use-gl_repository-if-present-when-enqueing-sidekiq-postreceive-jobsAlejandro Rodríguez2017-06-201-6/+3
|
* Use gl_repository if present when enqueing Sidekiq PostReceive jobs83-follow-up-from-handle-gl_repository-env-variable-and-use-it-in-api-callsAlejandro Rodríguez2017-05-301-2/+2
|
* Setup use of gl-repository to enqueue PostReceive sidekiq jobsAlejandro Rodríguez2017-05-111-1/+4
|
* Handle GL_REPOSITORY env variable and use it in api callsAlejandro Rodríguez2017-05-111-4/+5
|
* Add gitaly notification on post-receive hookAlejandro Rodríguez2017-02-071-0/+2
|
* Make merge request text after push clearerLisanne Fellinger2016-12-081-1/+1
| | | | | | Add changelog entry Editing changelog entry version
* Add instrumentation to push hooksmore-instrumentation-down-the-pipelineAhmad Sherif2016-11-161-2/+7
| | | | Related to #22053
* Use full repository path for API calls instead of extracting namedz-support-nested-namespacesDmitriy Zaporozhets2016-10-271-2/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* print new merge request urls after push receivedScott Le2016-08-121-1/+29
| | | | | | | | | | | | | | | | update spec different text for new and existing merge request update spec fix style switch order of messages enhance message appearance remove extra spaces
* Track ongoing pushes and reject mv-storage commands if there are push ↵mv-storageAlejandro Rodríguez2016-07-271-1/+2
| | | | running (after waiting some time)
* use STDERR to output error messagesValery Sizov2016-07-051-3/+3
|
* Update PostReceive worker to provide enqueued_at timeenqueued_at_for_jobsPaco Guzman2016-06-231-1/+6
|
* Add redis-rb as a vendored libraryStan Hu2016-05-121-1/+0
| | | | `make update-redis` will clone the library and adjust the paths properly
* Use Redis Ruby client instead of shelling out to redis-cliStan Hu2016-05-121-4/+6
| | | | Closes gitlab-org/gitlab-ce#17329
* Update post receive worker so it logs a unique JID in sidekiqaiionx/gitlab-shell-aiionx-post_receive_jidaiionx2016-04-191-2/+4
|
* Move setting/unsetting of GL_ID from lib to executables.Douwe Maan2015-04-061-4/+0
|
* Prevent character encoding issues by sending received changes as raw data.Douwe Maan2015-03-151-1/+5
|
* Fix post-receive broadcast messageDmitriy Zaporozhets2015-03-041-1/+1
|
* Enable rubocop ruleDmitriy Zaporozhets2015-03-021-1/+1
|
* Add tests.Douwe Maan2015-02-231-2/+2
|
* Return true from GitlabPostReceive to ensure custom hooks run.Douwe Maan2015-02-231-1/+3
|
* Improve broadcast message logicv2.5.1Dmitriy Zaporozhets2015-02-181-1/+3
| | | | | Expect broadcast message API endpoint to return 200 with empty JSON if no broadcast messages available
* Make fixes to pass rubocopDmitriy Zaporozhets2015-02-161-7/+7
|
* Show nice error message when internal API is unreachable.Douwe Maan2015-02-111-3/+7
|
* Print broadcast message if one is available.Douwe Maan2015-02-091-0/+41
|
* Support for custom hooksDrew Blessing2014-11-051-2/+5
|
* Fix bug when changes to post-receive worker was not dumped properlyv2.0.1Dmitriy Zaporozhets2014-09-251-1/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* GitlabAccess and GitlabPostReceive classes addedDmitriy Zaporozhets2014-09-011-0/+31
Gitlab Access handles security check. GitlabPostReceive creates a sidekiq job Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>