Skip to content
This repository was archived by the owner on Jul 15, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/semantic-commit-message-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Check valid types
uses: gsactions/commit-message-checker@v1
with:
pattern: '^(((fix|feat|docs|style|perf|refactor|test|build|chore|ci|revert)\([\w_-]+\)))!{0,1}: .*'
pattern: '^(((fix|feat|docs|style|perf|refactor|test|build|chore|ci|revert)\([\w_-]+\)))?!?: .*'
error: 'Your commit message should match one of these types (build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test) in header.'
excludeDescription: 'true'
excludeTitle: 'true'
Expand Down
2 changes: 2 additions & 0 deletions api/generated_model_repository_configuration_dto.go

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

2 changes: 2 additions & 0 deletions api/generated_model_repository_configuration_patch_dto.go

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

8 changes: 8 additions & 0 deletions api/openapi-v3-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2116,6 +2116,10 @@ components:
- ORGANIZATION
- ENTERPRISE
example: NOT_ACCESSIBLE
customProperties:
description: Custom properties for this repository
type: object
additionalProperties: true
RepositoryConfigurationPatchDto:
description: Attributes to configure the repository. If a configuration exists there are also some configured defaults for the repository.
type: object
Expand Down Expand Up @@ -2220,6 +2224,10 @@ components:
example: NOT_ACCESSIBLE
pullRequests:
$ref: '#/components/schemas/PullRequests'
customProperties:
description: Custom properties for this repository
type: object
additionalProperties: true
MergeStrategy:
type: object
properties:
Expand Down
14 changes: 14 additions & 0 deletions internal/service/repositories/repositories.go
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,20 @@ func patchConfiguration(patch *openapi.RepositoryConfigurationPatchDto, original
ActionsAccess: patchStringPtr(patch.ActionsAccess, original.ActionsAccess),
PullRequests: patchPullRequests(patch.PullRequests, original.PullRequests),
RequireSignature: patchRequireSignature(patch.RequireSignature, original.RequireSignature),
CustomProperties: patchCustomProperties(patch.CustomProperties, original.CustomProperties),
}
} else {
return original
}
}

func patchCustomProperties(patch map[string]interface{}, original map[string]interface{}) map[string]interface{} {
if patch != nil {
if len(patch) == 0 {
// remove
return nil
} else {
return patch
}
} else {
return original
Expand Down