Skip to content

Commit a07444b

Browse files
authored
Add 'opened' event action to assignee trigger check (#20)
1 parent b744372 commit a07444b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/github/validation/trigger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function checkContainsTrigger(context: ParsedGitHubContext): boolean {
2727
}
2828

2929
// Check for assignee trigger
30-
if (isIssuesEvent(context) && context.eventAction === "assigned") {
30+
if (isIssuesEvent(context) && (context.eventAction === "assigned" || context.eventAction === "opened")) {
3131
// Remove @ symbol from assignee_trigger if present
3232
let triggerUser = assigneeTrigger?.replace(/^@/, "") || "";
3333
const assigneeUsername = context.payload.issue.assignee?.login || "";

0 commit comments

Comments
 (0)