Add 'opened' event action to assignee trigger check (#20)

This commit is contained in:
wmTJc9IK0Q
2026-06-11 14:12:14 -05:00
committed by GitHub
parent b744372179
commit a07444bb83

View File

@@ -27,7 +27,7 @@ export function checkContainsTrigger(context: ParsedGitHubContext): boolean {
}
// Check for assignee trigger
if (isIssuesEvent(context) && context.eventAction === "assigned") {
if (isIssuesEvent(context) && (context.eventAction === "assigned" || context.eventAction === "opened")) {
// Remove @ symbol from assignee_trigger if present
let triggerUser = assigneeTrigger?.replace(/^@/, "") || "";
const assigneeUsername = context.payload.issue.assignee?.login || "";