Update .gitea/workflows/agent.yml
This commit is contained in:
@@ -22,8 +22,8 @@ jobs:
|
|||||||
# Trusted author only, and only when a known agent is mentioned. This gate is the main
|
# Trusted author only, and only when a known agent is mentioned. This gate is the main
|
||||||
# defense against malicious-issue prompt injection — do not loosen it.
|
# defense against malicious-issue prompt injection — do not loosen it.
|
||||||
if: >
|
if: >
|
||||||
(github.event_name == 'issues' && github.event.issue.user.login == 'ffaerber') ||
|
(github.event.comment == null && github.event.issue.user.login == 'ffaerber') ||
|
||||||
(github.event_name == 'issue_comment' && github.event.comment.user.login == 'ffaerber' &&
|
(github.event.comment != null && github.event.comment.user.login == 'ffaerber' &&
|
||||||
!contains(github.event.comment.body, '🤖') &&
|
!contains(github.event.comment.body, '🤖') &&
|
||||||
(contains(github.event.comment.body, '@pm') ||
|
(contains(github.event.comment.body, '@pm') ||
|
||||||
contains(github.event.comment.body, '@junior') ||
|
contains(github.event.comment.body, '@junior') ||
|
||||||
|
|||||||
Reference in New Issue
Block a user