You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by pa...@apache.org on 2026/05/18 14:14:03 UTC
(lucenenet) 01/01: Configure merge buttons to attempt fix to .asf.yaml
This is an automated email from the ASF dual-hosted git repository.
paulirwin pushed a commit to branch paulirwin/asf-yaml-fix
in repository https://gitbox.apache.org/repos/asf/lucenenet.git
commit 588d16529e355d78c6caa6a11df0c1f56e8bc459
Author: Paul Irwin <pa...@gmail.com>
AuthorDate: Mon May 18 08:13:54 2026 -0600
Configure merge buttons to attempt fix to .asf.yaml
The .asf.yaml file is failing with an obscure error message:
> An error occurred while processing the github feature in .asf.yaml:
>
> Validation failed while creating ruleset 'Branch Protection': Invalid request.
>
> Invalid property /rules/3: data matches no possible input. See `documentation_url`.
It appears this error comes from the GitHub API, and basically means that one of the rule configurations is invalid.
The ASF YAML docs say that to use require linear history, the squash option must be enabled. I assumed it was by default (because we've been using it exclusively), but this is a shot in the dark to be explicit about it. This will also disable the merge and rebase types which we discourage use of in practice.
Additionally, I'm adding the `bypass_teams` that was added automatically by Infra's bot to our other repos, the only other significant difference I could detect.
If this doesn't work, we might need to try removing the `required_` rules and see if that works. Otherwise, I'll reach out to Infra for help.
---
.asf.yaml | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/.asf.yaml b/.asf.yaml
index 27196f345..29d7e777f 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -35,6 +35,14 @@ github:
# Enable discussions
discussions: true
+ enabled_merge_buttons:
+ squash: true
+ # default commit message when merging with a squash commit
+ # can either be: DEFAULT | PR_TITLE | PR_TITLE_AND_COMMIT_DETAILS | PR_TITLE_AND_DESC
+ squash_commit_message: PR_TITLE
+ merge: false
+ rebase: false
+
rulesets:
- name: "Branch Protection"
type: branch
@@ -44,6 +52,8 @@ github:
- "release/*"
- "docs/*"
excludes: []
+ bypass_teams:
+ - root
restrict_deletion: true
restrict_force_push: true
required_linear_history: true