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:
authorJames Lopez <james@jameslopez.es>2016-06-13 11:55:54 +0300
committerJames Lopez <james@jameslopez.es>2016-06-13 11:55:54 +0300
commit069bc264185f35f75c6840e26581e64a1de12d6a (patch)
treea38f015d81a4e4e577207b89e061676f8f8dfcb6 /app/models/ci/pipeline.rb
parent771f73510937186130be260d11b8dbb273d45907 (diff)
refactored loads of things due to commits to pipeline change
Diffstat (limited to 'app/models/ci/pipeline.rb')
-rw-r--r--app/models/ci/pipeline.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb
index 4a4392959a7..d780467034e 100644
--- a/app/models/ci/pipeline.rb
+++ b/app/models/ci/pipeline.rb
@@ -161,6 +161,10 @@ module Ci
git_commit_message =~ /(\[ci skip\])/ if git_commit_message
end
+ def notes
+ Note.for_commit_id(sha)
+ end
+
private
def update_state
@@ -181,9 +185,5 @@ module Ci
self.yaml_errors = error
update_state
end
-
- def notes
- Note.for_commit_id(valid_commit_sha)
- end
end
end