mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-09 15:59:30 +00:00
fix(ci): pass release metadata refs as options
This commit is contained in:
parent
2bb07361e6
commit
02af382a06
2 changed files with 17 additions and 1 deletions
|
|
@ -355,7 +355,6 @@ export function createChangedCheckPlan(result, options = {}) {
|
|||
if (lanes.releaseMetadata) {
|
||||
add("release metadata guard", [
|
||||
"release-metadata:check",
|
||||
"--",
|
||||
...(options.staged
|
||||
? ["--staged"]
|
||||
: ["--base", options.base ?? "origin/main", "--head", options.head ?? "HEAD"]),
|
||||
|
|
|
|||
|
|
@ -1354,6 +1354,23 @@ describe("scripts/changed-lanes", () => {
|
|||
"config:docs:check",
|
||||
"deps:root-ownership:check",
|
||||
]);
|
||||
expect(plan.commands.find((command) => command.args[0] === "release-metadata:check")?.args).toEqual([
|
||||
"release-metadata:check",
|
||||
"--staged",
|
||||
]);
|
||||
});
|
||||
|
||||
it("passes release metadata base and head refs as options", () => {
|
||||
const result = detectChangedLanes(["CHANGELOG.md"]);
|
||||
const plan = createChangedCheckPlan(result, { base: "main", head: "feature" });
|
||||
|
||||
expect(plan.commands.find((command) => command.args[0] === "release-metadata:check")?.args).toEqual([
|
||||
"release-metadata:check",
|
||||
"--base",
|
||||
"main",
|
||||
"--head",
|
||||
"feature",
|
||||
]);
|
||||
});
|
||||
|
||||
it("keeps docs plus changelog entries on the docs-only changed gate", () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue