@pourkit/cli 0.0.0-next-20260529095319 → 0.0.0-next-20260530000923
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/cli.js +4 -4
- package/dist/e2e/run-live-e2e.js +15 -5
- package/dist/e2e/run-live-e2e.js.map +1 -1
- package/package.json +2 -1
package/dist/cli.js
CHANGED
|
@@ -7817,11 +7817,11 @@ function createCliProgram(version) {
|
|
|
7817
7817
|
return program;
|
|
7818
7818
|
}
|
|
7819
7819
|
async function resolveCliVersion() {
|
|
7820
|
-
if (isPackageVersion("0.0.0-next-
|
|
7821
|
-
return "0.0.0-next-
|
|
7820
|
+
if (isPackageVersion("0.0.0-next-20260530000923")) {
|
|
7821
|
+
return "0.0.0-next-20260530000923";
|
|
7822
7822
|
}
|
|
7823
|
-
if (isReleaseVersion("0.0.0-next-
|
|
7824
|
-
return "0.0.0-next-
|
|
7823
|
+
if (isReleaseVersion("0.0.0-next-20260530000923")) {
|
|
7824
|
+
return "0.0.0-next-20260530000923";
|
|
7825
7825
|
}
|
|
7826
7826
|
try {
|
|
7827
7827
|
const root = repoRoot();
|
package/dist/e2e/run-live-e2e.js
CHANGED
|
@@ -4737,8 +4737,8 @@ async function deleteRemoteBranch(branchName, logger) {
|
|
|
4737
4737
|
return false;
|
|
4738
4738
|
}
|
|
4739
4739
|
}
|
|
4740
|
-
async function createE2EIssue(runId, targetBranch, logger, client, title = `E2E Test Issue ${runId}
|
|
4741
|
-
const
|
|
4740
|
+
async function createE2EIssue(runId, targetBranch, logger, client, title = `E2E Test Issue ${runId}`, body) {
|
|
4741
|
+
const issueBody = body ?? [
|
|
4742
4742
|
`This is an automatically created E2E test issue for run ${runId}.`,
|
|
4743
4743
|
"",
|
|
4744
4744
|
`Target branch: ${targetBranch}`,
|
|
@@ -4750,16 +4750,26 @@ async function createE2EIssue(runId, targetBranch, logger, client, title = `E2E
|
|
|
4750
4750
|
owner: client.owner,
|
|
4751
4751
|
repo: client.repo,
|
|
4752
4752
|
title,
|
|
4753
|
-
body,
|
|
4753
|
+
body: issueBody,
|
|
4754
4754
|
labels: ["ready-for-agent", "type:infra", "pourkit-e2e"]
|
|
4755
4755
|
});
|
|
4756
4756
|
logger.line(`Created issue #${data.number}`);
|
|
4757
4757
|
return { number: data.number, url: data.html_url };
|
|
4758
4758
|
}
|
|
4759
|
-
async function createLiveTargetBranch(runId, logger) {
|
|
4759
|
+
async function createLiveTargetBranch(runId, logger, baseBranch = "main") {
|
|
4760
4760
|
const targetBranch = `pourkit-e2e-target/${runId}`;
|
|
4761
4761
|
logger.step("git", `Creating target branch: ${targetBranch}`);
|
|
4762
|
-
await execCapture("git", [
|
|
4762
|
+
await execCapture("git", [
|
|
4763
|
+
"fetch",
|
|
4764
|
+
"origin",
|
|
4765
|
+
`${baseBranch}:refs/remotes/origin/${baseBranch}`
|
|
4766
|
+
]);
|
|
4767
|
+
await execCapture("git", [
|
|
4768
|
+
"branch",
|
|
4769
|
+
"--force",
|
|
4770
|
+
targetBranch,
|
|
4771
|
+
`origin/${baseBranch}`
|
|
4772
|
+
]);
|
|
4763
4773
|
await execCapture("git", [
|
|
4764
4774
|
"push",
|
|
4765
4775
|
"--no-verify",
|