Skip to content
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
72 changes: 72 additions & 0 deletions .asf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Repository settings applied by ASF Infra on every push to the default branch.
# Reference: https://github.com/apache/infrastructure-asfyaml
github:
enabled_merge_buttons:
squash: true
# The PR description becomes the body of the squashed commit.
squash_commit_message: PR_TITLE_AND_DESC
merge: false
rebase: false
pull_requests:
allow_auto_merge: true
del_branch_on_merge: true
# The ruleset names match the rulesets created before the transfer,
# so Infra updates those rulesets in place instead of adding new ones.
rulesets:
- name: master-no-deletions-or-force-pushes
target: branch
enforcement: active
conditions:
ref_name:
include:
- "~DEFAULT_BRANCH"
exclude: []
rules:
- type: deletion
- type: non_fast_forward
- name: master-pr-rules
target: branch
enforcement: active
conditions:
ref_name:
include:
- "~DEFAULT_BRANCH"
exclude: []
rules:
- type: required_linear_history
- type: pull_request
parameters:
required_approving_review_count: 1
dismiss_stale_reviews_on_push: false
require_code_owner_review: false
require_last_push_approval: false
required_review_thread_resolution: false
require_extra_approval_for_unattributed_changes: true
allowed_merge_methods:
- squash
- type: merge_queue
parameters:
merge_method: SQUASH
grouping_strategy: ALLGREEN
max_entries_to_build: 5
min_entries_to_merge: 1
max_entries_to_merge: 5
min_entries_to_merge_wait_minutes: 5
check_response_timeout_minutes: 60
# Required checks use the convenience syntax: it converts app_slug to the integer
# integration_id that GitHub expects, while the raw syntax passes integration_id as a string.
- name: master-required-checks
type: branch
branches:
includes:
- "~DEFAULT_BRANCH"
excludes: []
# master-no-deletions-or-force-pushes already carries these rules.
restrict_deletion: false
restrict_force_push: false
required_status_checks_strict: true
required_status_checks:
- name: CI gate
app_slug: github-actions
- name: Validate renovate.json
app_slug: github-actions
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ jobs:
export NULLAWAY_VERSION
cd "/tmp/$PROJECT"
eval "$BUILD"
# The master-pr-rules ruleset can require this one check instead of each job and matrix entry, so a
# The master-required-checks ruleset in .asf.yaml can require this one check instead of each job and matrix entry, so a
# project added to the compile-other-projects matrix gates merges without a ruleset change.
# always() runs the gate when a needed job fails or is cancelled; a skipped gate would pass.
# test-with-error-prone-snapshot is left out: a break in the Error Prone snapshot would block every PR.
Expand Down
2 changes: 1 addition & 1 deletion renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"dependencyDashboardApproval": true
},
{
"description": "A minor, patch, pin or digest update is marked for automerge. Renovate turns on GitHub auto-merge for the PR (platformAutomerge defaults to true), and GitHub adds the PR to the merge queue of master once the master-pr-rules ruleset is satisfied: the required status checks pass and the PR has the required approving review. A major update matches none of these types, so after dependency dashboard approval it still waits for a maintainer to merge it; only the GitHub-published actions in the last rule automerge their majors. rebaseWhen stays at its default, auto, which Renovate resolves to conflicted because master has a merge queue. An automerge PR is therefore rebased only when it conflicts. Before the queue merges a PR, it runs CI on master with that PR and the PRs queued ahead of it applied.",
"description": "A minor, patch, pin or digest update is marked for automerge. Renovate turns on GitHub auto-merge for the PR (platformAutomerge defaults to true), and GitHub adds the PR to the merge queue of master once the master rulesets in .asf.yaml are satisfied: the required status checks pass and the PR has the required approving review. A major update matches none of these types, so after dependency dashboard approval it still waits for a maintainer to merge it; only the GitHub-published actions in the last rule automerge their majors. rebaseWhen stays at its default, auto, which Renovate resolves to conflicted because master has a merge queue. An automerge PR is therefore rebased only when it conflicts. Before the queue merges a PR, it runs CI on master with that PR and the PRs queued ahead of it applied.",
"matchUpdateTypes": [
"minor",
"patch",
Expand Down
Loading