code-foundry 0.30.0 → 0.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/src/commands/release.mjs +9 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.30.1](https://github.com/0xPlayerOne/code-foundry/compare/v0.30.0...v0.30.1) (2026-07-29)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **release:** retry generated PR discovery ([dba7233](https://github.com/0xPlayerOne/code-foundry/commit/dba72337a04e73a2436d417b9e6f68d67bf54f83))
|
|
9
|
+
* **sync:** include Python formatter baseline ([c7ce208](https://github.com/0xPlayerOne/code-foundry/commit/c7ce2084dcc7a7a3372056b879f435276e31aaa0))
|
|
10
|
+
|
|
3
11
|
## [0.30.0](https://github.com/0xPlayerOne/code-foundry/compare/v0.29.0...v0.30.0) (2026-07-29)
|
|
4
12
|
|
|
5
13
|
|
package/package.json
CHANGED
package/src/commands/release.mjs
CHANGED
|
@@ -82,7 +82,13 @@ export function dispatchPostReleaseHook(root, options) {
|
|
|
82
82
|
export function validateReleasePullRequestDiffs(root) {
|
|
83
83
|
const repository = process.env.GITHUB_REPOSITORY
|
|
84
84
|
if (!repository) throw new Error('GITHUB_REPOSITORY is required for release PR validation.')
|
|
85
|
-
|
|
85
|
+
let prs = []
|
|
86
|
+
for (let attempt = 0; attempt < 5; attempt += 1) {
|
|
87
|
+
const result = ghJson(root, ['pr', 'list', '--repo', repository, '--state', 'open', '--base', 'main', '--json', 'number,title,headRefName'])
|
|
88
|
+
prs = Array.isArray(result) ? result : []
|
|
89
|
+
if (selectGeneratedReleasePrs(prs).length) break
|
|
90
|
+
if (attempt < 4) spawnSync('sleep', ['2'])
|
|
91
|
+
}
|
|
86
92
|
const generated = selectGeneratedReleasePrs(Array.isArray(prs) ? prs : [])
|
|
87
93
|
/** @type {Map<number, string[]>} */
|
|
88
94
|
const paths = new Map()
|
|
@@ -130,7 +136,8 @@ function diffNames(root, from, to) {
|
|
|
130
136
|
|
|
131
137
|
/** @param {string} root @param {string[]} args @returns {unknown} */
|
|
132
138
|
function ghJson(root, args) {
|
|
133
|
-
const
|
|
139
|
+
const token = process.env.RELEASE_PLEASE_TOKEN || process.env.GH_TOKEN || process.env.GITHUB_TOKEN
|
|
140
|
+
const result = spawnSync('gh', args, { cwd: resolve(root), encoding: 'utf8', env: { ...process.env, ...(token ? { GH_TOKEN: token } : {}) } })
|
|
134
141
|
if (result.status !== 0) return []
|
|
135
142
|
try { return JSON.parse(result.stdout) }
|
|
136
143
|
catch { return [] }
|