@rightkit/ci 0.3.10 → 0.3.11
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/manifest.mjs +7 -0
- package/package.json +1 -1
package/manifest.mjs
CHANGED
|
@@ -2280,6 +2280,13 @@ export function checkJob(manifest, lane = "ci") {
|
|
|
2280
2280
|
" if: github.event_name == 'pull_request'",
|
|
2281
2281
|
" shell: bash",
|
|
2282
2282
|
` run: git update-ref "refs/remotes/origin/${manifest.defaultBranch ?? "main"}" "$(git rev-parse --verify 'HEAD^1^{commit}')"`,
|
|
2283
|
+
// A manual run checks out only the dispatched ref: fetch the repository's default branch, with enough history for a merge-base.
|
|
2284
|
+
" - name: Fetch the default branch for the gate's merge-base rules",
|
|
2285
|
+
" if: github.event_name == 'workflow_dispatch'",
|
|
2286
|
+
" shell: bash",
|
|
2287
|
+
" env:",
|
|
2288
|
+
" RIGHT_GIT_REPO_DEFAULT: ${{ github.event.repository.default_branch }}",
|
|
2289
|
+
` run: git fetch --no-tags --unshallow origin "+refs/heads/$RIGHT_GIT_REPO_DEFAULT:refs/remotes/origin/${manifest.defaultBranch ?? "main"}"`,
|
|
2283
2290
|
] : []),
|
|
2284
2291
|
` - uses: ${pins.setupNode}`,
|
|
2285
2292
|
" with:",
|
package/package.json
CHANGED