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
- Use quiet polling loop instead of verbose gh run watch
- Compare against last published release, not previous tag
- Prioritize commits over PRs for change detection
- Stop agent immediately after calling save_highlights
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: .github/workflows/release-highlights.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,13 +50,13 @@ Generate an engaging release highlights summary for **${{ github.repository }}**
50
50
51
51
Use the GitHub MCP tools to fetch release information for `${{ github.repository }}`:
52
52
53
-
1.**Get the list of releases** — List releases and find the tag `${{ inputs.version }}`.
53
+
1.**Find the previous published release** — List releases for the repository. Find the most recent release that is **not a draft** and is **published** (i.e., has a `published_at` date). This is the baseline to compare against. Note its tag name.
54
54
55
-
2.**Find the previous published release** — From the releases list, find the most recent non-draft, published release before `${{ inputs.version }}`. Note its tag name.
55
+
2.**Get all commits between releases** — Use `list_commits` or `git log <prev_tag>..${{ inputs.version }} --oneline` via shell to get all commits between the previous published release tag and `${{ inputs.version }}`.
56
56
57
-
3.**Get commits between releases** — Compare the previous release tag with `${{ inputs.version }}` to get the list of commits.
57
+
3.**Optionally get merged PRs** — Search for merged pull requests if needed for additional context, but rely primarily on commits since not all changes go through PRs. Use the default branch (`master`), not `main`.
58
58
59
-
4.**Get merged PRs** — Search for merged pull requests in the repository between the two releases.
59
+
**IMPORTANT**: Compare against the last **published** release (e.g., v0.12.152), NOT the immediately previous tag. Many tags may be CI/infrastructure-only.
60
60
61
61
### 2. Categorize & Prioritize
62
62
@@ -112,7 +112,7 @@ Dependency updates and internal improvements to keep things running smoothly.
112
112
113
113
### 5. Save Highlights
114
114
115
-
**CRITICAL**: You MUST call the `save_highlights` tool to save the generated highlights.
115
+
**CRITICAL**: You MUST call the `save_highlights` tool to save the generated highlights. After calling it successfully, **STOP immediately**. Do not investigate the workflow internals or try to verify how the tool works.
0 commit comments