Refusal
One reason a push or a commit may not land.
Shape
- codeRefusalCodePERMISSION_REQUIREDBRANCH_PROTECTEDAGENT_REFFOREIGN_AUTHORPRIVILEGED_PATHBRANCH_NOT_FOUNDSTART_BRANCH_NOT_FOUNDFILE_NOT_FOUNDREPOSITORY_EMPTYMR_NOT_OPENNOT_CONFLICTEDHEAD_MOVEDBRANCH_EXISTSFILE_CHANGEDFILE_EXISTSPATH_CONFLICTUNSUPPORTED_ENTRYNOTHING_TO_COMMITUNRESOLVEDNOT_IN_CONFLICTUNSUPPORTED_CONFLICTPUSH_RULE_VIOLATIONWhat kind of refusal this is. Closed: a client branches on it. The wire spelling is the
SCREAMING_SNAKEdomain code that leads an error's message, so a refusal returned as data and the same refusal returned as an error read the same. - messagestringWhat is wrong, in a sentence a person can act on.
- fieldstring or nulloptionalThe part of the request the refusal is about:
message,branch, oractions[i]for the i-th file change. - rulestring or nulloptionalThe push rule that refused, by its setting's name (
require_issue_reference), whencodeisPUSH_RULE_VIOLATION.
Example
Synthesized example{
"code": "PERMISSION_REQUIRED",
"message": "Draw the region map from operation density",
"field": "field-0f63",
"rule": "rule-2a53"
}
Graph
Contains
No named schema inside.
Used by
Sent by 0 operations
No operation takes it as a request body.
Returned by 0 operations
No operation returns it directly.