Skip to content

Commit 9fa8b67

Browse files
Fix release notes agent (#1061)
* Add instructions to create a full clone, not shallow one Co-Authored-By: Copilot <223556219+Copilot@users.noreply.github.com> * Refresh other aw output Co-Authored-By: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent c2a6835 commit 9fa8b67

10 files changed

+2227
-1586
lines changed

.github/aw/actions-lock.json

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,34 @@
11
{
22
"entries": {
3+
"actions/checkout@v6.0.2": {
4+
"repo": "actions/checkout",
5+
"version": "v6.0.2",
6+
"sha": "de0fac2e4500dabe0009e67214ff5f5447ce83dd"
7+
},
8+
"actions/download-artifact@v8.0.0": {
9+
"repo": "actions/download-artifact",
10+
"version": "v8.0.0",
11+
"sha": "70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3"
12+
},
313
"actions/github-script@v8": {
414
"repo": "actions/github-script",
515
"version": "v8",
616
"sha": "ed597411d8f924073f98dfc5c65a23a2325f34cd"
717
},
8-
"github/gh-aw-actions/setup@v0.64.2": {
9-
"repo": "github/gh-aw-actions/setup",
10-
"version": "v0.64.2",
11-
"sha": "f22886a9607f5c27e79742a8bfc5faa34737138b"
18+
"actions/upload-artifact@v7.0.0": {
19+
"repo": "actions/upload-artifact",
20+
"version": "v7.0.0",
21+
"sha": "bbbca2ddaa5d8feaa63e36b76fdaad77386f024f"
1222
},
13-
"github/gh-aw-actions/setup@v0.65.5": {
23+
"github/gh-aw-actions/setup@v0.67.4": {
1424
"repo": "github/gh-aw-actions/setup",
15-
"version": "v0.65.5",
16-
"sha": "15b2fa31e9a1b771c9773c162273924d8f5ea516"
25+
"version": "v0.67.4",
26+
"sha": "9d6ae06250fc0ec536a0e5f35de313b35bad7246"
27+
},
28+
"github/gh-aw/actions/setup@v0.52.1": {
29+
"repo": "github/gh-aw/actions/setup",
30+
"version": "v0.52.1",
31+
"sha": "a86e657586e4ac5f549a790628971ec02f6a4a8f"
1732
}
1833
}
1934
}

.github/workflows/handle-bug.lock.yml

Lines changed: 254 additions & 175 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/handle-documentation.lock.yml

Lines changed: 254 additions & 175 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/handle-enhancement.lock.yml

Lines changed: 254 additions & 175 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/handle-question.lock.yml

Lines changed: 254 additions & 175 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/issue-classification.lock.yml

Lines changed: 316 additions & 232 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/issue-triage.lock.yml

Lines changed: 322 additions & 244 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/release-changelog.lock.yml

Lines changed: 274 additions & 210 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/release-changelog.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,18 @@ Use the GitHub API to fetch the release corresponding to `${{ github.event.input
4646

4747
### Step 1: Identify the version range
4848

49-
1. The **new version** is the release tag: `${{ github.event.inputs.tag }}`
50-
2. Fetch the release metadata to determine if this is a **stable** or **prerelease** release.
51-
3. Determine the **previous version** to diff against:
49+
1. **Before any `git log`, `git show`, tag lookup, or commit-range query, first convert the workflow checkout into a full clone by running:**
50+
```bash
51+
git fetch --prune --tags --unshallow origin || git fetch --prune --tags origin
52+
```
53+
This is **mandatory**. The workflow checkout may be shallow, which can make tag ranges and commit counts incomplete or outright wrong. Do not trust local git history until this command succeeds.
54+
2. The **new version** is the release tag: `${{ github.event.inputs.tag }}`
55+
3. Fetch the release metadata to determine if this is a **stable** or **prerelease** release.
56+
4. Determine the **previous version** to diff against:
5257
- **For stable releases**: find the previous **stable** release (skip prereleases). Check `CHANGELOG.md` for the most recent version heading (`## [vX.Y.Z](...)`), or fall back to listing releases via the API. This means stable changelogs include ALL changes since the last stable release, even if some were already mentioned in prerelease notes.
5358
- **For prerelease releases**: find the most recent release of **any kind** (stable or prerelease) that precedes this one. This way prerelease notes only cover what's new since the last release.
54-
4. If no previous release exists at all, use the first commit in the repo as the starting point.
59+
5. If no previous release exists at all, use the first commit in the repo as the starting point.
60+
6. After identifying the range, verify it by listing the commits in `PREVIOUS_TAG..NEW_TAG`. If the local result still looks suspiciously small or inconsistent, do **not** proceed based on local git alone — use the GitHub tools as the source of truth for the commits and PRs in the release.
5561

5662
### Step 2: Gather changes
5763

.github/workflows/sdk-consistency-review.lock.yml

Lines changed: 267 additions & 189 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)