Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/changeset-presence.yml
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,16 @@ jobs:
);
}

// BOTH halves (objectui#9509). `findings` is the went-false half —
// somebody else's pending changeset — and `bornFalse` is this pull
// request's own prose. A born-false-only run must still create the
// comment, or the one half nothing later will ever turn red is
// delivered to the job log the ruling measured at zero answers out
// of four.
let findings = 0;
try {
findings = JSON.parse(fs.readFileSync('claims.json', 'utf8')).findings.length;
const measured = JSON.parse(fs.readFileSync('claims.json', 'utf8'));
findings = measured.findings.length + (measured.bornFalse ?? []).length;
} catch (error) {
core.warning(`Could not read the finding count: ${error.message}`);
}
Expand Down
Loading
Loading