Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-12-05Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-12-03Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-11-07Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-10-22Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-10-17Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-09-18Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-09-11Add source and merge_request fields to pipeline event webhookBian Jiaping
2019-08-17Fix pipelines not always being created after a pushStan Hu
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/31741 introduced a regression where not all the right parameters would be passed into `Ci::CreatePipelineService`. We fix this by breaking out the pipeline parameters and reusing a method from `Gitlab::DataBuilder::Push`. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/66196
2019-08-13Reduce Gitaly calls in PostReceiveStan Hu
This commit reduces I/O load and memory utilization during PostReceive for the common case when no project hooks or services are set up. We saw a Gitaly N+1 issue in `CommitDelta` when many tags or branches are pushed. We can reduce this overhead in the common case because we observe that most new projects do not have any Web hooks or services, especially when they are first created. Previously, `BaseHooksService` unconditionally iterated through the last 20 commits of each ref to build the `push_data` structure. The `push_data` structured was used in numerous places: 1. Building the push payload in `EventCreateService` 2. Creating a CI pipeline 3. Executing project Web or system hooks 4. Executing project services 5. As the return value of `BaseHooksService#execute` 6. `BranchHooksService#invalidated_file_types` We only need to generate the full `push_data` for items 3, 4, and 6. Item 1: `EventCreateService` only needs the last commit and doesn't actually need the commit deltas. Item 2: In addition, `Ci::CreatePipelineService` only needed a subset of the parameters. Item 5: The return value of `BaseHooksService#execute` also wasn't being used anywhere. Item 6: This is only used when pushing to the default branch, so if many tags are pushed we can save significant I/O here. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/65878 Fic
2019-06-24Added labels_hook_attrs methodJan Provaznik
Based on review comment fetching labels hook_attrs is now wrapped in an issue's model method.
2019-06-20Fix label serialisation in issue and note hooksSean McGivern
We were not calling hook_attrs on the labels correctly. Specs were passing because the issues under test did not have any labels!
2019-06-10Adding labels to note event payload.Sujay Patel
2019-05-28Use source ref for pipeline webhookShinya Maeda
When user uses Pipelines for merge requests, the pipeline is a run on a merge request ref instead of branch ref. However, we should send source ref as a webhook in order to respect the original behavior.
2019-05-02Update deployment chat message notificationJason Goodman
Include link to user and commit title. Rearrange text
2019-04-29Merge branch 'use-keyword-args-for-databuilder-push' into 'master'Douglas Barbosa Alexandre
Use keyword args for databuilder push See merge request gitlab-org/gitlab-ce!24088
2019-04-27Add deployment events to chat notification servicesJason Goodman
This enables sending a chat message to Slack or Mattermost upon a successful, failed, or canceled deployment
2019-04-25Use all keyword args for DataBuilder::Push.build()Jonathon Reinhart
2019-04-09Use Gitlab::PushOptions for `ci.skip` push optionLuke Duncalfe
Previously the raw push option Array was sent to Pipeline::Chain::Skip. This commit updates this class (and the chain of classes that pass the push option parameters from the API internal `post_receive` endpoint to that class) to treat push options as a Hash of options parsed by GitLab::PushOptions. The GitLab::PushOptions class takes options like this: -o ci.skip -o merge_request.create -o merge_request.target=branch and turns them into a Hash like this: { ci: { skip: true }, merge_request: { create: true, target: 'branch' } } This now how Pipeline::Chain::Skip is determining if the `ci.skip` push option was used.
2019-04-04Drop legacy artifacts usageShinya Maeda
Legacy artifacts have been correctly migrated to new place - ci_job_artifacts. Now it's time to remove the related code, but before that we should ensure it doesn't break anything by using feature flag.
2019-01-31Fix private user email being visible in tag webhooksLuke Duncalfe
Fixes #54721
2018-12-31Add support for Git push options, specifically ci.skipJonathon Reinhart
gitlab-org/gitlab-shell!166 added support for collecting push options from the environment, and passing them along to the /internal/post_receive API endpoint. This change handles the new push_options JSON element in the payload, and passes them on through to the GitPushService and GitTagPushService services. Futhermore, it adds support for the first push option, ci.skip. With this change, one can use 'git push -o ci.skip' to skip CI pipe execution. Note that the pipeline is still created, but in the "skipped" state, just like with the 'ci skip' commit message text. Implements #18667
2018-11-07Enable even more frozen string in lib/gitlabgfyoung
Enables frozens string for the following: * lib/gitlab/conflict/**/*.rb * lib/gitlab/cross_project_access/**/*.rb * lib/gitlab/cycle_analytics/**/*.rb * lib/gitlab/data_builder/**/*.rb * lib/gitlab/database/**/*.rb * lib/gitlab/dependency_linker/**/*.rb * lib/gitlab/diff/**/*.rb * lib/gitlab/downtime_check/**/*.rb * lib/gitlab/email/**/*.rb * lib/gitlab/etag_caching/**/*.rb Partially addresses gitlab-org/gitlab-ce#47424.
2018-10-01Add variables on pipeline webhookPierre Tardy
2018-08-31Use sample data for push event when no commits createdTakuya Noguchi
2018-08-10#47845 - Propagate failure_reason to job webhook.Maciej Sokołowski
2018-06-26Remove the use of `is_shared` of `Ci::Runner`Kamil Trzciński
2018-04-05Merge branch 'jej/mattermost-notification-confidentiality-10-6' into ↵Douwe Maan
'security-10-6' [10.6] Prevent notes on confidential issues from being sent to chat See merge request gitlab/gitlabhq!2366 # Conflicts: # app/helpers/services_helper.rb
2018-03-08Merge branch 'ce-jej/github-project-service-for-ci' into 'master'Douwe Maan
Backport changes from introducing GithubService interation in EE See merge request gitlab-org/gitlab-ce!17607
2018-03-07Backport changes from EE's GithubService integrationJames Edwards-Jones
Adds detailed_status to pipeline hook data Adds detailed_description option for Services Integration edit page renders 404 if a service is disabled
2018-03-07Use Project#full_name instead of name_with_namespaceDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2017-10-05Use full URL of user avatar on webhook pushVitaliy @blackst0ne Klachkov
2017-09-22Workaround for #38259Andrew Newdigate
2017-08-28Simplify system hook testing and guarantee test will fireStan Hu
The change in !11728 would cause an arbitrary project to be chosen to test system hooks, and it's likely that the project would not have any commits or relevant commits to test the hook. This would prevent admins from verifying that the hook fired. Instead of trying to create a representative hook dynamically, just send static data to guarantee the hook will actually be tested. Closes #37067
2017-07-28Load and process at most 100 commits when pushing into default branchDouwe Maan
2017-07-20Wrong data type when testing webhooksAlexander Randa
2017-06-01Rename pipeline methods related to legacy stagesGrzegorz Bizon
2017-05-15Merge branch 'dturner/username' into 'master' Rémy Coutable
add username field to push webhook Closes #32136 See merge request !11272
2017-05-13Added repository_update hookGabriel Mazetto
2017-05-11Add username field to push webhookDavid Turner
Signed-off-by: David Turner <novalis@novalis.org>
2017-05-10Enable the Style/TrailingCommaInLiteral copRémy Coutable
Use the EnforcedStyleForMultiline: no_comma option. Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-04-27improves test settings for chat notification services for empty projectsTiago Botelho
2017-03-06Reinstitute a core `manual` status for manual actionsGrzegorz Bizon
2017-01-25Adding links to user & build in Chat NotificationsPoornima M
2016-12-06Added Ci::Stage specsKamil Trzcinski
2016-12-06Introduce `Ci::Stage`, right now this is artificial object that is build ↵Kamil Trzcinski
dynamically.
2016-10-28Fix lightweight tags not processed correctly by GitTagPushServiceAlejandro Rodríguez
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`.
2016-08-12Simplify the name for data builder, feedback:Lin Jen-Shin
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5620#note_13671791
2016-08-12Prefer extend self over module_function, feedback:Lin Jen-Shin
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5620#note_13672004 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5620#note_13810498
2016-08-11Remove stage parameter from send payloadKamil Trzcinski
2016-08-05We still need to skip loading config_processor if skip_ci?Lin Jen-Shin