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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
2
Makefile
2
Makefile
@@ -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
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user