Skip to content

Commit 85dc53f

Browse files
committed
fix: add issue retrieval instructions with event.json fallback
The agent had no guidance on how to fetch the triggering issue. Added a Retrieving the Issue section that instructs it to use the GitHub MCP get_issue tool first, then fall back to reading GITHUB_EVENT_PATH with cat/jq.
1 parent 0b58b76 commit 85dc53f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/flock-action.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,17 @@ produce a structured report.
5252
Only process issues that carry the `flock-action` label. If the issue does not
5353
have this label, skip it entirely.
5454

55+
## Retrieving the Issue
56+
57+
Fetch the triggering issue using the **github** MCP server's `get_issue` tool.
58+
Use the repository owner, repo name, and issue number from the github-context
59+
provided in the system prompt.
60+
61+
If the MCP call fails, fall back to reading the event payload directly:
62+
```bash
63+
cat $GITHUB_EVENT_PATH | jq '.issue'
64+
```
65+
5566
## Parsing the Issue
5667

5768
The issue body is a filled-in form with these sections:

0 commit comments

Comments
 (0)