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
2017-12-22Replace '.team << [user, role]' with 'add_role(user)' in specsblackst0ne
2017-12-05Ensure pippeline corresponds with the sha of an MRJarka Kadlecova
2017-10-09Include the changes in issuable webhook payloadsRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-10-07Add a project forks spec helperBob Van Landuyt
The helper creates a fork of a project with all provided attributes, but skipping the creation of the repository on disk.
2017-09-15Prepare Repository#merge for migration to GitalyJacob Vosmaer
2017-07-27Use described_class when possibleRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-27Remove superfluous lib: true, type: redis, service: true, models: true, ↵Rémy Coutable
services: true, no_db: true, api: true Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-07Don't mark empty MRs as merged on push to the target branchSean McGivern
When we push to an MR's target branch, we check if the MR's HEAD commit is contained in the push. This lets us mark MRs as merged if they were merged manually. However, we also added a feature where you can create an empty MR from an issue. If that MR is created around the time of a merge to the default branch, we would process the push after creating the MR, and consider it to be a manual merge. To fix that, we exclude empty MRs from this process. If they are empty, they were empty before the push we're processing, so we shouldn't touch them!
2017-06-21Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon
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-06Search for opened MRs - include reopened MRsJarka Kadlecova
2017-03-28Use `:empty_project` where possible in service specsRobert Speicher
2017-03-08Speed up MergeRequest::RefreshService spec by combining examplesStan Hu
2017-03-01Update occurrences of MWBS to MWPSJames Lopez
Rename column in the database Rename fields related to import/export feature Rename API endpoints Rename documentation links Rename the rest of occurrences in the code Replace the images that contain the words "build succeeds" and docs referencing to them Make sure pipeline is green and nothing is missing. updated doc images renamed only_allow_merge_if_build_succeeds in projects and fixed references more updates fix some spec failures fix rubocop offences fix v3 api spec fix MR specs fixed issues with partials fix MR spec fix alignment add missing v3 to v4 doc wip - refactor v3 endpoints fix specs fix a few typos fix project specs copy entities fully to V3 fix entity error more fixes fix failing specs fixed missing entities in V3 API remove comment updated code based on feedback typo fix spec
2017-02-13Mark as WIP based on MR commits onlyJarka Kadlecova
2017-02-03Backport changes from EE squashSean McGivern
Backport changes from the EE-only squash implementation, which would otherwise conflict when merge CE into EE. <https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/1024>
2017-01-23Backport EE changes on approvals reset for closed MRsOswaldo Ferreira
2017-01-19Mark MR as WIP when pushing WIP commitsjurre
2016-12-09Do not reload diff for merge request made from fork when target branch in ↵Adam Niedzielski
fork is updated The target branch of a merge request has to be a branch in the project for which the merge request is submitted. When a branch changes in a fork, it does not make sense to reload diffs of merge requests in the upstream project that use the same branch name as the target branch. Please note that it does make sense to reload diffs when the source branch changes.
2016-11-24Rephrase some system notes to be compatible with new system note styleDouwe Maan
2016-11-21Revert "Do not create a MergeRequestDiff record when source branch is deleted"Adam Niedzielski
This reverts commit f913170e2f76ef44800f0272cb7fb40b9d6709ee.
2016-11-16Do not create a MergeRequestDiff record when source branch is deletedAdam Niedzielski
In order to have a valid MergeRequestDiff record when need head_commit_sha. When a source branch is deleted head_commit_sha is nil. This causes an exception in merge request "Changes" tab.
2016-10-13Extract project#update_merge_requests and SystemHooks to its own worker from ↵Paco Guzman
GitPushService
2016-10-11refactors tests because of gitlab-test repository changestiagonbotelho
2016-09-29Close todos when accepting a MR via the API.Tony Gambone
2016-09-20Add a spec for merge request metric caching while refreshing a merge request ↵Timothy Andrew
from a forked project.
2016-09-20Use the `IssuableBaseService` lifecycle hooks to cache ↵Timothy Andrew
`MergeRequestsClosingIssues` - Instead of overriding `create` and `update` in `MergeRequests::BaseService` - Get all merge request service specs passing
2016-09-20Implement a second round of review comments from @DouweM.Timothy Andrew
- Don't use `TableReferences` - using `.arel_table` is shorter! - Move some database-related code to `Gitlab::Database` - Remove the `MergeRequest#issues_closed` and `Issue#closed_by_merge_requests` associations. They were either shadowing or were too similar to existing methods. They are not being used anywhere, so it's better to remove them to reduce confusion. - Use Rails 3-style validations - Index for `MergeRequest::Metrics#first_deployed_to_production_at` - Only include `CycleAnalyticsHelpers::TestGeneration` for specs that need it. - Other minor refactorings.
2016-09-19Test all cycle analytics pre-calculation code.Timothy Andrew
All the code that pre-calculates metrics for use in the cycle analytics page. - Ci::Pipeline -> build start/finish - Ci::Pipeline#merge_requests - Issue -> record default metrics after save - MergeRequest -> record default metrics after save - Deployment -> Update "first_deployed_to_production_at" for MR metrics - Git Push -> Update "first commit mention" for issue metrics - Merge request create/update/refresh -> Update "merge requests closing issues"
2016-08-09adds second batch of tests changed to active tensetiagonbotelho
2016-08-01webhooks: include old revision in MR update eventsBen Boeckel
2016-07-18Revert "Revert "Merge branch '18193-developers-can-merge' into 'master' ""Rémy Coutable
This reverts commit 530f5158e297f3cde27f3566cfe13bad74ba3b50. See !4892. Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-07-13Revert "Merge branch '18193-developers-can-merge' into 'master' "Robert Speicher
This reverts commit 9ca633eb4c62231e4ddff5466c723cf8e2bdb25d, reversing changes made to fb229bbf7970ba908962b837b270adf56f14098f.
2016-07-13Enforce "developers can merge" during `pre-receive`.Timothy Andrew
1. When a merge request is being merged, save the merge commit SHA in the `in_progress_merge_commit_sha` database column. 2. The `pre-receive` hook looks for any locked (in progress) merge request with `in_progress_merge_commit_sha` matching the `newrev` it is passed. 3. If it finds a matching MR, the merge is legitimate. 4. Update `git_access_spec` to test the behaviour we added here. Also refactored this spec a bit to make it easier to add more contexts / conditions.
2016-07-12Avoid `describe`-ing symbols in specsRobert Speicher
2016-07-01Enable Style/EmptyLines cop, remove redundant onesGrzegorz Bizon
2016-05-17Create a todo on failing MR buildSean McGivern
When a build fails for a commit, create a todo for the author of the merge request that commit is the HEAD of. If the commit isn't the HEAD commit of any MR, don't do anything. If there already is a todo for that user and MR, don't do anything. Current limitations: - This isn't configurable by project. - The author of a merge request might not be the person who pushed the breaking commit.
2016-03-03Use Gitlab::Git::DiffCollectionsJacob Vosmaer
2015-12-09Merge branch 'master' into split-up-buildsDouwe Maan
2015-12-09Tag service specsDouwe Maan
2015-12-05Incorporate feedbackZeger-Jan van de Weg
2015-12-02Specs for 'Merge When Build Succeeds'Zeger-Jan van de Weg
2015-11-06Add spec for manual merge of merge requestStan Hu
2015-10-16Reorder system note verb to say "Restored source branch X" instead of ↵Stan Hu
"Source branch X restored"
2015-10-16Add spec for refresh service adding notes to restored branchesStan Hu
2015-10-16Improve SystemNote interface for branch add/restore caseStan Hu
2015-10-16Add a system note and update relevant merge requests when a branch is ↵Stan Hu
deleted or re-added If a branch is deleted with an open merge request, amended offline, and then pushed again, GitLab doesn't bother to update the merge request even though the last commit ID and/or code may have changed. This MR ensures that each push will update any relevant merge requests and adds a system note if this happens as well. Closes #2926
2015-06-23Fix Style/AlignHash cop violationsStan Hu
2015-05-13Call merge request web hook for each commitsArthur Gautier
Call merge request web hook every times a new commit hits the source branch Signed-off-by: Arthur Gautier <baloo@gandi.net>
2015-03-06Condense commits already in target branch when updating merge request source ↵Douwe Maan
branch.