@theholocron/cli 2.0.0-alpha.36 → 2.0.0-alpha.38
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/dist/cli.mjs +15 -5
- 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).
|
|
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
|
|
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 (
|
|
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
|
|
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
|
|
@@ -2236,7 +2246,7 @@ async function runSyncGithub(input) {
|
|
|
2236
2246
|
method: "POST",
|
|
2237
2247
|
headers,
|
|
2238
2248
|
body: JSON.stringify({
|
|
2239
|
-
title: message,
|
|
2249
|
+
title: message.split("\n")[0],
|
|
2240
2250
|
head: branch,
|
|
2241
2251
|
base: "main",
|
|
2242
2252
|
body: "Auto-generated by `holocron sync-github`. Review and merge to apply template updates."
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/cli",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.38",
|
|
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",
|