* 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)
| 101 | * then no-ops on the empty file instead of failing to download a missing artifact. |
| 102 | */ |
| 103 | function 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`. */ |
| 109 | function writeCommentArtifact(dir: string, body: string): void { |
no outgoing calls
no test coverage detected
searching dependent graphs…