-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix release notes agent #1061
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix release notes agent #1061
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,19 +1,34 @@ | ||
| { | ||
| "entries": { | ||
| "actions/checkout@v6.0.2": { | ||
| "repo": "actions/checkout", | ||
| "version": "v6.0.2", | ||
| "sha": "de0fac2e4500dabe0009e67214ff5f5447ce83dd" | ||
| }, | ||
| "actions/download-artifact@v8.0.0": { | ||
| "repo": "actions/download-artifact", | ||
| "version": "v8.0.0", | ||
| "sha": "70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3" | ||
| }, | ||
| "actions/github-script@v8": { | ||
| "repo": "actions/github-script", | ||
| "version": "v8", | ||
| "sha": "ed597411d8f924073f98dfc5c65a23a2325f34cd" | ||
| }, | ||
| "github/gh-aw-actions/setup@v0.64.2": { | ||
| "repo": "github/gh-aw-actions/setup", | ||
| "version": "v0.64.2", | ||
| "sha": "f22886a9607f5c27e79742a8bfc5faa34737138b" | ||
| "actions/upload-artifact@v7.0.0": { | ||
| "repo": "actions/upload-artifact", | ||
| "version": "v7.0.0", | ||
| "sha": "bbbca2ddaa5d8feaa63e36b76fdaad77386f024f" | ||
| }, | ||
| "github/gh-aw-actions/setup@v0.65.5": { | ||
| "github/gh-aw-actions/setup@v0.67.4": { | ||
| "repo": "github/gh-aw-actions/setup", | ||
| "version": "v0.65.5", | ||
| "sha": "15b2fa31e9a1b771c9773c162273924d8f5ea516" | ||
| "version": "v0.67.4", | ||
| "sha": "9d6ae06250fc0ec536a0e5f35de313b35bad7246" | ||
| }, | ||
| "github/gh-aw/actions/setup@v0.52.1": { | ||
| "repo": "github/gh-aw/actions/setup", | ||
| "version": "v0.52.1", | ||
| "sha": "a86e657586e4ac5f549a790628971ec02f6a4a8f" | ||
| } | ||
| } | ||
| } | ||
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -46,12 +46,18 @@ Use the GitHub API to fetch the release corresponding to `${{ github.event.input | |||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| ### Step 1: Identify the version range | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| 1. The **new version** is the release tag: `${{ github.event.inputs.tag }}` | ||||||||||||||||||||||||||||
| 2. Fetch the release metadata to determine if this is a **stable** or **prerelease** release. | ||||||||||||||||||||||||||||
| 3. Determine the **previous version** to diff against: | ||||||||||||||||||||||||||||
| 1. **Before any `git log`, `git show`, tag lookup, or commit-range query, first convert the workflow checkout into a full clone by running:** | ||||||||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||||||||
| git fetch --prune --tags --unshallow origin || git fetch --prune --tags origin | ||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||
| 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. | ||||||||||||||||||||||||||||
|
Comment on lines
+51
to
+53
|
||||||||||||||||||||||||||||
| git fetch --prune --tags --unshallow origin || git fetch --prune --tags origin | |
| ``` | |
| 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. | |
| if [ -f .git/shallow ]; then | |
| git fetch --prune --tags --unshallow origin | |
| else | |
| git fetch --prune --tags origin | |
| fi | |
| if [ -f .git/shallow ]; then | |
| echo "Repository is still shallow after fetch; refusing to continue." >&2 | |
| exit 1 | |
| fi |
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 and the repository is no longer shallow.
Large diffs are not rendered by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actions/download-artifactis locked here atv8.0.0(sha70fc10c…), but the generated workflow lockfiles referenceactions/download-artifactv8.0.1(sha3e5f45b…). This mismatch can cause the workflow lock verification/compilation process to fail or drift. Update the entry to match the version/sha actually used (and/or add an entry forv8.0.1).