Skip to main content

Module validate

Module validate 

Source
Expand description

Input checks (GH-09, DF-07). A failed check is an Error::Status with status 400.

Structs§

ItemRef
An issue or pull request: owner/name#number.

Constants§

MAX_ASSIGNEE_CHANGES
MAX_BODY_BYTES
MAX_MARKDOWN_BYTES of server/write.ts.

Functions§

check_body
A review or comment body: at most 64 KB, and not blank when required.
check_key
owner/name#number, the GhItem::key.
check_login
A gh login: letters, digits and hyphens, plus _ for EMU logins, at most 39 characters.
check_logins
At most ten valid logins, de-duplicated in order.
check_number
check_path
A relative repository path: no leading slash, no backslash, no control characters, no empty, . or .. segments.
check_repo
owner/name.
check_review_body
The review body is required except for an approval.
check_section
check_sha
invalid
is_sha
A 40-character lowercase commit SHA.