content接口返回分支

This commit is contained in:
victor 2021-02-01 10:36:30 +08:00
parent c3f69a48d6
commit 22d7478349
2 changed files with 3 additions and 1 deletions

View File

@ -166,6 +166,7 @@ class Ci::PipelinesController < Ci::BaseController
pipeline.event.split(',').each { |event| trigger += " - #{event}\r\n"}
end
@yaml += "trigger:\r\n" + trigger unless trigger.blank?
@branch = pipeline.branch
end
# =========阶段相关接口========= #

View File

@ -1,3 +1,4 @@
json.content @yaml
json.sync @sync
json.sha @sha
json.sha @sha
json.branch @branch