@theholocron/cli 2.0.0-alpha.36 → 2.0.0-alpha.37

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.
Files changed (2) hide show
  1. package/dist/cli.mjs +14 -4
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -1573,12 +1573,13 @@ on: # yamllint disable-line rule:truthy
1573
1573
  secondary-repos:
1574
1574
  description: >
1575
1575
  Space-separated list of secondary repos (reusable workflows + thin
1576
- callers only, no composite actions). Pushed directly to main.
1576
+ callers only, no composite actions). Changes are delivered via pull
1577
+ request, same as the primary repo.
1577
1578
  type: string
1578
1579
  required: false
1579
1580
  default: ""
1580
1581
  sync-branch:
1581
- description: Branch name used for the primary-repo PR
1582
+ description: Branch name used for the primary and secondary repo PRs
1582
1583
  type: string
1583
1584
  required: false
1584
1585
  default: chore/sync-templates
@@ -1630,15 +1631,24 @@ jobs:
1630
1631
  PRIMARY_REPO: \${{ inputs.primary-repo }}
1631
1632
  SYNC_BRANCH: \${{ inputs.sync-branch }}
1632
1633
 
1633
- - name: Sync secondary repos (direct push)
1634
+ - name: Sync secondary repos (PR)
1634
1635
  if: \${{ inputs.secondary-repos != '' }}
1635
1636
  run: |
1637
+ GIT_NAME=$(gh api user --jq .name 2>/dev/null || echo "github-actions[bot]")
1638
+ GIT_EMAIL=$(gh api user --jq '"\\(.id)+\\(.login)@users.noreply.github.com"' 2>/dev/null || echo "41898282+github-actions[bot]@users.noreply.github.com")
1639
+ COMMIT_MSG="chore: sync from theholocron/holocron"$'\\n\\n'"Signed-off-by: $GIT_NAME <$GIT_EMAIL>"
1636
1640
  for repo in $SECONDARY_REPOS; do
1637
- node packages/cli/dist/cli.mjs sync-github --repo "$repo"
1641
+ node packages/cli/dist/cli.mjs sync-github \\
1642
+ --repo "$repo" \\
1643
+ --branch "$SYNC_BRANCH" \\
1644
+ --pr \\
1645
+ --message "$COMMIT_MSG"
1638
1646
  done
1639
1647
  env:
1640
1648
  GITHUB_TOKEN: \${{ secrets.SYNC_TOKEN }}
1649
+ GH_TOKEN: \${{ secrets.SYNC_TOKEN }}
1641
1650
  SECONDARY_REPOS: \${{ inputs.secondary-repos }}
1651
+ SYNC_BRANCH: \${{ inputs.sync-branch }}
1642
1652
  `,
1643
1653
  typecheck: `\
1644
1654
  name: Typecheck
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/cli",
3
- "version": "2.0.0-alpha.36",
3
+ "version": "2.0.0-alpha.37",
4
4
  "description": "The Holocron CLI — a pluggable, capability-based orchestrator for spinning up and operating software projects.",
5
5
  "homepage": "https://github.com/theholocron/holocron/tree/main/packages/cli#readme",
6
6
  "bugs": "https://github.com/theholocron/holocron/issues",