Skip to content

Commit

Permalink
Merge pull request #22 from product-os/kyle/workflow-dispatch
Browse files Browse the repository at this point in the history
Enable support for workflow dispatch events
  • Loading branch information
flowzone-app[bot] authored Dec 30, 2024
2 parents 2994754 + e5f10ad commit 31c1f63
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/handlers/deployment-protection-rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,14 @@ export async function handleDeploymentProtectionRule(
return;
}

if (!['pull_request', 'pull_request_target', 'push'].includes(event)) {
if (
![
'pull_request',
'pull_request_target',
'push',
'workflow_dispatch',
].includes(event)
) {
context.log.info(
'Ignoring unsupported deployment protection rule event: %s',
event,
Expand Down

0 comments on commit 31c1f63

Please sign in to comment.