summaryrefslogtreecommitdiff
path: root/app/models/ci/pipeline_enums.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@13-3-stable-eeGitLab Bot2020-08-201-0/+4
|
* Add latest changes from gitlab-org/gitlab@13-2-stable-eeGitLab Bot2020-07-201-2/+3
|
* Add latest changes from gitlab-org/gitlab@13-1-stable-eeGitLab Bot2020-06-181-1/+4
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-02-131-3/+8
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-01-131-2/+6
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-01-081-5/+3
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-01-031-3/+5
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-141-1/+2
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-051-1/+12
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-161-0/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-131-0/+2
|
* CE port for pipelines for external pull requestsce-detect-github-pull-requestsFabio Pitino2019-09-051-1/+2
| | | | | | | | | | | | | | | Detect if pipeline runs for a GitHub pull request When using a mirror for CI/CD only we register a pull_request webhook. When a pull_request webhook is received, if the source branch SHA matches the actual head of the branch in the repository we create immediately a new pipeline for the external pull request. Otherwise we store the pull request info for when the push webhook is received. When using "only/except: external_pull_requests" we can detect if the pipeline has a open pull request on GitHub and create or not the job based on that.
* Add suffix for merge request eventShinya Maeda2019-03-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Fix ok Add spec Fix ok Fix Add changelog Fix Add memoization a fix
* Move ChatOps to CoreJames Fargher2019-02-201-0/+1
| | | | ChatOps used to be in the Ultimate tier.
* Refactor Ci::Pipeline's config_sources enumYorick Peterse2018-12-131-0/+10
| | | | | This enum is now defined in the Ci::PipelineEnums module, allowing EE to extend this enum without having to modify Ci::Pipeline directly.
* Change merge request value to 10Shinya Maeda2018-12-051-1/+1
|
* Merge request pipelinesShinya Maeda2018-12-051-1/+2
|
* Refactor how a few ActiveRecord enums are definedrefactor-enums-for-eeYorick Peterse2018-11-151-0/+28
In a few models we define ActiveRecord enums that are redefined in EE using the following pattern: enum :some_enum, { ... }.merge(EE_ENUM_VALUES) This particular approach is problematic to deal with, because it requires that we `prepend` and EE module _before_ defining the enum. This typically translates to the `prepend` being the first line in the model in EE, but this can easily lead to merge conflicts when developers add more `include` and/or `prepend` lines. As part of https://gitlab.com/gitlab-org/gitlab-ee/issues/8244 and https://gitlab.com/gitlab-org/gitlab-ee/issues/8241 we are moving `prepend` to the last line in a file, reducing the chances of running into merge conflicts. This poses a bit of a problem with the pattern above, because this pattern does not allow us to move the `prepend` further down a file. To resolve this problem, we simply move the Hash value of the enum to a separate class method. This method is defined in a separate module where necessary, allowing us to use it like so: enum :failure_reasons, ::SomeModelEnums.failure_reasons The method in turn is defined in a very straightforward manner: module SomeModelEnums def self.failure_reasons { ... } end end This makes it easy for EE to add values without requiring the `prepend` to be placed before the `enum` is defined. For more information, see the following issues and merge requests: * https://gitlab.com/gitlab-org/gitlab-ee/issues/8244 * https://gitlab.com/gitlab-org/gitlab-ee/issues/8241 * https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/8424