Merge pull request #3 from ChrisMcKee/patch-1

Add missing triggers to validator
This commit is contained in:
Gokul
2025-04-04 09:48:03 +05:30
committed by GitHub

View File

@@ -3,22 +3,37 @@ use serde_yaml::Value;
pub fn validate_triggers(on: &Value, result: &mut ValidationResult) {
let valid_events = vec![
"push",
"pull_request",
"workflow_dispatch",
"schedule",
"repository_dispatch",
"issue_comment",
"branch_protection_rule",
"check_run",
"check_suite",
"create",
"delete",
"deployment",
"deployment_status",
"discussion",
"discussion_comment",
"fork",
"gollum",
"issue_comment", // Covers comments on PRs that are not part of a diff
"issues",
"label",
"merge_group",
"milestone",
"page_build",
"project",
"project_card",
"public",
"pull_request",
"pull_request_review",
"pull_request_review_comment",
"pull_request_target",
"push",
"registry_package",
"release",
"repository_dispatch",
"schedule",
"status",
"watch",
"workflow_call",
"workflow_dispatch",
"workflow_run",
];