Преглед изворни кода

Update request body of UpdateGitActionConfig to accept only the git branch

jnfrati пре 3 година
родитељ
комит
be76d7a4bf
1 измењених фајлова са 7 додато и 1 уклоњено
  1. 7 1
      api/types/release.go

+ 7 - 1
api/types/release.go

@@ -194,6 +194,12 @@ type PatchUpdateReleaseTags struct {
 	Tags []string `json:"tags"`
 }
 
+type PartialGitActionConfig struct {
+	// The branch to use for the git repository
+	// required: true
+	GitBranch string `json:"branch" form:"required"`
+}
+
 type UpdateGitActionConfigRequest struct {
-	GitActionConfig *GitActionConfig `json:"git_action_config"`
+	GitActionConfig *PartialGitActionConfig `json:"git_action_config"`
 }