Spaces:
Sleeping
Sleeping
Jeremiah Lowin commited on
Update Marvin's claude code action version (#1415)
Browse files
.github/workflows/marvin.yml
CHANGED
|
@@ -44,7 +44,8 @@ jobs:
|
|
| 44 |
private_key: ${{ secrets.MARVIN_APP_PRIVATE_KEY }}
|
| 45 |
|
| 46 |
# /marvin slash command
|
| 47 |
-
|
|
|
|
| 48 |
if: |
|
| 49 |
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '/marvin')) ||
|
| 50 |
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '/marvin')) ||
|
|
@@ -52,7 +53,7 @@ jobs:
|
|
| 52 |
(github.event_name == 'issues' && (contains(github.event.issue.body, '/marvin') || contains(github.event.issue.title, '/marvin'))) ||
|
| 53 |
(github.event_name == 'discussion' && (contains(github.event.discussion.body, '/marvin') || contains(github.event.discussion.title, '/marvin'))) ||
|
| 54 |
(github.event_name == 'discussion_comment' && contains(github.event.comment.body, '/marvin'))
|
| 55 |
-
uses: anthropics/claude-code-action@
|
| 56 |
with:
|
| 57 |
github-token: ${{ steps.mtoken.outputs.token }}
|
| 58 |
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
@@ -61,7 +62,7 @@ jobs:
|
|
| 61 |
allowed_bots: "*"
|
| 62 |
|
| 63 |
# @Marvin Context Protocol mention
|
| 64 |
-
- name:
|
| 65 |
if: |
|
| 66 |
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@Marvin Context Protocol')) ||
|
| 67 |
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@Marvin Context Protocol')) ||
|
|
@@ -69,7 +70,7 @@ jobs:
|
|
| 69 |
(github.event_name == 'issues' && (contains(github.event.issue.body, '@Marvin Context Protocol') || contains(github.event.issue.title, '@Marvin Context Protocol'))) ||
|
| 70 |
(github.event_name == 'discussion' && (contains(github.event.discussion.body, '@Marvin Context Protocol') || contains(github.event.discussion.title, '@Marvin Context Protocol'))) ||
|
| 71 |
(github.event_name == 'discussion_comment' && contains(github.event.comment.body, '@Marvin Context Protocol'))
|
| 72 |
-
uses: anthropics/claude-code-action@
|
| 73 |
with:
|
| 74 |
github-token: ${{ steps.mtoken.outputs.token }}
|
| 75 |
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
@@ -77,11 +78,11 @@ jobs:
|
|
| 77 |
trigger_phrase: "@Marvin Context Protocol"
|
| 78 |
|
| 79 |
# Optional: assignment/label triggers
|
| 80 |
-
- name:
|
| 81 |
if: |
|
| 82 |
(github.event_name == 'issues' && github.event.action == 'assigned' && github.event.assignee.login == 'Marvin Context Protocol') ||
|
| 83 |
(github.event_name == 'issues' && github.event.action == 'labeled' && github.event.label.name == 'marvin')
|
| 84 |
-
uses: anthropics/claude-code-action@
|
| 85 |
with:
|
| 86 |
github-token: ${{ steps.mtoken.outputs.token }}
|
| 87 |
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
|
|
| 44 |
private_key: ${{ secrets.MARVIN_APP_PRIVATE_KEY }}
|
| 45 |
|
| 46 |
# /marvin slash command
|
| 47 |
+
|
| 48 |
+
- name: Marvin (/marvin)
|
| 49 |
if: |
|
| 50 |
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '/marvin')) ||
|
| 51 |
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '/marvin')) ||
|
|
|
|
| 53 |
(github.event_name == 'issues' && (contains(github.event.issue.body, '/marvin') || contains(github.event.issue.title, '/marvin'))) ||
|
| 54 |
(github.event_name == 'discussion' && (contains(github.event.discussion.body, '/marvin') || contains(github.event.discussion.title, '/marvin'))) ||
|
| 55 |
(github.event_name == 'discussion_comment' && contains(github.event.comment.body, '/marvin'))
|
| 56 |
+
uses: anthropics/claude-code-action@beta
|
| 57 |
with:
|
| 58 |
github-token: ${{ steps.mtoken.outputs.token }}
|
| 59 |
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
|
|
| 62 |
allowed_bots: "*"
|
| 63 |
|
| 64 |
# @Marvin Context Protocol mention
|
| 65 |
+
- name: Marvin (@Marvin Context Protocol)
|
| 66 |
if: |
|
| 67 |
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@Marvin Context Protocol')) ||
|
| 68 |
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@Marvin Context Protocol')) ||
|
|
|
|
| 70 |
(github.event_name == 'issues' && (contains(github.event.issue.body, '@Marvin Context Protocol') || contains(github.event.issue.title, '@Marvin Context Protocol'))) ||
|
| 71 |
(github.event_name == 'discussion' && (contains(github.event.discussion.body, '@Marvin Context Protocol') || contains(github.event.discussion.title, '@Marvin Context Protocol'))) ||
|
| 72 |
(github.event_name == 'discussion_comment' && contains(github.event.comment.body, '@Marvin Context Protocol'))
|
| 73 |
+
uses: anthropics/claude-code-action@beta
|
| 74 |
with:
|
| 75 |
github-token: ${{ steps.mtoken.outputs.token }}
|
| 76 |
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
|
|
| 78 |
trigger_phrase: "@Marvin Context Protocol"
|
| 79 |
|
| 80 |
# Optional: assignment/label triggers
|
| 81 |
+
- name: Marvin (assignee/label)
|
| 82 |
if: |
|
| 83 |
(github.event_name == 'issues' && github.event.action == 'assigned' && github.event.assignee.login == 'Marvin Context Protocol') ||
|
| 84 |
(github.event_name == 'issues' && github.event.action == 'labeled' && github.event.label.name == 'marvin')
|
| 85 |
+
uses: anthropics/claude-code-action@beta
|
| 86 |
with:
|
| 87 |
github-token: ${{ steps.mtoken.outputs.token }}
|
| 88 |
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
|