@tablation/crew 0.65.0 → 0.66.0
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.js +7 -5
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1449,6 +1449,7 @@ var HOOK_NAMES = [
|
|
|
1449
1449
|
"ports",
|
|
1450
1450
|
"isolate",
|
|
1451
1451
|
"handoff",
|
|
1452
|
+
"ci_status",
|
|
1452
1453
|
"version",
|
|
1453
1454
|
"bump",
|
|
1454
1455
|
"pr",
|
|
@@ -2792,7 +2793,8 @@ var HOOK_PURPOSE = [
|
|
|
2792
2793
|
["ports", "this worktree's port assignments; prints KEY=value overrides to export"],
|
|
2793
2794
|
["handoff", "leave the operator able to open what you built; put its output in your progress comment"],
|
|
2794
2795
|
["test", "run the suite"],
|
|
2795
|
-
["build", "build it"]
|
|
2796
|
+
["build", "build it"],
|
|
2797
|
+
["ci_status", "after you push and before you hand off: exit 0 means CI is green for your branch; on failure fix and push again, and say in your progress comment if it is still pending"]
|
|
2796
2798
|
];
|
|
2797
2799
|
function hookTable(repo) {
|
|
2798
2800
|
const declared = HOOK_PURPOSE.filter(([name]) => repo.hooks[name]);
|
|
@@ -13281,11 +13283,11 @@ function detectRecipes(f) {
|
|
|
13281
13283
|
{
|
|
13282
13284
|
id: "github-actions-ci-status",
|
|
13283
13285
|
title: "Check CI status before hand-off",
|
|
13284
|
-
description: "Ask GitHub whether the latest run on the branch passed before a ticket is handed to QA
|
|
13286
|
+
description: "Ask GitHub whether the latest run on the branch passed before a ticket is handed to QA (`hooks.ci_status`).",
|
|
13285
13287
|
evidence,
|
|
13286
|
-
|
|
13287
|
-
|
|
13288
|
-
writable:
|
|
13288
|
+
// `gh` prints the conclusion and exits 0 either way, so the test is on the text.
|
|
13289
|
+
hooks: { ci_status: `test "$(gh run list --branch "$CREW_BRANCH" --limit 1 --json conclusion -q '.[0].conclusion')" = success` },
|
|
13290
|
+
writable: true,
|
|
13289
13291
|
defaultOn: false
|
|
13290
13292
|
}
|
|
13291
13293
|
];
|
package/package.json
CHANGED