@catladder/cli 0.0.0-next-3675a1db → 0.0.0-next-ca8f99e2
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/apps/cli/src/apps/cli/commands/project/doctor/checkGithub.js +40 -0
- package/dist/apps/cli/src/apps/cli/commands/project/doctor/checkGithub.js.map +1 -1
- package/dist/apps/cli/src/apps/cli/commands/project/setup/index.js +12 -3
- package/dist/apps/cli/src/apps/cli/commands/project/setup/index.js.map +1 -1
- package/dist/apps/cli/src/apps/cli/commands/project/setup/setupGithub.d.ts +20 -0
- package/dist/apps/cli/src/apps/cli/commands/project/setup/setupGithub.js +92 -0
- package/dist/apps/cli/src/apps/cli/commands/project/setup/setupGithub.js.map +1 -0
- package/dist/apps/cli/src/utils/github.d.ts +2 -0
- package/dist/apps/cli/src/utils/github.js +24 -1
- package/dist/apps/cli/src/utils/github.js.map +1 -1
- package/dist/bundles/catenv/index.js +1 -0
- package/dist/bundles/cli/index.js +176 -4
- package/dist/bundles/skills/catladder-migrate-ci-backend/SKILL.md +9 -12
- package/dist/packages/pipeline/src/backends/github/index.d.ts +1 -0
- package/dist/packages/pipeline/src/backends/github/index.js +1 -0
- package/dist/packages/pipeline/src/backends/github/index.js.map +1 -1
- package/dist/skills/catladder-migrate-ci-backend/SKILL.md +9 -12
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/apps/cli/commands/project/doctor/checkGithub.ts +55 -0
- package/src/apps/cli/commands/project/setup/index.ts +17 -4
- package/src/apps/cli/commands/project/setup/setupGithub.ts +117 -0
- package/src/utils/github.ts +30 -0
|
@@ -258,18 +258,15 @@ now-wrong `gitRemote`, regenerate once more, and finish with
|
|
|
258
258
|
- **Set up merge gating — GitHub has none by default.** On GitLab,
|
|
259
259
|
"merge when pipeline succeeds" is built in; on a fresh GitHub repo a
|
|
260
260
|
PR is mergeable the moment it opens, checks still running, and the
|
|
261
|
-
auto-merge button does not even appear.
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
Consider leaving "enforce for administrators" off: this repo's CI is
|
|
271
|
-
generated, so if generation itself ever breaks, the admin bypass is
|
|
272
|
-
what lets the fix merge.
|
|
261
|
+
auto-merge button does not even appear. `yarn catladder project setup`
|
|
262
|
+
configures it: auto-merge + delete-merged-branches on the repo, and a
|
|
263
|
+
branch protection rule on the default branch requiring the generated
|
|
264
|
+
**`catladder ✅`** aggregate check (the one stable context — never
|
|
265
|
+
require individual job names, they change with every component
|
|
266
|
+
add/rename and a stale required name blocks its own PR forever).
|
|
267
|
+
`project doctor` verifies it. Two things stay human choices: "Do not
|
|
268
|
+
allow bypassing" (leave it off — generated CI means a generation bug
|
|
269
|
+
can only be fixed via the admin bypass) and required reviews.
|
|
273
270
|
- Tell the team where the pipeline lives now and how manual actions
|
|
274
271
|
work there (on GitHub, manual jobs are dispatch workflows in the
|
|
275
272
|
Actions sidebar — `🚀 catladder create release`, `▶️ catladder deploy`,
|