diff options
author | James Lopez <james@jameslopez.es> | 2016-06-13 11:55:54 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-06-13 11:55:54 +0300 |
commit | 069bc264185f35f75c6840e26581e64a1de12d6a (patch) | |
tree | a38f015d81a4e4e577207b89e061676f8f8dfcb6 /app/models/ci/pipeline.rb | |
parent | 771f73510937186130be260d11b8dbb273d45907 (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.rb | 8 |
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 |