From a1f4e7b8a95e58ba61f5589c8b2eb551c07adc6e Mon Sep 17 00:00:00 2001 From: Loo Zheng Yuan Date: Thu, 3 Oct 2024 21:13:09 +0800 Subject: [PATCH] feat: add deployment approval config attribute 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 --- projects.go | 1 + 1 file changed, 1 insertion(+) diff --git a/projects.go b/projects.go index bdf013c0d..36f948509 100644 --- a/projects.go +++ b/projects.go @@ -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"`