diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d125f9..c4f8e25 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 29.11.2024, Version 3.11.1 + +- add type GitLab for deployment pipeline [#48](https://github.com/iLert/ilert-go/pull/48) + ## 07.11.2024, Version 3.11.0 - add new resource deployment pipeline [#47](https://github.com/iLert/ilert-go/pull/47) diff --git a/deployment_pipeline.go b/deployment_pipeline.go index 25a5d44..6995fa6 100644 --- a/deployment_pipeline.go +++ b/deployment_pipeline.go @@ -36,8 +36,8 @@ type DeploymentPipelineOutput struct { // DeploymentPipelineParams defines settings for a deployment pipeline type DeploymentPipelineOutputParams struct { - BranchFilters []string `json:"branchFilters,omitempty"` // used for GitHub - EventFilters []string `json:"eventFilters,omitempty"` // used for GitHub + BranchFilters []string `json:"branchFilters,omitempty"` // used for GitHub and GitLab + EventFilters []string `json:"eventFilters,omitempty"` // used for GitHub and GitLab } // DeploymentPipelineGitHubParams definition @@ -46,19 +46,28 @@ type DeploymentPipelineGitHubParams struct { EventFilters []string `json:"eventFilters,omitempty"` } +// DeploymentPipelineGitLabParams definition +type DeploymentPipelineGitLabParams struct { + BranchFilters []string `json:"branchFilters,omitempty"` + EventFilters []string `json:"eventFilters,omitempty"` +} + // IntegrationType defines integration type var DeploymentPipelineIntegrationType = struct { Api string GitHub string + GitLab string }{ Api: "API", GitHub: "GITHUB", + GitLab: "GITLAB", } // IntegrationTypeAll defines integration type list var DeploymentPipelineIntegrationTypeAll = []string{ DeploymentPipelineIntegrationType.Api, DeploymentPipelineIntegrationType.GitHub, + DeploymentPipelineIntegrationType.GitLab, } // GitHubEventFilterType defines github event filter type @@ -79,6 +88,24 @@ var GitHubEventFilterTypeAll = []string{ GitHubEventFilterType.Release, } +// GitLabEventFilterType defines gitlab event filter type +var GitLabEventFilterType = struct { + PushHook string + MergeRequestHook string + ReleaseHook string +}{ + PushHook: "Push Hook", + MergeRequestHook: "Merge Request Hook", + ReleaseHook: "Release Hook", +} + +// GitLabEventFilterTypeAll defines gitlab event filter type list +var GitLabEventFilterTypeAll = []string{ + GitLabEventFilterType.PushHook, + GitLabEventFilterType.MergeRequestHook, + GitLabEventFilterType.ReleaseHook, +} + // CreateDeploymentPipelineInput represents the input of a CreateDeploymentPipeline operation. type CreateDeploymentPipelineInput struct { _ struct{} diff --git a/version.go b/version.go index adc009b..4696869 100644 --- a/version.go +++ b/version.go @@ -1,4 +1,4 @@ package ilert // Version package version -const Version = "v3.11.0" +const Version = "v3.11.1"