mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-21 13:04:18 +02:00
Change trigger criteria
This commit is contained in:
parent
e4bf2cfd75
commit
acf2ed4628
1 changed files with 8 additions and 12 deletions
20
.github/workflows/marvin-issue-triage.yml
vendored
20
.github/workflows/marvin-issue-triage.yml
vendored
|
|
@ -2,21 +2,17 @@ name: Martian Issue Triage
|
|||
|
||||
on:
|
||||
issues:
|
||||
types: [opened]
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
issue_number:
|
||||
description: "Issue to triage"
|
||||
required: true
|
||||
type: string
|
||||
types: [opened, labeled]
|
||||
|
||||
concurrency:
|
||||
group: triage-issue-${{ github.event.issue.number || inputs.issue_number }}
|
||||
group: triage-martian-${{ github.event.issue.number }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
marvin-issue-triage:
|
||||
if: github.actor == 'strawgate'
|
||||
martian-issue-triage:
|
||||
if: |
|
||||
(github.event.action == 'opened' && github.actor == 'strawgate') ||
|
||||
(github.event.action == 'labeled' && github.event.label.name == 'triage-martian')
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
permissions:
|
||||
|
|
@ -57,7 +53,7 @@ jobs:
|
|||
|
||||
# Lay of the land
|
||||
1. Call the generate_agents_md tool to get a high-level summary of the project you're working in
|
||||
2. Get the issue ${{ github.event.issue.number || inputs.issue_number }} in the GitHub repository: ${{ github.repository }}.
|
||||
2. Get the issue ${{ github.event.issue.number }} in the GitHub repository: ${{ github.repository }}.
|
||||
3. Use the issue and pull request search tools to scour the repository for related issues and pull requests
|
||||
3. Call the code-search, get_files, etc. tools to search the repository to identify the related classes, methods, tests, etc that are relevant to the issue.
|
||||
|
||||
|
|
@ -130,7 +126,7 @@ jobs:
|
|||
}
|
||||
EOF
|
||||
|
||||
- name: Run Marvin for Issue Triage
|
||||
- name: Run Martian for Issue Triage
|
||||
uses: anthropics/claude-code-action@v1
|
||||
with:
|
||||
github_token: ${{ steps.marvin-token.outputs.token }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue