未验证 提交 49285bed 编写于 作者: K KubeSphere CI Bot 提交者: GitHub

Merge pull request #798 from runzexia/fix-job-trigger-typo

fix typo & regenerate swagger
此差异已折叠。
......@@ -83,7 +83,7 @@ type MultiBranchPipeline struct {
SingleSvnSource *SingleSvnSource `json:"single_svn_source,omitempty" description:"single branch svn scm define"`
BitbucketServerSource *BitbucketServerSource `json:"bitbucket_server_source,omitempty" description:"bitbucket server scm defile"`
ScriptPath string `json:"script_path" mapstructure:"script_path" description:"script path in scm"`
MultiBranchJobTrigger *MultiBranchJobTrigger `json:"multibranch_job_triggeromitempty" mapstructure:"multibranch_job_trigger" description:"Pipeline tasks that need to be triggered when branch creation/deletion"`
MultiBranchJobTrigger *MultiBranchJobTrigger `json:"multibranch_job_trigger,omitempty" mapstructure:"multibranch_job_trigger" description:"Pipeline tasks that need to be triggered when branch creation/deletion"`
}
type GitSource struct {
......
......@@ -107,7 +107,7 @@ func generateSwaggerJson() {
},
})
data, _ := json.Marshal(swagger)
data, _ := json.MarshalIndent(swagger, "", " ")
err := ioutil.WriteFile(output, data, 420)
if err != nil {
log.Fatal(err)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册