Update marvin errors (#1414)

This commit is contained in:
Jeremiah Lowin 2025-08-08 17:04:45 -04:00 committed by GitHub
commit aa41c56e17
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,19 +17,21 @@ permissions:
jobs:
marvin:
if: >
contains(github.event?.comment?.body || '', '/marvin') ||
contains(
(github.event?.comment?.body ||
github.event?.issue?.title || github.event?.issue?.body ||
github.event?.pull_request?.title || github.event?.pull_request?.body ||
github.event?.discussion?.title || github.event?.discussion?.body || '' ),
'@Marvin Context Protocol'
) ||
(github.event_name == 'issues' && (
(github.event.action == 'assigned' && github.event.assignee?.login == 'Marvin Context Protocol') ||
(github.event.action == 'labeled' && github.event.label?.name == 'marvin')
))
if: |
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '/marvin')) ||
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '/marvin')) ||
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '/marvin')) ||
(github.event_name == 'issues' && (contains(github.event.issue.body, '/marvin') || contains(github.event.issue.title, '/marvin'))) ||
(github.event_name == 'discussion' && (contains(github.event.discussion.body, '/marvin') || contains(github.event.discussion.title, '/marvin'))) ||
(github.event_name == 'discussion_comment' && contains(github.event.comment.body, '/marvin')) ||
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@Marvin Context Protocol')) ||
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@Marvin Context Protocol')) ||
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@Marvin Context Protocol')) ||
(github.event_name == 'issues' && (contains(github.event.issue.body, '@Marvin Context Protocol') || contains(github.event.issue.title, '@Marvin Context Protocol'))) ||
(github.event_name == 'discussion' && (contains(github.event.discussion.body, '@Marvin Context Protocol') || contains(github.event.discussion.title, '@Marvin Context Protocol'))) ||
(github.event_name == 'discussion_comment' && contains(github.event.comment.body, '@Marvin Context Protocol')) ||
(github.event_name == 'issues' && github.event.action == 'assigned' && github.event.assignee.login == 'Marvin Context Protocol') ||
(github.event_name == 'issues' && github.event.action == 'labeled' && github.event.label.name == 'marvin')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@ -43,7 +45,13 @@ jobs:
# /marvin slash command
- name: Claude Code (/marvin)
if: contains(github.event?.comment?.body || '', '/marvin')
if: |
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '/marvin')) ||
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '/marvin')) ||
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '/marvin')) ||
(github.event_name == 'issues' && (contains(github.event.issue.body, '/marvin') || contains(github.event.issue.title, '/marvin'))) ||
(github.event_name == 'discussion' && (contains(github.event.discussion.body, '/marvin') || contains(github.event.discussion.title, '/marvin'))) ||
(github.event_name == 'discussion_comment' && contains(github.event.comment.body, '/marvin'))
uses: anthropics/claude-code-action@v1
with:
github-token: ${{ steps.mtoken.outputs.token }}
@ -54,13 +62,13 @@ jobs:
# @Marvin Context Protocol mention
- name: Claude Code (@Marvin Context Protocol)
if: contains(
(github.event?.comment?.body ||
github.event?.issue?.title || github.event?.issue?.body ||
github.event?.pull_request?.title || github.event?.pull_request?.body ||
github.event?.discussion?.title || github.event?.discussion?.body || '' ),
'@Marvin Context Protocol'
)
if: |
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@Marvin Context Protocol')) ||
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@Marvin Context Protocol')) ||
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@Marvin Context Protocol')) ||
(github.event_name == 'issues' && (contains(github.event.issue.body, '@Marvin Context Protocol') || contains(github.event.issue.title, '@Marvin Context Protocol'))) ||
(github.event_name == 'discussion' && (contains(github.event.discussion.body, '@Marvin Context Protocol') || contains(github.event.discussion.title, '@Marvin Context Protocol'))) ||
(github.event_name == 'discussion_comment' && contains(github.event.comment.body, '@Marvin Context Protocol'))
uses: anthropics/claude-code-action@v1
with:
github-token: ${{ steps.mtoken.outputs.token }}
@ -70,7 +78,9 @@ jobs:
# Optional: assignment/label triggers
- name: Claude Code (assignee/label)
if: github.event_name == 'issues' && (github.event.action == 'assigned' || github.event.action == 'labeled')
if: |
(github.event_name == 'issues' && github.event.action == 'assigned' && github.event.assignee.login == 'Marvin Context Protocol') ||
(github.event_name == 'issues' && github.event.action == 'labeled' && github.event.label.name == 'marvin')
uses: anthropics/claude-code-action@v1
with:
github-token: ${{ steps.mtoken.outputs.token }}