willfire 0.1.28 → 0.1.29

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.
@@ -0,0 +1,2 @@
1
+ import type { DraftEntry, Entry } from "../types.js";
2
+ export declare const finalize: (e: DraftEntry) => Entry;
@@ -0,0 +1,4 @@
1
+ const isWorkflowDraft = (e) => e.job === "*";
2
+ export const finalize = (e) => isWorkflowDraft(e)
3
+ ? { ...e, checkName: null }
4
+ : { ...e, checkName: e.checkName ?? null };
@@ -1,8 +1,5 @@
1
+ import { finalize } from "./finalize.js";
1
2
  import { sourceKey } from "./sourceKey.js";
2
- const isWorkflowDraft = (e) => e.job === "*";
3
- const finalize = (e) => isWorkflowDraft(e)
4
- ? { ...e, checkName: null }
5
- : { ...e, checkName: e.checkName ?? null };
6
3
  export function finalizePrediction(entries, skip, sources) {
7
4
  const final = entries.map(finalize);
8
5
  const names = new Set();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "willfire",
3
- "version": "0.1.28",
3
+ "version": "0.1.29",
4
4
  "description": "Predict the set of CI check entries GitHub Actions will create for a pull request",
5
5
  "license": "MIT",
6
6
  "packageManager": "pnpm@10.33.0",