Skip to content

Commit

Permalink
feat: add deployment approval config attribute
Browse files Browse the repository at this point in the history
The `allow_pipeline_trigger_approve_deployment` attribute exists on the
Project entity and is returned in the Get Project API[1] even though it
is not documented.

[1]: https://docs.gitlab.com/ee/api/projects.html#get-a-single-project
  • Loading branch information
loozhengyuan committed Oct 3, 2024
1 parent 5f6d49a commit a1f4e7b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions projects.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ type Project struct {
StarCount int `json:"star_count"`
RunnersToken string `json:"runners_token"`
AllowMergeOnSkippedPipeline bool `json:"allow_merge_on_skipped_pipeline"`
AllowPipelineTriggerApproveDeployment bool `json:"allow_pipeline_trigger_approve_deployment"`
OnlyAllowMergeIfPipelineSucceeds bool `json:"only_allow_merge_if_pipeline_succeeds"`
OnlyAllowMergeIfAllDiscussionsAreResolved bool `json:"only_allow_merge_if_all_discussions_are_resolved"`
RemoveSourceBranchAfterMerge bool `json:"remove_source_branch_after_merge"`
Expand Down

0 comments on commit a1f4e7b

Please sign in to comment.