forked from frequenz-floss/frequenz-repo-config-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a ruleset to configure the merge queue
Rulesets can now be used to configure merge queues, so we can finally drop branch protection rules completely. Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
- Loading branch information
Showing
4 changed files
with
59 additions
and
47 deletions.
There are no files selected for viewing
This file contains 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 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 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 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,46 @@ | ||
{ | ||
"name": "Queue PRs for v0.x.x", | ||
"target": "branch", | ||
"source_type": "Repository", | ||
"source": "frequenz-floss/frequenz-repo-config-python", | ||
"enforcement": "active", | ||
"conditions": { | ||
"ref_name": { | ||
"exclude": [], | ||
"include": [ | ||
"refs/heads/v0.x.x" | ||
] | ||
} | ||
}, | ||
"rules": [ | ||
{ | ||
"type": "merge_queue", | ||
"parameters": { | ||
"merge_method": "Merge commit", | ||
"max_entries_to_build": 5, | ||
"min_entries_to_merge": 3, | ||
"max_entries_to_merge": 5, | ||
"min_entries_to_merge_wait_minutes": 1, | ||
"grouping_strategy_all_green": true, | ||
"check_response_timeout_minutes": 60 | ||
} | ||
} | ||
], | ||
"bypass_actors": [ | ||
{ | ||
"actor_id": 2, | ||
"actor_type": "RepositoryRole", | ||
"bypass_mode": "pull_request" | ||
}, | ||
{ | ||
"actor_id": 5, | ||
"actor_type": "RepositoryRole", | ||
"bypass_mode": "always" | ||
}, | ||
{ | ||
"actor_id": 1, | ||
"actor_type": "OrganizationAdmin", | ||
"bypass_mode": "always" | ||
} | ||
] | ||
} |