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:
checks (
list[ValidationCheck])error_label (
str, default:'validation error')post_comment (
bool, default:True)
- Return type: