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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Select Topic Area
Question
Body
I am trying to add Status checks to the branch using URI https://github.com/api/v3/repos/org/repo/branches/branch_1/protection/required_status_checks/contexts with data
data = {
'contexts': ['Check']
}
But its failing with below error.
{"message":"Invalid request.\n\nFor 'links/3/schema', {"contexts"=>["Check"]} is not an array.","documentation_url":"https://docs.github.com/[email protected]/rest/reference/repos#add-status-check-contexts"}
Error code : 422
Beta Was this translation helpful? Give feedback.
All reactions