mirror of
https://github.com/markwylde/claude-code-gitea-action.git
synced 2026-06-21 14:39:03 +08:00
Add 'opened' event action to assignee trigger check (#20)
This commit is contained in:
@@ -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 || "";
|
||||
|
||||
Reference in New Issue
Block a user