MCPcopy Create free account
hub / github.com/dmno-dev/bumpy / initCommentArtifact

Function initCommentArtifact

packages/bumpy/src/commands/ci.ts:103–106  ·  view source on GitHub ↗

* Ensure the emit dir exists with an (empty) comment file. Called up-front so the * artifact is deterministically present for the `workflow_run` poster even when this * run makes no comment (no bump-file changes, release-PR branch, etc.) — the poster * then no-ops on the empty file instead of fai

(dir: string)

Source from the content-addressed store, hash-verified

101 * then no-ops on the empty file instead of failing to download a missing artifact.
102 */
103function initCommentArtifact(dir: string): void {
104 mkdirSync(dir, { recursive: true });
105 writeFileSync(resolve(dir, COMMENT_ARTIFACT_FILE), '', 'utf-8');
106}
107
108/** Write the rendered comment body to the emit dir for a downstream `ci comment`. */
109function writeCommentArtifact(dir: string, body: string): void {

Callers 1

ciCheckCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…