Top-level API#

gh_issue_validator.validate(*, checks, error_label='validation error', post_comment=True)[source]#

Validate a GitHub issue and apply labels/comments.

Reads GITHUB_TOKEN, GITHUB_REPOSITORY, and GITHUB_ISSUE_NUMBER from the environment. Exits with return code 1 if validation fails.

Parameters:
Return type:

None