You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: let Copilot agent fetch release data via MCP tools
The setup step used gh CLI with GITHUB_TOKEN to find draft releases,
but contents:read permission cannot see drafts. Removed the shell-based
data fetching and moved it into the agent prompt instructions, which
uses GitHub MCP tools with sufficient permissions.
Also add workflow_dispatch trigger for manual runs, skip conclusion
check on manual dispatch, and update release.yml version example.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
echo "No previous release found. This is the first release."
84
-
echo "[]" > /tmp/release-data/commits.json
85
-
echo "[]" > /tmp/release-data/pull_requests.json
86
-
fi
87
-
88
-
echo "✓ Setup complete"
89
31
---
90
32
91
33
# Release Highlights Generator
92
34
93
-
Generate an engaging release highlights summary for **${{ github.repository }}** release `${RELEASE_TAG}`.
35
+
Generate an engaging release highlights summary for **${{ github.repository }}**.
94
36
95
-
## Data Available
37
+
## Workflow
96
38
97
-
All data is pre-fetched in `/tmp/release-data/`:
98
-
-`current_release.json` - Draft release metadata (tag, name, existing body with auto-generated notes)
99
-
-`commits.json` - Commits since `${PREV_RELEASE_TAG}` (sha, message, author)
100
-
-`pull_requests.json` - Merged PRs between releases (may be empty if changes were direct commits)
39
+
### 1. Gather Release Data
101
40
102
-
## Workflow
41
+
Use the GitHub MCP tools to fetch release information:
103
42
104
-
### 1. Load Data
43
+
1.**Find the latest draft release** — List releases for `${{ github.repository }}` and find the first draft release. If no draft release exists, call `safeoutputs/noop(message="No draft release found")` and stop.
3.**Get commits between releases** — Use the GitHub MCP tools to compare the previous release tag with the draft release tag to get the list of commits.
0 commit comments