Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .github/workflows/scout.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 21 additions & 2 deletions .github/workflows/scout.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ on:
topic:
description: 'Research topic or question'
required: true
history:
description: "Git history to fetch: shallow (default) or full"
required: false
default: "shallow"
type: choice
options:
- shallow
- full
permissions:
contents: read
issues: read
Expand Down Expand Up @@ -58,10 +66,21 @@ When invoked with the `/scout` command in an issue or pull request comment, OR m
- **Repository**: ${{ github.repository }}
- **Triggering Content**: "${{ steps.sanitized.outputs.text }}"
- **Research Topic** (if workflow_dispatch): "${{ github.event.inputs.topic }}"
- **Git History Mode** (if workflow_dispatch): "${{ github.event.inputs.history }}"
- **Issue/PR Number**: ${{ github.event.issue.number || github.event.pull_request.number }}
- **Triggered by**: @${{ github.actor }}

**Note**: If a research topic is provided above (from workflow_dispatch), use that as your primary research focus. Otherwise, analyze the triggering content to determine the research topic.
**Note**:
- **Topic precedence**: Use `workflow_dispatch` topic when present. Otherwise, derive topic from triggering content (for example `/scout ...`).
- **History precedence**: Use `workflow_dispatch` history when present. Otherwise, default to `shallow` unless the triggering content explicitly requests full history (for example `history=full`).

**Git History Handling**: If `Git History Mode` is `full`, fetch full history before doing any git-history analysis:

```bash
git fetch --unshallow --tags || git fetch --tags
```

If `Git History Mode` is `shallow` (or empty), keep default shallow history unless triggering content explicitly requests `history=full`, and avoid conclusions that require complete historical data.

**Deep Research Agent**: This workflow imports the GitHub deep research agent repository, which provides additional tools and capabilities from `.github/agents/` and `.github/workflows/` for enhanced research functionality.

Expand Down Expand Up @@ -186,4 +205,4 @@ Focus on the most relevant and actionable information. Avoid overwhelming detail
- **Clarity**: Write for the intended audience (developers working on this repo)
- **Attribution**: Always cite your sources with proper links

Remember: Your goal is to provide valuable, actionable intelligence that helps resolve the issue or improve the pull request. Make every search count and synthesize information effectively.
Remember: Your goal is to provide valuable, actionable intelligence that helps resolve the issue or improve the pull request. Make every search count and synthesize information effectively.
Loading