willfire 0.1.13 → 0.1.14
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/parseArgs.js +2 -1
- package/dist/cli.js +4 -2
- package/dist/verify.js +2 -1
- package/package.json +1 -1
package/dist/cli/parseArgs.js
CHANGED
|
@@ -27,8 +27,9 @@ export function parseArgs(argv) {
|
|
|
27
27
|
// execution the caller thought they asked for.
|
|
28
28
|
const execute = [];
|
|
29
29
|
for (let i = 0; i < argv.length; i++) {
|
|
30
|
-
if (argv[i] !== "--execute")
|
|
30
|
+
if (argv[i] !== "--execute") {
|
|
31
31
|
continue;
|
|
32
|
+
}
|
|
32
33
|
const spec = argv[i + 1];
|
|
33
34
|
const grant = spec == null ? null : parseGrant(spec);
|
|
34
35
|
if (grant == null) {
|
package/dist/cli.js
CHANGED
|
@@ -25,8 +25,9 @@ if (isMain) {
|
|
|
25
25
|
}
|
|
26
26
|
else {
|
|
27
27
|
for (const e of entries) {
|
|
28
|
-
if (isWorkflowEntry(e))
|
|
28
|
+
if (isWorkflowEntry(e)) {
|
|
29
29
|
console.log(`# ${e.workflow} :: ${e.status} (${e.reason})`);
|
|
30
|
+
}
|
|
30
31
|
else {
|
|
31
32
|
const name = e.checkName ?? `${e.job} (name unresolved)`;
|
|
32
33
|
console.log(`${e.workflow} :: ${name} :: ${e.status}`);
|
|
@@ -35,7 +36,8 @@ if (isMain) {
|
|
|
35
36
|
}
|
|
36
37
|
// Last, and on the skip path too, so a red gate's first question — which
|
|
37
38
|
// commits was this read from? — is answered wherever the reader lands.
|
|
38
|
-
for (const s of sources)
|
|
39
|
+
for (const s of sources) {
|
|
39
40
|
console.log(`# read ${s.owner}/${s.repo}@${s.ref} -> ${s.sha}`);
|
|
41
|
+
}
|
|
40
42
|
}
|
|
41
43
|
}
|
package/dist/verify.js
CHANGED
|
@@ -18,8 +18,9 @@ async function actualEntries(octokit, repo, prNumber) {
|
|
|
18
18
|
const entries = new Map();
|
|
19
19
|
const incomplete = [];
|
|
20
20
|
for (const run of runs) {
|
|
21
|
-
if (run.status !== "completed")
|
|
21
|
+
if (run.status !== "completed") {
|
|
22
22
|
incomplete.push(run.path);
|
|
23
|
+
}
|
|
23
24
|
const jobs = await octokit.paginate(octokit.rest.actions.listJobsForWorkflowRun, {
|
|
24
25
|
...base,
|
|
25
26
|
run_id: run.id,
|