content接口返回分支
This commit is contained in:
parent
c3f69a48d6
commit
22d7478349
|
@ -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
|
||||
|
||||
# =========阶段相关接口========= #
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
json.content @yaml
|
||||
json.sync @sync
|
||||
json.sha @sha
|
||||
json.branch @branch
|
Loading…
Reference in New Issue