@catladder/cli 0.0.0-next-d13ff46d → 0.0.0-next-8cc9134a
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/apps/cli/src/release/changesetCheckJob.js +13 -1
- package/dist/apps/cli/src/release/changesetCheckJob.js.map +1 -1
- package/dist/bundles/catci/index.js +1 -1
- package/dist/bundles/catenv/index.js +28 -7
- package/dist/bundles/cli/index.js +28 -7
- package/dist/bundles/skills/catladder-pipelines/SKILL.md +5 -2
- package/dist/bundles/skills/catladder-releases/SKILL.md +3 -1
- package/dist/packages/pipeline/src/backends/github/GithubBackend.js +28 -7
- package/dist/packages/pipeline/src/backends/github/GithubBackend.js.map +1 -1
- package/dist/skills/catladder-pipelines/SKILL.md +5 -2
- package/dist/skills/catladder-releases/SKILL.md +3 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/release/changesetCheckJob.ts +17 -1
package/package.json
CHANGED
|
@@ -11,6 +11,7 @@ import { writeFile } from "fs/promises";
|
|
|
11
11
|
import { CHANGESET_CHECK_MARKER, runChangesetCheck } from "./changesetCheck";
|
|
12
12
|
import { readPendingChangesets } from "./changesetsReleaseJob";
|
|
13
13
|
import { ensureReleaseHistory, getLastReleaseTag, git } from "./releaseGit";
|
|
14
|
+
import { appendStepSummary } from "./stepSummary";
|
|
14
15
|
|
|
15
16
|
export const CHANGESET_REPORT_FILE = "changeset-report.md";
|
|
16
17
|
|
|
@@ -193,7 +194,22 @@ export const changesetCheckJob = async () => {
|
|
|
193
194
|
return;
|
|
194
195
|
}
|
|
195
196
|
if (!result.addsChangeset) {
|
|
196
|
-
|
|
197
|
+
if (onGithub()) {
|
|
198
|
+
// github has no "warning" job state: exiting non-zero would show
|
|
199
|
+
// the job as failed (a red ❌ and "exit code 1"), which reads like
|
|
200
|
+
// something broke. A warning annotation plus the step summary and
|
|
201
|
+
// the sticky PR comment carry the signal instead.
|
|
202
|
+
console.log(
|
|
203
|
+
"::warning title=No changeset::this pull request adds no changeset — " +
|
|
204
|
+
"if the change is user-facing, add one so it appears in the next release's changelog",
|
|
205
|
+
);
|
|
206
|
+
appendStepSummary(
|
|
207
|
+
result.markdown.replace(`${CHANGESET_CHECK_MARKER}\n`, ""),
|
|
208
|
+
);
|
|
209
|
+
return;
|
|
210
|
+
}
|
|
211
|
+
// gitlab: exit 1 turns the (allow_failure) job yellow so reviewers
|
|
212
|
+
// notice
|
|
197
213
|
process.exitCode = 1;
|
|
198
214
|
}
|
|
199
215
|
};
|