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"}
|
pipeline.event.split(',').each { |event| trigger += " - #{event}\r\n"}
|
||||||
end
|
end
|
||||||
@yaml += "trigger:\r\n" + trigger unless trigger.blank?
|
@yaml += "trigger:\r\n" + trigger unless trigger.blank?
|
||||||
|
@branch = pipeline.branch
|
||||||
end
|
end
|
||||||
|
|
||||||
# =========阶段相关接口========= #
|
# =========阶段相关接口========= #
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
json.content @yaml
|
json.content @yaml
|
||||||
json.sync @sync
|
json.sync @sync
|
||||||
json.sha @sha
|
json.sha @sha
|
||||||
|
json.branch @branch
|
Loading…
Reference in New Issue