Skip to content

Commit

Permalink
Merge pull request #290 from Interhyp/289-new-property-exclude-from-m…
Browse files Browse the repository at this point in the history
…erge-commits

feat(#289): add new configuration property 'excludeMergeCommits' to r…
  • Loading branch information
KRaffael authored May 28, 2024
2 parents 4573c2c + d02c3fc commit 86bfedd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
14 changes: 9 additions & 5 deletions api/generated_apimodel.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions api/openapi-v3-spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -2929,6 +2929,10 @@
"type": "integer",
"description": "Set the required successful builds counter."
},
"excludeMergeCommits": {
"type": "boolean",
"description": "Exclude merge commits from commit checks."
},
"requireConditions": {
"type": "object",
"description": "Configuration of conditional builds as map of structs (key name e.g. some-key) of target references.",
Expand Down
1 change: 1 addition & 0 deletions internal/service/repositories/repositories.go
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ func patchConfiguration(patch *openapi.RepositoryConfigurationDto, original *ope
CommitMessageType: patchStringPtr(patch.CommitMessageType, original.CommitMessageType),
RequireIssue: patchPtr[bool](patch.RequireIssue, original.RequireIssue),
RequireSuccessfulBuilds: patchPtr[int32](patch.RequireSuccessfulBuilds, original.RequireSuccessfulBuilds),
ExcludeMergeCommits: patchPtr[bool](patch.ExcludeMergeCommits, original.ExcludeMergeCommits),
RequireConditions: patchConditions(patch.RequireConditions, original.RequireConditions),
Webhooks: patchWebhooks(patch.Webhooks, original.Webhooks),
Approvers: patchApprovers(patch.Approvers, original.Approvers),
Expand Down

0 comments on commit 86bfedd

Please sign in to comment.