code-foundry 0.31.5 → 0.31.6

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.
@@ -36,17 +36,24 @@ jobs:
36
36
  --head staging \
37
37
  --state open \
38
38
  --json number | node -e 'let d=""; process.stdin.on("data", c => d += c).on("end", () => console.log(JSON.parse(d || "[]").length))')
39
+ MAIN_TREE=$(gh api "repos/${GITHUB_REPOSITORY}/commits/main" --jq '.commit.tree.sha')
40
+ STAGING_TREE=$(gh api "repos/${GITHUB_REPOSITORY}/commits/staging" --jq '.commit.tree.sha')
41
+ TREE_EQUAL=false
42
+ if [ "$MAIN_TREE" = "$STAGING_TREE" ]; then
43
+ TREE_EQUAL=true
44
+ fi
39
45
  COMPARE_URL="repos/${GITHUB_REPOSITORY}/compare/main...staging"
40
46
  TOTAL_COMMITS=$(gh api "$COMPARE_URL?per_page=1" --jq '.total_commits // 0')
41
47
  echo "existing=$EXISTING" >> "$GITHUB_OUTPUT"
42
48
  echo "commits=$TOTAL_COMMITS" >> "$GITHUB_OUTPUT"
49
+ echo "tree_equal=$TREE_EQUAL" >> "$GITHUB_OUTPUT"
43
50
 
44
51
  - name: No changes
45
- if: steps.check-pr.outputs.existing == '0' && steps.check-pr.outputs.commits == '0'
52
+ if: steps.check-pr.outputs.existing == '0' && (steps.check-pr.outputs.commits == '0' || steps.check-pr.outputs.tree_equal == 'true')
46
53
  run: echo 'staging is already aligned with main; no promotion PR is needed.'
47
54
 
48
55
  - name: Create
49
- if: steps.check-pr.outputs.existing == '0' && steps.check-pr.outputs.commits != '0'
56
+ if: steps.check-pr.outputs.existing == '0' && steps.check-pr.outputs.commits != '0' && steps.check-pr.outputs.tree_equal != 'true'
50
57
  run: |
51
58
  DATE=$(date +%Y-%m-%d)
52
59
  BODY_FILE="$RUNNER_TEMP/release-pr.md"
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.31.6](https://github.com/0xPlayerOne/code-foundry/compare/v0.31.5...v0.31.6) (2026-07-30)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **release:** skip identical promotion trees ([d8242b9](https://github.com/0xPlayerOne/code-foundry/commit/d8242b9897c9210a2534712fedb12d2258573686))
9
+
3
10
  ## [0.31.5](https://github.com/0xPlayerOne/code-foundry/compare/v0.31.4...v0.31.5) (2026-07-30)
4
11
 
5
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "code-foundry",
3
- "version": "0.31.5",
3
+ "version": "0.31.6",
4
4
  "description": "A fast, language-aware repository factory for agent-ready workflows, testing, security, and release automation.",
5
5
  "type": "module",
6
6
  "license": "AGPL-3.0-or-later",