code-foundry 0.37.4 → 0.37.5

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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.37.5](https://github.com/0xPlayerOne/code-foundry/compare/v0.37.4...v0.37.5) (2026-08-23)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **sync:** omit Cargo Dependabot outside Rust repos ([#398](https://github.com/0xPlayerOne/code-foundry/issues/398)) ([395c4f3](https://github.com/0xPlayerOne/code-foundry/commit/395c4f34887bbb3e9f67378325b70c21d467adf0))
9
+
3
10
  ## [0.37.4](https://github.com/0xPlayerOne/code-foundry/compare/v0.37.3...v0.37.4) (2026-08-23)
4
11
 
5
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "code-foundry",
3
- "version": "0.37.4",
3
+ "version": "0.37.5",
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",
@@ -146,7 +146,7 @@ export function syncRepository(options) {
146
146
  content = Buffer.from(renderWorkflow(content.toString('utf8'), config, runtimeRepository, runtimeRef, rustCodeql))
147
147
  }
148
148
  if (file === '.github/dependabot.yml') {
149
- content = Buffer.from(renderDependabot(content.toString('utf8'), config))
149
+ content = Buffer.from(renderDependabot(content.toString('utf8'), config, languages))
150
150
  }
151
151
  if (['AGENTS.md', '.github/CONTRIBUTING.md', '.github/SECURITY.md'].includes(file)) {
152
152
  content = Buffer.from(renderContributionDocs(content.toString('utf8'), file, config))
@@ -393,14 +393,23 @@ function renderWorkflow(content, config, repository, ref, rustCodeql) {
393
393
 
394
394
  /**
395
395
  * Dependabot updates land on the repository's integration branch. Direct
396
- * repositories have no staging branch, so every update targets main.
396
+ * repositories have no staging branch, so every update targets main. Cargo
397
+ * updates are emitted only when Rust is part of the configured language set.
397
398
  * @param {string} content
398
399
  * @param {Record<string,string>} config
400
+ * @param {string} languages
399
401
  * @returns {string}
400
402
  */
401
- function renderDependabot(content, config) {
402
- if (isStagingRelease(config.git_workflow)) return content
403
- return content.replaceAll('target-branch: staging', 'target-branch: main')
403
+ function renderDependabot(content, config, languages) {
404
+ let rendered = content
405
+ if (!includesValue(languages, 'rust')) {
406
+ rendered = rendered
407
+ .split(/(?=^ - package-ecosystem: )/m)
408
+ .filter((block) => !block.startsWith(' - package-ecosystem: cargo\n'))
409
+ .join('')
410
+ }
411
+ if (isStagingRelease(config.git_workflow)) return rendered
412
+ return rendered.replaceAll('target-branch: staging', 'target-branch: main')
404
413
  }
405
414
 
406
415
  /**