@rightkit/ci 0.3.7 → 0.3.8

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/manifest.mjs +8 -0
  2. package/package.json +5 -6
package/manifest.mjs CHANGED
@@ -2272,6 +2272,14 @@ export function checkJob(manifest, lane = "ci") {
2272
2272
  // Depth 2: the gate's lint-waiver-added rule (G30) compares a commit already on main with its first parent (rightkit#1865).
2273
2273
  " fetch-depth: 2",
2274
2274
  " persist-credentials: false",
2275
+ // A pull request checkout holds the merge commit and its parents, and no branch ref. The gate's merge-base rules need
2276
+ // the default branch as a remote ref: the merge commit's first parent is the base the pull request merges into.
2277
+ ...(lane === "ci" ? [
2278
+ " - name: Name the pull request base for the gate's merge-base rules",
2279
+ " if: github.event_name == 'pull_request'",
2280
+ " shell: bash",
2281
+ ` run: git update-ref "refs/remotes/origin/${manifest.defaultBranch ?? "main"}" "$(git rev-parse --verify 'HEAD^1^{commit}')"`,
2282
+ ] : []),
2275
2283
  ` - uses: ${pins.setupNode}`,
2276
2284
  " with:",
2277
2285
  ` node-version: ${JSON.stringify(String(manifest.matrix.node[0]))}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rightkit/ci",
3
- "version": "0.3.7",
3
+ "version": "0.3.8",
4
4
  "description": "Public-repo-only GitHub Actions workflow layer: templates, visibility gate, sync/drift/adopt/uninstall for right-git.",
5
5
  "license": "MIT OR Apache-2.0",
6
6
  "type": "module",
@@ -25,9 +25,6 @@
25
25
  "!*.test.mjs"
26
26
  ],
27
27
  "sideEffects": false,
28
- "scripts": {
29
- "test": "node --test pack-smoke.test.mjs"
30
- },
31
28
  "publishConfig": {
32
29
  "registry": "https://registry.npmjs.org/",
33
30
  "access": "public"
@@ -37,5 +34,7 @@
37
34
  "url": "git+https://github.com/bogusyogi/rightkit.git",
38
35
  "directory": "packages/ci"
39
36
  },
40
- "packageManager": "pnpm@12.16.1"
41
- }
37
+ "scripts": {
38
+ "test": "node --test pack-smoke.test.mjs"
39
+ }
40
+ }