@theholocron/cli 2.0.0-alpha.16 → 2.0.0-alpha.18

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 +26 -5
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -1120,6 +1120,16 @@ jobs:
1120
1120
  - uses: theholocron/.github/.github/actions/setup@main
1121
1121
  name: Setup
1122
1122
 
1123
+ - name: Configure git identity
1124
+ run: |
1125
+ GIT_NAME=$(gh api user --jq .name 2>/dev/null || echo "github-actions[bot]")
1126
+ GIT_EMAIL=$(gh api user --jq '"\\(.id)+\\(.login)@users.noreply.github.com"' 2>/dev/null || echo "41898282+github-actions[bot]@users.noreply.github.com")
1127
+ git config --global user.name "$GIT_NAME"
1128
+ git config --global user.email "$GIT_EMAIL"
1129
+ git config --global format.signoff true
1130
+ env:
1131
+ GH_TOKEN: \${{ secrets.SYNC_TOKEN || github.token }}
1132
+
1123
1133
  - run: npm install -g npm@11 sigstore
1124
1134
  name: Upgrade npm for OIDC support
1125
1135
  # sigstore is required by libnpmpublish/provenance.js at module parse
@@ -1435,13 +1445,19 @@ jobs:
1435
1445
  PRIMARY_REPO: \${{ inputs.primary-repo }}
1436
1446
 
1437
1447
  - name: Sync primary repo (PR)
1438
- run: >
1439
- node packages/cli/dist/cli.mjs sync-github
1440
- --repo "$PRIMARY_REPO"
1441
- --branch "$SYNC_BRANCH"
1442
- --pr
1448
+ run: |
1449
+ GIT_NAME=$(gh api user --jq .name 2>/dev/null || echo "github-actions[bot]")
1450
+ GIT_EMAIL=$(gh api user --jq '"\\(.id)+\\(.login)@users.noreply.github.com"' 2>/dev/null || echo "41898282+github-actions[bot]@users.noreply.github.com")
1451
+ node packages/cli/dist/cli.mjs sync-github \\
1452
+ --repo "$PRIMARY_REPO" \\
1453
+ --branch "$SYNC_BRANCH" \\
1454
+ --pr \\
1455
+ --message "chore: sync from theholocron/holocron
1456
+
1457
+ Signed-off-by: $GIT_NAME <$GIT_EMAIL>"
1443
1458
  env:
1444
1459
  GITHUB_TOKEN: \${{ secrets.SYNC_TOKEN }}
1460
+ GH_TOKEN: \${{ secrets.SYNC_TOKEN }}
1445
1461
  PRIMARY_REPO: \${{ inputs.primary-repo }}
1446
1462
  SYNC_BRANCH: \${{ inputs.sync-branch }}
1447
1463
 
@@ -3565,6 +3581,11 @@ function buildRulesetPayload(requiredChecks = []) {
3565
3581
  name: RULESET_NAME,
3566
3582
  target: "branch",
3567
3583
  enforcement: "active",
3584
+ bypass_actors: [{
3585
+ actor_id: 4,
3586
+ actor_type: "RepositoryRole",
3587
+ bypass_mode: "always"
3588
+ }],
3568
3589
  conditions: { ref_name: {
3569
3590
  include: ["~DEFAULT_BRANCH"],
3570
3591
  exclude: []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/cli",
3
- "version": "2.0.0-alpha.16",
3
+ "version": "2.0.0-alpha.18",
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",