mirror of
https://github.com/bahdotsh/wrkflw.git
synced 2026-05-18 05:05:35 +02:00
Merge pull request #3 from ChrisMcKee/patch-1
Add missing triggers to validator
This commit is contained in:
@@ -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",
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user