Change trigger criteria

This commit is contained in:
William Easton 2025-10-02 12:30:59 -05:00
commit acf2ed4628
No known key found for this signature in database

View file

@ -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 }}