You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixessigmavirus24#1112
Since ~Q1 2022, branch_protection has an additional "checks" field which deprecates "contexts":
"contexts": list[str]
"checks": list[TypedDict("checks", context=str, app_id=int | None)]
The GitHub API returns both and then errors if both are present on update.
So, when making unrelated changes, check whether both are present and if so remove the "contexts" field, on the assumption that "checks" contains all the same data plus possibly app_id fields that we should not overwrite with nil.
Does this look OK? Happy to add polish, tests etc. if it's the right approach.
0 commit comments