support require up-to-date branches option#2362
Conversation
ff813d0 to
070e5e8
Compare
Dry-run check results |
0dfe7a9 to
9be08cb
Compare
| }) | ||
| .collect(), | ||
| strict_required_status_checks_policy: STRICT_REQUIRED_STATUS_CHECKS_POLICY_DEFAULT, | ||
| strict_required_status_checks_policy: branch_protection.require_up_to_date_branches, |
There was a problem hiding this comment.
I named this differently from the github api because imo this name is better
6d0bd87 to
cd1e9a6
Compare
cd1e9a6 to
52f5442
Compare
|
Branch protections mentioned in the dry run:
|
This comment has been minimized.
This comment has been minimized.
e9d21d7 to
7faf175
Compare
7faf175 to
9ca8874
Compare
| pub allowed_merge_teams: Vec<String>, | ||
| pub merge_bots: Vec<MergeBot>, | ||
| pub allowed_merge_apps: Vec<MergeBot>, | ||
| #[serde(default, skip_serializing_if = "is_false")] |
There was a problem hiding this comment.
not needed anymore, we can always send this field to triagebot.
|
If you are changing the data structures, please make sure that the changes are not going to break serde deserialization (adding a field is fine; removing or renaming a field isn't). If you must do a breaking change to the format, make sure to coordinate it with all the users of the |
[EDIT] : I confirmed my previous comment here was inaccurate, because I was working with a wrong assumption. I think I need a coffee :P |























This setting was set manually from the UI. With this PR we add in
teamthe ability to set this field via toml.For the docs, check the field
requiresStrictStatusChecksin: https://docs.github.com/en/graphql/reference/objects#branchprotectionrulerequire_up_to_date_branchesto v1 api #2364 and update team data to support require branch up to date triagebot#2359Why is the dry run not empty?
This PR disables this field for repositories that don't have checks. As you can see from the settings page, this field does nothing in this case:
