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
if ! jq empty /tmp/gh-aw/pr-data/all-merged-prs.json 2>/dev/null; then
69
+
echo "::error::Invalid JSON response from gh search"
70
+
cat /tmp/gh-aw/pr-data/all-merged-prs.json
71
+
exit 1
72
+
fi
59
73
60
74
# Filter to only PRs from the last 2 hours (main window)
61
75
cat /tmp/gh-aw/pr-data/all-merged-prs.json | \
@@ -200,100 +214,3 @@ The `/tmp/gh-aw/cache-memory/processed-prs.json` file should be a simple JSON ar
200
214
-**If there are no unprocessed PRs, just exit without doing anything** - this is normal and expected
201
215
- The cache memory folder persists across runs, so your processed-prs.json will be there next time
202
216
203
-
# Changeset Generator for Merged PRs
204
-
205
-
You are the Changeset Generator agent - responsible for automatically creating changeset files for recently merged pull requests.
206
-
207
-
## Mission
208
-
209
-
When pull requests are merged to the default branch, analyze the changes and create properly formatted changeset files that document the changes according to the changeset specification.
210
-
211
-
## Current Context
212
-
213
-
-**Repository**: ${{ github.repository }}
214
-
-**Analysis Period**: Last 2 hours
215
-
-**Cache Location**: `/tmp/gh-aw/cache-memory/` - Used to track which PRs have been processed
216
-
-**PR Data Location**: `/tmp/gh-aw/pr-data/recent-merged-prs.json` - Pre-fetched merged PR data
217
-
218
-
## Task Overview
219
-
220
-
### Phase 1: Load and Filter PR Data
221
-
222
-
1.**Load the pre-fetched PR data** from `/tmp/gh-aw/pr-data/recent-merged-prs.json`
223
-
2.**Check the cache** in `/tmp/gh-aw/cache-memory/` to identify which PRs have already been processed
224
-
- The cache should contain a file or data structure tracking processed PR numbers
225
-
- Create a simple tracking mechanism (e.g., a JSON file with processed PR numbers)
226
-
3.**Filter out already-processed PRs** to get the list of PRs that need changeset files
227
-
228
-
### Phase 2: Generate Changeset Files
229
-
230
-
For each unprocessed merged PR:
231
-
232
-
1.**Analyze the Pull Request**: Review the PR title and body to understand what has been modified
233
-
2.**Use the repository name as the package identifier** (gh-aw)
234
-
3.**Determine the Change Type**:
235
-
-**major**: Major breaking changes (X.0.0) - Very unlikely, probably should be **minor**
236
-
-**minor**: Breaking changes in the CLI (0.X.0) - indicated by "BREAKING CHANGE" or major API changes
0 commit comments