-
Notifications
You must be signed in to change notification settings - Fork 172
Document what is required before merging a pull request #5065
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
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| { | ||
| "id": 17224362, | ||
| "name": "Merging into main (rules enforced for everybody)", | ||
| "target": "branch", | ||
| "source_type": "Repository", | ||
| "source": "teemtee/tmt", | ||
| "enforcement": "active", | ||
| "conditions": { | ||
| "ref_name": { | ||
| "exclude": [], | ||
| "include": [ | ||
| "~DEFAULT_BRANCH" | ||
| ] | ||
| } | ||
| }, | ||
| "rules": [ | ||
| { | ||
| "type": "non_fast_forward" | ||
| }, | ||
| { | ||
| "type": "required_linear_history" | ||
| }, | ||
| { | ||
| "type": "pull_request", | ||
| "parameters": { | ||
| "required_approving_review_count": 0, | ||
| "dismiss_stale_reviews_on_push": false, | ||
| "required_reviewers": [], | ||
| "require_code_owner_review": false, | ||
| "dismissal_restriction": { | ||
| "enabled": false, | ||
| "allowed_actors": [] | ||
| }, | ||
| "require_last_push_approval": false, | ||
| "required_review_thread_resolution": true, | ||
| "allowed_merge_methods": [ | ||
| "squash" | ||
| ] | ||
| } | ||
| }, | ||
| { | ||
| "type": "deletion" | ||
| } | ||
| ], | ||
| "bypass_actors": [] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| { | ||
| "id": 17224740, | ||
| "name": "Merging into main (release lead can override)", | ||
| "target": "branch", | ||
| "source_type": "Repository", | ||
| "source": "teemtee/tmt", | ||
| "enforcement": "active", | ||
| "conditions": { | ||
| "ref_name": { | ||
| "exclude": [], | ||
| "include": [ | ||
| "~DEFAULT_BRANCH" | ||
| ] | ||
| } | ||
| }, | ||
| "rules": [ | ||
| { | ||
| "type": "pull_request", | ||
| "parameters": { | ||
| "required_approving_review_count": 2, | ||
| "dismiss_stale_reviews_on_push": false, | ||
| "required_reviewers": [], | ||
| "require_code_owner_review": false, | ||
| "dismissal_restriction": { | ||
| "enabled": false, | ||
| "allowed_actors": [] | ||
| }, | ||
| "require_last_push_approval": false, | ||
| "required_review_thread_resolution": false, | ||
| "allowed_merge_methods": [ | ||
| "squash" | ||
| ] | ||
|
Comment on lines
+20
to
+24
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should just add the full set here. It would make bumping it more automatic. Each repo would have a different set, but maybe we can merge it with another source, maybe even something fmf-y? My concern here is that when we use an import, it would override it with the bogus value here.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I'm not sure I understand: There is no plan/need to re-import these. Once the settings are synced across the repositories (already now) this is just for reference and possible future repositories.
Yes, each repo has a completely different set of checks. I don't think it's worth automating in any way as we will use the import... let's say once per year when a need for a new repo pops up?
It's not possible to override existing rule sets: So it's always needed to drop the rule set if it already exists.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
What if a new security feature is introduced or we want to make any other changes. Also having the test names can be useful every 6 months when we need to bump the fedora-stable names and drop the older ones. |
||
| } | ||
| } | ||
| ], | ||
| "bypass_actors": [ | ||
| { | ||
| "actor_id": 17396698, | ||
| "actor_type": "Team", | ||
| "bypass_mode": "pull_request" | ||
| } | ||
| ] | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.