Repository navigation
feat(rulesets): require a merge queue on agent-plugins #932
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
deploy/repository-rulesets/require-merge-queue-on-agent-plugins.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| # agent-plugins' "Require merge queue" rule on the default branch | ||
| # (devantler-tech/agent-plugins#704). merge_queue is a repo-only rule type; org | ||
| # rulesets cannot carry it. | ||
| # | ||
| # The queue runs the required checks on the exact result each PR would land as, | ||
| # so a PR opened before a new gate reached main still meets that gate before it | ||
| # merges. It replaces agent-plugins' own recheck-open-prs workflow, which only | ||
| # re-ran open PRs after main moved. agent-plugins' CI must run on `merge_group` | ||
| # before this rule is active, or queued PRs would wait for a check that never | ||
| # starts. | ||
| # | ||
| # The queue settings are copied from require-merge-queue-on-platform.yaml, | ||
| # including the OrganizationAdmin bypass. The 120-minute response window absorbs | ||
| # hosted-runner queueing (platform#3097). | ||
| # | ||
| # Net-new and managed: no external-name, so Crossplane creates it on first | ||
| # reconcile. LateInitialize writes the created id back as the external-name, so a | ||
| # provider restart cannot create a second copy. No Delete: removing this file | ||
| # orphans the ruleset instead of deleting a live merge gate. | ||
| apiVersion: repo.github.m.upbound.io/v1alpha1 | ||
| kind: RepositoryRuleset | ||
| metadata: | ||
| name: agent-plugins-require-merge-queue | ||
| spec: | ||
| managementPolicies: | ||
| - Observe | ||
| - Create | ||
| - Update | ||
| - LateInitialize | ||
| forProvider: | ||
| repository: agent-plugins | ||
| name: Require merge queue | ||
| target: branch | ||
| enforcement: active | ||
| bypassActors: | ||
| - actorType: OrganizationAdmin | ||
| bypassMode: always | ||
| conditions: | ||
| - refName: | ||
| - include: ["~DEFAULT_BRANCH"] | ||
| exclude: [] | ||
| rules: | ||
| - mergeQueue: | ||
| - checkResponseTimeoutMinutes: 120 | ||
| groupingStrategy: ALLGREEN | ||
| maxEntriesToBuild: 2 | ||
| maxEntriesToMerge: 1 | ||
| mergeMethod: SQUASH | ||
| minEntriesToMerge: 1 | ||
| minEntriesToMergeWaitMinutes: 5 | ||
| providerConfigRef: | ||
| kind: ProviderConfig | ||
| name: default | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.