1
0
mirror of https://github.com/siderolabs/kres.git synced 2026-02-05 09:45:35 +01:00

chore: set default for Repository.ConformMaximumOfOneCommit to false

This patch changes the default value of
`common.Repository.ConformMaximumOfOneCommit` from `false` to `true`.

Signed-off-by: Laura Brehm <laurabrehm@hey.com>
This commit is contained in:
Laura Brehm
2025-11-13 13:03:50 +01:00
parent 911d166ce5
commit e1d6dac313
4 changed files with 9 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2025-08-05T07:50:25Z by kres 95bf7d7-dirty.
# Generated on 2025-11-13T12:17:44Z by kres 1ad287b.
policies:
- type: commit
@@ -12,7 +12,7 @@ policies:
gitHubOrganization: siderolabs
spellcheck:
locale: US
maximumOfOneCommit: true
maximumOfOneCommit: false
header:
length: 89
imperative: true

View File

@@ -2,7 +2,7 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2025-11-07T08:50:34Z by kres 4ba9b0c-dirty.
# Generated on 2025-11-13T12:17:44Z by kres 1ad287b.
ARG TOOLCHAIN=scratch

View File

@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2025-11-07T08:50:34Z by kres 4ba9b0c-dirty.
# Generated on 2025-11-13T12:17:44Z by kres 1ad287b.
# common variables

View File

@@ -85,7 +85,7 @@ func NewRepository(meta *meta.Options) *Repository {
},
ConformLicenseCheck: true,
ConformGPGSignatureCheck: true,
ConformMaximumOfOneCommit: true,
ConformMaximumOfOneCommit: false,
Licenses: []LicenseConfig{
{
@@ -212,10 +212,13 @@ func (r *Repository) enableBranchProtection(client *github.Client) error {
"conform/commit/header-last-character",
"conform/commit/header-length",
"conform/commit/imperative-mood",
"conform/commit/number-of-commits",
"conform/commit/spellcheck",
)
if r.ConformMaximumOfOneCommit {
enforceContexts = append(enforceContexts, "conform/commit/number-of-commits")
}
if r.ConformLicenseCheck {
enforceContexts = append(enforceContexts,
"conform/license/file-header",