code-foundry 0.20.0 → 0.20.2

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.
@@ -378,7 +378,7 @@ if [ -f "$template_root/.github/template.yml" ]; then
378
378
  source_runtime_repository="$(awk -F': ' '/^runtime_repository:/ {print $2; exit}' "$template_root/.github/template.yml")"
379
379
  fi
380
380
  [ -n "$source_runtime_repository" ] || source_runtime_repository="0xPlayerOne/code-foundry"
381
- for file in .github/workflows/ci.yml .github/workflows/test.yml .github/workflows/security.yml .github/workflows/codeql.yml .github/workflows/draft-pr.yml .github/workflows/release-pr.yml; do
381
+ for file in .github/workflows/ci.yml .github/workflows/test.yml .github/workflows/security.yml .github/workflows/codeql.yml .github/workflows/draft-pr.yml .github/workflows/release-pr.yml .github/workflows/release.yml; do
382
382
  [ -f "$file" ] || continue
383
383
  if grep -qF "$source_runtime_repository" "$file" && [ "$source_runtime_repository" != "$runtime_repository" ]; then
384
384
  changed=$((changed + 1))
@@ -13,8 +13,8 @@ permissions:
13
13
  jobs:
14
14
  ci:
15
15
  name: CI
16
- uses: 0xPlayerOne/code-foundry/.github/workflows/reusable-ci.yml@v0.14.0
16
+ uses: 0xPlayerOne/code-foundry/.github/workflows/reusable-ci.yml@v0.20.0
17
17
  with:
18
18
  runtime-repository: 0xPlayerOne/code-foundry
19
- runtime-ref: v0.14.0
19
+ runtime-ref: v0.20.0
20
20
  secrets: inherit
@@ -18,8 +18,8 @@ permissions:
18
18
  jobs:
19
19
  codeql:
20
20
  name: CodeQL
21
- uses: 0xPlayerOne/code-foundry/.github/workflows/reusable-codeql.yml@v0.14.0
21
+ uses: 0xPlayerOne/code-foundry/.github/workflows/reusable-codeql.yml@v0.20.0
22
22
  with:
23
23
  runtime-repository: 0xPlayerOne/code-foundry
24
- runtime-ref: v0.14.0
24
+ runtime-ref: v0.20.0
25
25
  secrets: inherit
@@ -18,5 +18,5 @@ permissions:
18
18
  jobs:
19
19
  draft-pr:
20
20
  name: Draft PR
21
- uses: 0xPlayerOne/code-foundry/.github/workflows/reusable-draft-pr.yml@v0.19.0
21
+ uses: 0xPlayerOne/code-foundry/.github/workflows/reusable-draft-pr.yml@v0.20.0
22
22
  secrets: inherit
@@ -11,5 +11,5 @@ permissions:
11
11
  jobs:
12
12
  release-pr:
13
13
  name: Release PR
14
- uses: 0xPlayerOne/code-foundry/.github/workflows/reusable-release-pr.yml@v0.19.0
14
+ uses: 0xPlayerOne/code-foundry/.github/workflows/reusable-release-pr.yml@v0.20.0
15
15
  secrets: inherit
@@ -14,5 +14,5 @@ permissions:
14
14
  jobs:
15
15
  release:
16
16
  name: Release
17
- uses: 0xPlayerOne/code-foundry/.github/workflows/reusable-release.yml@v0.16.0
17
+ uses: 0xPlayerOne/code-foundry/.github/workflows/reusable-release.yml@v0.20.0
18
18
  secrets: inherit
@@ -12,7 +12,7 @@ on:
12
12
  description: Code Foundry runtime tag or ref.
13
13
  required: false
14
14
  type: string
15
- default: v0.14.0
15
+ default: v0.20.0
16
16
 
17
17
  permissions:
18
18
  contents: read
@@ -12,7 +12,7 @@ on:
12
12
  description: Code Foundry runtime tag or ref.
13
13
  required: false
14
14
  type: string
15
- default: v0.14.0
15
+ default: v0.20.0
16
16
 
17
17
  permissions:
18
18
  actions: read
@@ -30,10 +30,17 @@ jobs:
30
30
  --head staging \
31
31
  --state open \
32
32
  --json number | jq 'length')
33
+ COMPARE_URL="repos/${GITHUB_REPOSITORY}/compare/main...staging"
34
+ TOTAL_COMMITS=$(gh api "$COMPARE_URL?per_page=1" --jq '.total_commits // 0')
33
35
  echo "existing=$EXISTING" >> "$GITHUB_OUTPUT"
36
+ echo "commits=$TOTAL_COMMITS" >> "$GITHUB_OUTPUT"
37
+
38
+ - name: No changes
39
+ if: steps.check-pr.outputs.existing == '0' && steps.check-pr.outputs.commits == '0'
40
+ run: echo 'staging is already aligned with main; no promotion PR is needed.'
34
41
 
35
42
  - name: Create
36
- if: steps.check-pr.outputs.existing == '0'
43
+ if: steps.check-pr.outputs.existing == '0' && steps.check-pr.outputs.commits != '0'
37
44
  run: |
38
45
  DATE=$(date +%Y-%m-%d)
39
46
  BODY_FILE="$RUNNER_TEMP/release-pr.md"
@@ -12,7 +12,7 @@ on:
12
12
  description: Code Foundry runtime tag or ref.
13
13
  required: false
14
14
  type: string
15
- default: v0.14.0
15
+ default: v0.20.0
16
16
 
17
17
  permissions:
18
18
  contents: read
@@ -12,7 +12,7 @@ on:
12
12
  description: Code Foundry runtime tag or ref.
13
13
  required: false
14
14
  type: string
15
- default: v0.14.0
15
+ default: v0.20.0
16
16
 
17
17
  permissions:
18
18
  contents: read
@@ -13,8 +13,8 @@ permissions:
13
13
  jobs:
14
14
  security:
15
15
  name: Security
16
- uses: 0xPlayerOne/code-foundry/.github/workflows/reusable-security.yml@v0.14.0
16
+ uses: 0xPlayerOne/code-foundry/.github/workflows/reusable-security.yml@v0.20.0
17
17
  with:
18
18
  runtime-repository: 0xPlayerOne/code-foundry
19
- runtime-ref: v0.14.0
19
+ runtime-ref: v0.20.0
20
20
  secrets: inherit
@@ -13,8 +13,8 @@ permissions:
13
13
  jobs:
14
14
  test:
15
15
  name: Test
16
- uses: 0xPlayerOne/code-foundry/.github/workflows/reusable-test.yml@v0.14.0
16
+ uses: 0xPlayerOne/code-foundry/.github/workflows/reusable-test.yml@v0.20.0
17
17
  with:
18
18
  runtime-repository: 0xPlayerOne/code-foundry
19
- runtime-ref: v0.14.0
19
+ runtime-ref: v0.20.0
20
20
  secrets: inherit
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.20.2](https://github.com/0xPlayerOne/code-foundry/compare/v0.20.1...v0.20.2) (2026-07-28)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **release-pr:** skip empty promotions ([7c3b21b](https://github.com/0xPlayerOne/code-foundry/commit/7c3b21b19e03ac8319b1217d4e3d0d8a6f0e2317))
9
+
10
+ ## [0.20.1](https://github.com/0xPlayerOne/code-foundry/compare/v0.20.0...v0.20.1) (2026-07-28)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **workflows:** align callers with current runtime ([11629d3](https://github.com/0xPlayerOne/code-foundry/commit/11629d32b4c41a8bfd1ff8fdaa5638c43236e889))
16
+ * **workflows:** correct release caller indentation ([2688ca9](https://github.com/0xPlayerOne/code-foundry/commit/2688ca924552c9537151e76f486f6485bd4fb0d9))
17
+
3
18
  ## [0.20.0](https://github.com/0xPlayerOne/code-foundry/compare/v0.19.0...v0.20.0) (2026-07-28)
4
19
 
5
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "code-foundry",
3
- "version": "0.20.0",
3
+ "version": "0.20.2",
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",