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
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2017-05-05 21:16:54 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2017-06-13 10:52:48 +0300
commita4a3da764ae88c4de95f15f1069df9a43425c029 (patch)
tree475563ce433040441a7524213cd487913b39cb69 /app/models/generic_commit_status.rb
parent6f5a68f528d6c11f3bfd013e30cc71845abe6ef8 (diff)
Allow to access pipelines even if they are disabled, but only present jobs and commit statuses without giving ability to access them
Diffstat (limited to 'app/models/generic_commit_status.rb')
-rw-r--r--app/models/generic_commit_status.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/generic_commit_status.rb b/app/models/generic_commit_status.rb
index 8867ba0d2ff..532b8f4ad69 100644
--- a/app/models/generic_commit_status.rb
+++ b/app/models/generic_commit_status.rb
@@ -11,6 +11,7 @@ class GenericCommitStatus < CommitStatus
def set_default_values
self.context ||= 'default'
self.stage ||= 'external'
+ self.stage_idx ||= 1000000
end
def tags