@skuba-lib/api 3.0.1 → 3.1.0-main-20261022015111
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/lib/buildkite/index.cjs +1 -1
- package/lib/buildkite/index.mjs +1 -2
- package/lib/{buildkite-D6oioQR_.mjs → buildkite-CGh97KeJ.mjs} +1 -1
- package/lib/{buildkite-Br2Fyde2.cjs → buildkite-DIM7cSGy.cjs} +1 -1
- package/lib/cdk/index.cjs +2 -12
- package/lib/cdk/index.d.cts +2 -6
- package/lib/cdk/index.d.mts +2 -6
- package/lib/cdk/index.mjs +1 -7
- package/lib/cdk-DB959Crf.mjs +7 -0
- package/lib/cdk-MbLmz2U8.cjs +17 -0
- package/lib/{exec-DqBpB5Vp.cjs → exec-BQj5UxPk.cjs} +8 -5
- package/lib/{exec-GeacTdU5.mjs → exec-Pgb-tfyl.mjs} +8 -5
- package/lib/git/index.cjs +1 -1
- package/lib/git/index.mjs +1 -2
- package/lib/{git-CSGc8r3Q.cjs → git-BaFIyVD3.cjs} +2 -2
- package/lib/github/index.cjs +2 -2
- package/lib/github/index.d.cts +1 -1
- package/lib/github/index.d.mts +1 -1
- package/lib/github/index.mjs +1 -1
- package/lib/{github-CuWb88m1.cjs → github-BNC7y06d.cjs} +3 -2
- package/lib/{github-BLyV25Ac.mjs → github-C8e-zQEz.mjs} +2 -1
- package/lib/{index-J0PI37zH.d.mts → index-DGIz_D-3.d.cts} +8 -2
- package/lib/index-DVvx9Ui-.d.cts +6 -0
- package/lib/index-DVvx9Ui-.d.mts +6 -0
- package/lib/{index--hWvZI6b.d.cts → index-H1EG1aKT.d.mts} +8 -2
- package/lib/index.cjs +7 -7
- package/lib/index.d.cts +2 -2
- package/lib/index.d.mts +2 -2
- package/lib/index.mjs +5 -5
- package/lib/net/index.cjs +1 -1
- package/lib/net/index.mjs +1 -2
- package/lib/{net-BONidEnf.cjs → net-L9oFZOI_.cjs} +1 -1
- package/lib/{net-BxPK6QHR.mjs → net-k3XmmIaE.mjs} +1 -1
- package/lib/rolldown/index.cjs +1 -1
- package/lib/rolldown/index.mjs +1 -2
- package/lib/{rolldown-CHdN4G5F.mjs → rolldown-Do1UJcz3.mjs} +1 -1
- package/lib/{rolldown-B47lAoi7.cjs → rolldown-DrmbuWyy.cjs} +1 -1
- package/package.json +1 -1
package/lib/buildkite/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_buildkite = require("../buildkite-
|
|
2
|
+
const require_buildkite = require("../buildkite-DIM7cSGy.cjs");
|
|
3
3
|
exports.annotate = require_buildkite.annotate;
|
|
4
4
|
exports.md = require_buildkite.md;
|
package/lib/buildkite/index.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { annotate, md };
|
|
1
|
+
export { r as annotate, n as md } from "../buildkite-CGh97KeJ.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
|
|
2
2
|
import { t as log } from "./logging-BQNEupxh.mjs";
|
|
3
|
-
import { n as exec, r as hasCommand } from "./exec-
|
|
3
|
+
import { n as exec, r as hasCommand } from "./exec-Pgb-tfyl.mjs";
|
|
4
4
|
//#region src/buildkite/annotate.ts
|
|
5
5
|
const isAnnotationEnabled = async () => Boolean(process.env.BUILDKITE && process.env.BUILDKITE_AGENT_ACCESS_TOKEN && process.env.BUILDKITE_JOB_ID && await hasCommand("buildkite-agent"));
|
|
6
6
|
const TRUNCATION_WARNING = "... [Truncated due to size limit]";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-C0BPl7ul.cjs");
|
|
2
2
|
const require_logging = require("./logging-BqpzZfsF.cjs");
|
|
3
|
-
const require_exec = require("./exec-
|
|
3
|
+
const require_exec = require("./exec-BQj5UxPk.cjs");
|
|
4
4
|
//#region src/buildkite/annotate.ts
|
|
5
5
|
const isAnnotationEnabled = async () => Boolean(process.env.BUILDKITE && process.env.BUILDKITE_AGENT_ACCESS_TOKEN && process.env.BUILDKITE_JOB_ID && await require_exec.hasCommand("buildkite-agent"));
|
|
6
6
|
const TRUNCATION_WARNING = "... [Truncated due to size limit]";
|
package/lib/cdk/index.cjs
CHANGED
|
@@ -1,13 +1,3 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const normaliseTemplateJsonString = (json) => json.replace(/"S3Key":"([0-9a-f]+)\.zip"/g, (_, hash) => `"S3Key":"${"x".repeat(hash.length)}.zip"`).replace(/CurrentVersion([0-9a-zA-Z]+)"/g, (_, hash) => `CurrentVersion${"x".repeat(hash.length)}"`).replaceAll(/"Value":"\d+\.\d+\.\d+-([^"]+)"/g, (_, hash) => `"Value": "x.x.x-${"x".repeat(hash.length)}"`).replaceAll(/"Value":"v\d+\.\d+\.\d+"/g, (_) => "\"Value\": \"vx.x.x\"").replace(/"DD_TAGS":"git.commit.sha:([0-9a-f]+),git.repository_url:([^\"]+)",/g, "").replaceAll(/(layer:Datadog-[^-]+-.+?:)\d+/g, (_, layer) => `${layer}x`);
|
|
5
|
-
const normaliseTemplate = (template) => JSON.parse(normaliseTemplateJsonString(JSON.stringify(template)));
|
|
6
|
-
//#endregion
|
|
7
|
-
Object.defineProperty(exports, "cdk_exports", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function() {
|
|
10
|
-
return cdk_exports;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
exports.normaliseTemplate = normaliseTemplate;
|
|
2
|
+
const require_cdk = require("../cdk-MbLmz2U8.cjs");
|
|
3
|
+
exports.normaliseTemplate = require_cdk.normaliseTemplate;
|
package/lib/cdk/index.d.cts
CHANGED
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
export declare const normaliseTemplate: (template: object) => unknown;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { index_d_exports as t };
|
|
1
|
+
import { n as normaliseTemplate } from "../index-DVvx9Ui-.cjs";
|
|
2
|
+
export { normaliseTemplate };
|
package/lib/cdk/index.d.mts
CHANGED
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
export declare const normaliseTemplate: (template: object) => unknown;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { index_d_exports as t };
|
|
1
|
+
import { n as normaliseTemplate } from "../index-DVvx9Ui-.mjs";
|
|
2
|
+
export { normaliseTemplate };
|
package/lib/cdk/index.mjs
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
//#region src/cdk/index.ts
|
|
3
|
-
var cdk_exports = /* @__PURE__ */ __exportAll({ normaliseTemplate: () => normaliseTemplate });
|
|
4
|
-
const normaliseTemplateJsonString = (json) => json.replace(/"S3Key":"([0-9a-f]+)\.zip"/g, (_, hash) => `"S3Key":"${"x".repeat(hash.length)}.zip"`).replace(/CurrentVersion([0-9a-zA-Z]+)"/g, (_, hash) => `CurrentVersion${"x".repeat(hash.length)}"`).replaceAll(/"Value":"\d+\.\d+\.\d+-([^"]+)"/g, (_, hash) => `"Value": "x.x.x-${"x".repeat(hash.length)}"`).replaceAll(/"Value":"v\d+\.\d+\.\d+"/g, (_) => "\"Value\": \"vx.x.x\"").replace(/"DD_TAGS":"git.commit.sha:([0-9a-f]+),git.repository_url:([^\"]+)",/g, "").replaceAll(/(layer:Datadog-[^-]+-.+?:)\d+/g, (_, layer) => `${layer}x`);
|
|
5
|
-
const normaliseTemplate = (template) => JSON.parse(normaliseTemplateJsonString(JSON.stringify(template)));
|
|
6
|
-
//#endregion
|
|
7
|
-
export { normaliseTemplate, cdk_exports as t };
|
|
1
|
+
export { n as normaliseTemplate } from "../cdk-DB959Crf.mjs";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
|
|
2
|
+
//#region src/cdk/index.ts
|
|
3
|
+
var cdk_exports = /* @__PURE__ */ __exportAll({ normaliseTemplate: () => normaliseTemplate });
|
|
4
|
+
const normaliseTemplateJsonString = (json) => json.replace(/"S3Key":"([0-9a-f]+)\.zip"/g, (_, hash) => `"S3Key":"${"x".repeat(hash.length)}.zip"`).replace(/CurrentVersion([0-9a-zA-Z]+)"/g, (_, hash) => `CurrentVersion${"x".repeat(hash.length)}"`).replaceAll(/"Value":"\d+\.\d+\.\d+-([^"]+)"/g, (_, hash) => `"Value": "x.x.x-${"x".repeat(hash.length)}"`).replaceAll(/"Value":"v\d+\.\d+\.\d+"/g, (_) => "\"Value\": \"vx.x.x\"").replace(/"DD_TAGS":"git.commit.sha:([0-9a-f]+),git.repository_url:([^\"]+)",/g, "").replaceAll(/(layer:Datadog-[^-]+-.+?:)\d+/g, (_, layer) => `${layer}x`);
|
|
5
|
+
const normaliseTemplate = (template) => JSON.parse(normaliseTemplateJsonString(JSON.stringify(template)));
|
|
6
|
+
//#endregion
|
|
7
|
+
export { normaliseTemplate as n, cdk_exports as t };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region src/cdk/index.ts
|
|
2
|
+
var cdk_exports = /* @__PURE__ */ require("./rolldown-runtime-C0BPl7ul.cjs").__exportAll({ normaliseTemplate: () => normaliseTemplate });
|
|
3
|
+
const normaliseTemplateJsonString = (json) => json.replace(/"S3Key":"([0-9a-f]+)\.zip"/g, (_, hash) => `"S3Key":"${"x".repeat(hash.length)}.zip"`).replace(/CurrentVersion([0-9a-zA-Z]+)"/g, (_, hash) => `CurrentVersion${"x".repeat(hash.length)}"`).replaceAll(/"Value":"\d+\.\d+\.\d+-([^"]+)"/g, (_, hash) => `"Value": "x.x.x-${"x".repeat(hash.length)}"`).replaceAll(/"Value":"v\d+\.\d+\.\d+"/g, (_) => "\"Value\": \"vx.x.x\"").replace(/"DD_TAGS":"git.commit.sha:([0-9a-f]+),git.repository_url:([^\"]+)",/g, "").replaceAll(/(layer:Datadog-[^-]+-.+?:)\d+/g, (_, layer) => `${layer}x`);
|
|
4
|
+
const normaliseTemplate = (template) => JSON.parse(normaliseTemplateJsonString(JSON.stringify(template)));
|
|
5
|
+
//#endregion
|
|
6
|
+
Object.defineProperty(exports, "cdk_exports", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function() {
|
|
9
|
+
return cdk_exports;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "normaliseTemplate", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function() {
|
|
15
|
+
return normaliseTemplate;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
@@ -23,13 +23,16 @@ var YarnWarningFilter = class extends stream.default.Transform {
|
|
|
23
23
|
callback();
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
|
-
const runCommand = (command, args,
|
|
27
|
-
const
|
|
26
|
+
const runCommand = (command, args, options) => {
|
|
27
|
+
const { streamStdio } = options;
|
|
28
|
+
const execaOptions = {
|
|
28
29
|
localDir: __dirname,
|
|
29
30
|
preferLocal: true,
|
|
30
31
|
stdio: "inherit",
|
|
31
|
-
...
|
|
32
|
-
}
|
|
32
|
+
...options
|
|
33
|
+
};
|
|
34
|
+
delete execaOptions.streamStdio;
|
|
35
|
+
const subprocess = (0, execa.execa)(command, args, execaOptions);
|
|
33
36
|
switch (streamStdio) {
|
|
34
37
|
case "yarn":
|
|
35
38
|
const stderrFilter = new YarnWarningFilter();
|
|
@@ -47,7 +50,7 @@ const runCommand = (command, args, { streamStdio, ...execaOptions } = {}) => {
|
|
|
47
50
|
const whichCallback = (0, npm_which.default)(__dirname);
|
|
48
51
|
const which = util.default.promisify(whichCallback);
|
|
49
52
|
const createExec = (opts) => (command, ...args) => runCommand(command, args, opts);
|
|
50
|
-
const exec = (command, ...args) => runCommand(command, args);
|
|
53
|
+
const exec = (command, ...args) => runCommand(command, args, {});
|
|
51
54
|
const hasCommand = async (name) => {
|
|
52
55
|
try {
|
|
53
56
|
await which(name);
|
|
@@ -19,13 +19,16 @@ var YarnWarningFilter = class extends stream.Transform {
|
|
|
19
19
|
callback();
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
|
-
const runCommand = (command, args,
|
|
23
|
-
const
|
|
22
|
+
const runCommand = (command, args, options) => {
|
|
23
|
+
const { streamStdio } = options;
|
|
24
|
+
const execaOptions = {
|
|
24
25
|
localDir: import.meta.dirname,
|
|
25
26
|
preferLocal: true,
|
|
26
27
|
stdio: "inherit",
|
|
27
|
-
...
|
|
28
|
-
}
|
|
28
|
+
...options
|
|
29
|
+
};
|
|
30
|
+
delete execaOptions.streamStdio;
|
|
31
|
+
const subprocess = execa(command, args, execaOptions);
|
|
29
32
|
switch (streamStdio) {
|
|
30
33
|
case "yarn":
|
|
31
34
|
const stderrFilter = new YarnWarningFilter();
|
|
@@ -43,7 +46,7 @@ const runCommand = (command, args, { streamStdio, ...execaOptions } = {}) => {
|
|
|
43
46
|
const whichCallback = npmWhich(import.meta.dirname);
|
|
44
47
|
const which = util.promisify(whichCallback);
|
|
45
48
|
const createExec = (opts) => (command, ...args) => runCommand(command, args, opts);
|
|
46
|
-
const exec = (command, ...args) => runCommand(command, args);
|
|
49
|
+
const exec = (command, ...args) => runCommand(command, args, {});
|
|
47
50
|
const hasCommand = async (name) => {
|
|
48
51
|
try {
|
|
49
52
|
await which(name);
|
package/lib/git/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_git = require("../git-
|
|
2
|
+
const require_git = require("../git-BaFIyVD3.cjs");
|
|
3
3
|
exports.commit = require_git.commit;
|
|
4
4
|
exports.commitAllChanges = require_git.commitAllChanges;
|
|
5
5
|
exports.currentBranch = require_git.currentBranch;
|
package/lib/git/index.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { commit, commitAllChanges, currentBranch, fastForwardBranch, findRoot, getChangedFiles, getHeadCommitId, getHeadCommitMessage, getOwnerAndRepo, isFileGitIgnored, push, reset };
|
|
1
|
+
export { g as commit, p as commitAllChanges, f as currentBranch, i as fastForwardBranch, h as findRoot, m as getChangedFiles, u as getHeadCommitId, d as getHeadCommitMessage, l as getOwnerAndRepo, n as isFileGitIgnored, a as push, r as reset } from "../git-BygvGOZr.mjs";
|
|
@@ -52,7 +52,7 @@ const mapState = (row) => {
|
|
|
52
52
|
* since the last commit, but can also look at a specific `dst` reference, or
|
|
53
53
|
* the changes between `src` and `dst` references.
|
|
54
54
|
*/
|
|
55
|
-
const getChangedFiles = async ({ dir, src, dst, ignore
|
|
55
|
+
const getChangedFiles = async ({ dir, src, dst, ignore = [] }) => {
|
|
56
56
|
const gitRoot = await (0, isomorphic_git.findRoot)({
|
|
57
57
|
fs: fs_extra.default,
|
|
58
58
|
filepath: dir
|
|
@@ -63,7 +63,7 @@ const getChangedFiles = async ({ dir, src, dst, ignore: ignore$1 = [] }) => {
|
|
|
63
63
|
src,
|
|
64
64
|
dst
|
|
65
65
|
}) : getChangedFilesInWorkingDirectory(repoDir), createIsLfsFilter(gitRoot)]);
|
|
66
|
-
return allFiles.filter((changedFile) => !ignore
|
|
66
|
+
return allFiles.filter((changedFile) => !ignore.some((i) => i.path === changedFile.path && i.state === changedFile.state) && !isLfs(changedFile.path));
|
|
67
67
|
};
|
|
68
68
|
const getChangedFilesInWorkingDirectory = async (dir) => {
|
|
69
69
|
return (await isomorphic_git.default.statusMatrix({
|
package/lib/github/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_git = require("../git-
|
|
3
|
-
const require_github = require("../github-
|
|
2
|
+
const require_git = require("../git-BaFIyVD3.cjs");
|
|
3
|
+
const require_github = require("../github-BNC7y06d.cjs");
|
|
4
4
|
exports.apiTokenFromEnvironment = require_git.apiTokenFromEnvironment;
|
|
5
5
|
exports.buildNameFromEnvironment = require_git.buildNameFromEnvironment;
|
|
6
6
|
exports.createCheckRun = require_github.createCheckRun;
|
package/lib/github/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as putIssueComment, c as buildNameFromEnvironment, d as createCheckRun, i as uploadFileChanges, l as enabledFromEnvironment, n as readFileChanges, o as getPullRequestNumber, r as uploadAllFileChanges, s as apiTokenFromEnvironment, u as Annotation } from "../index
|
|
1
|
+
import { a as putIssueComment, c as buildNameFromEnvironment, d as createCheckRun, i as uploadFileChanges, l as enabledFromEnvironment, n as readFileChanges, o as getPullRequestNumber, r as uploadAllFileChanges, s as apiTokenFromEnvironment, u as Annotation } from "../index-DGIz_D-3.cjs";
|
|
2
2
|
export { type Annotation, apiTokenFromEnvironment, buildNameFromEnvironment, createCheckRun, enabledFromEnvironment, getPullRequestNumber, putIssueComment, readFileChanges, uploadAllFileChanges, uploadFileChanges };
|
package/lib/github/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as putIssueComment, c as buildNameFromEnvironment, d as createCheckRun, i as uploadFileChanges, l as enabledFromEnvironment, n as readFileChanges, o as getPullRequestNumber, r as uploadAllFileChanges, s as apiTokenFromEnvironment, u as Annotation } from "../index-
|
|
1
|
+
import { a as putIssueComment, c as buildNameFromEnvironment, d as createCheckRun, i as uploadFileChanges, l as enabledFromEnvironment, n as readFileChanges, o as getPullRequestNumber, r as uploadAllFileChanges, s as apiTokenFromEnvironment, u as Annotation } from "../index-H1EG1aKT.mjs";
|
|
2
2
|
export { type Annotation, apiTokenFromEnvironment, buildNameFromEnvironment, createCheckRun, enabledFromEnvironment, getPullRequestNumber, putIssueComment, readFileChanges, uploadAllFileChanges, uploadFileChanges };
|
package/lib/github/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { c as enabledFromEnvironment, o as apiTokenFromEnvironment, s as buildNameFromEnvironment } from "../git-BygvGOZr.mjs";
|
|
2
|
-
import { a as putIssueComment, i as uploadFileChanges, n as readFileChanges, o as getPullRequestNumber, r as uploadAllFileChanges, s as createCheckRun } from "../github-
|
|
2
|
+
import { a as putIssueComment, i as uploadFileChanges, n as readFileChanges, o as getPullRequestNumber, r as uploadAllFileChanges, s as createCheckRun } from "../github-C8e-zQEz.mjs";
|
|
3
3
|
export { apiTokenFromEnvironment, buildNameFromEnvironment, createCheckRun, enabledFromEnvironment, getPullRequestNumber, putIssueComment, readFileChanges, uploadAllFileChanges, uploadFileChanges };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-C0BPl7ul.cjs");
|
|
2
2
|
const require_logging = require("./logging-BqpzZfsF.cjs");
|
|
3
|
-
const require_git = require("./git-
|
|
3
|
+
const require_git = require("./git-BaFIyVD3.cjs");
|
|
4
4
|
let fs_extra = require("fs-extra");
|
|
5
5
|
fs_extra = require_rolldown_runtime.__toESM(fs_extra, 1);
|
|
6
6
|
let path = require("path");
|
|
@@ -33,11 +33,12 @@ const createEnrichedSummary = (summary, inputAnnotations) => [summary, ...inputA
|
|
|
33
33
|
* A `GITHUB_API_TOKEN` or `GITHUB_TOKEN` with the `checks:write` permission
|
|
34
34
|
* must be present on the environment.
|
|
35
35
|
*/
|
|
36
|
-
const createCheckRun = async ({ annotations, conclusion, name, summary, text, title }) => {
|
|
36
|
+
const createCheckRun = async ({ annotations, conclusion, detailsUrl, name, summary, text, title }) => {
|
|
37
37
|
const dir = process.cwd();
|
|
38
38
|
const [commitId, { owner, repo }] = await Promise.all([require_git.getHeadCommitId({ dir }), require_git.getOwnerAndRepo({ dir })]);
|
|
39
39
|
await (await createRestClient({ auth: require_git.apiTokenFromEnvironment() })).checks.create({
|
|
40
40
|
conclusion,
|
|
41
|
+
details_url: detailsUrl,
|
|
41
42
|
head_sha: commitId,
|
|
42
43
|
name,
|
|
43
44
|
output: {
|
|
@@ -31,11 +31,12 @@ const createEnrichedSummary = (summary, inputAnnotations) => [summary, ...inputA
|
|
|
31
31
|
* A `GITHUB_API_TOKEN` or `GITHUB_TOKEN` with the `checks:write` permission
|
|
32
32
|
* must be present on the environment.
|
|
33
33
|
*/
|
|
34
|
-
const createCheckRun = async ({ annotations, conclusion, name, summary, text, title }) => {
|
|
34
|
+
const createCheckRun = async ({ annotations, conclusion, detailsUrl, name, summary, text, title }) => {
|
|
35
35
|
const dir = process.cwd();
|
|
36
36
|
const [commitId, { owner, repo }] = await Promise.all([getHeadCommitId({ dir }), getOwnerAndRepo({ dir })]);
|
|
37
37
|
await (await createRestClient({ auth: apiTokenFromEnvironment() })).checks.create({
|
|
38
38
|
conclusion,
|
|
39
|
+
details_url: detailsUrl,
|
|
39
40
|
head_sha: commitId,
|
|
40
41
|
name,
|
|
41
42
|
output: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as ChangedFile
|
|
1
|
+
import { f as ChangedFile } from "./index-CLEYcnJY.cjs";
|
|
2
2
|
import { Endpoints } from "@octokit/types";
|
|
3
3
|
import { Octokit } from "@octokit/rest";
|
|
4
4
|
//#region src/github/checkRun.d.ts
|
|
@@ -18,6 +18,12 @@ interface CreateCheckRunParameters {
|
|
|
18
18
|
* The final conclusion of the check.
|
|
19
19
|
*/
|
|
20
20
|
conclusion: 'failure' | 'success';
|
|
21
|
+
/**
|
|
22
|
+
* A URL that links to the full details of the check, such as a CI build.
|
|
23
|
+
*
|
|
24
|
+
* Defaults to the homepage of the GitHub App that created the check run.
|
|
25
|
+
*/
|
|
26
|
+
detailsUrl?: string;
|
|
21
27
|
/**
|
|
22
28
|
* The name of the check. For example, "code-coverage".
|
|
23
29
|
*/
|
|
@@ -43,7 +49,7 @@ interface CreateCheckRunParameters {
|
|
|
43
49
|
* A `GITHUB_API_TOKEN` or `GITHUB_TOKEN` with the `checks:write` permission
|
|
44
50
|
* must be present on the environment.
|
|
45
51
|
*/
|
|
46
|
-
declare const createCheckRun: ({ annotations, conclusion, name, summary, text, title }: CreateCheckRunParameters) => Promise<void>;
|
|
52
|
+
declare const createCheckRun: ({ annotations, conclusion, detailsUrl, name, summary, text, title }: CreateCheckRunParameters) => Promise<void>;
|
|
47
53
|
//#endregion
|
|
48
54
|
//#region src/github/environment.d.ts
|
|
49
55
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as ChangedFile
|
|
1
|
+
import { f as ChangedFile } from "./index-CLEYcnJY.mjs";
|
|
2
2
|
import { Endpoints } from "@octokit/types";
|
|
3
3
|
import { Octokit } from "@octokit/rest";
|
|
4
4
|
//#region src/github/checkRun.d.ts
|
|
@@ -18,6 +18,12 @@ interface CreateCheckRunParameters {
|
|
|
18
18
|
* The final conclusion of the check.
|
|
19
19
|
*/
|
|
20
20
|
conclusion: 'failure' | 'success';
|
|
21
|
+
/**
|
|
22
|
+
* A URL that links to the full details of the check, such as a CI build.
|
|
23
|
+
*
|
|
24
|
+
* Defaults to the homepage of the GitHub App that created the check run.
|
|
25
|
+
*/
|
|
26
|
+
detailsUrl?: string;
|
|
21
27
|
/**
|
|
22
28
|
* The name of the check. For example, "code-coverage".
|
|
23
29
|
*/
|
|
@@ -43,7 +49,7 @@ interface CreateCheckRunParameters {
|
|
|
43
49
|
* A `GITHUB_API_TOKEN` or `GITHUB_TOKEN` with the `checks:write` permission
|
|
44
50
|
* must be present on the environment.
|
|
45
51
|
*/
|
|
46
|
-
declare const createCheckRun: ({ annotations, conclusion, name, summary, text, title }: CreateCheckRunParameters) => Promise<void>;
|
|
52
|
+
declare const createCheckRun: ({ annotations, conclusion, detailsUrl, name, summary, text, title }: CreateCheckRunParameters) => Promise<void>;
|
|
47
53
|
//#endregion
|
|
48
54
|
//#region src/github/environment.d.ts
|
|
49
55
|
/**
|
package/lib/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_buildkite = require("./buildkite-
|
|
3
|
-
const
|
|
4
|
-
const require_git = require("./git-
|
|
5
|
-
const require_github = require("./github-
|
|
6
|
-
const require_net = require("./net-
|
|
7
|
-
const require_rolldown = require("./rolldown-
|
|
2
|
+
const require_buildkite = require("./buildkite-DIM7cSGy.cjs");
|
|
3
|
+
const require_cdk = require("./cdk-MbLmz2U8.cjs");
|
|
4
|
+
const require_git = require("./git-BaFIyVD3.cjs");
|
|
5
|
+
const require_github = require("./github-BNC7y06d.cjs");
|
|
6
|
+
const require_net = require("./net-L9oFZOI_.cjs");
|
|
7
|
+
const require_rolldown = require("./rolldown-DrmbuWyy.cjs");
|
|
8
8
|
Object.defineProperty(exports, "Buildkite", {
|
|
9
9
|
enumerable: true,
|
|
10
10
|
get: function() {
|
|
@@ -14,7 +14,7 @@ Object.defineProperty(exports, "Buildkite", {
|
|
|
14
14
|
Object.defineProperty(exports, "Cdk", {
|
|
15
15
|
enumerable: true,
|
|
16
16
|
get: function() {
|
|
17
|
-
return
|
|
17
|
+
return require_cdk.cdk_exports;
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "Git", {
|
package/lib/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as index_d_exports } from "./index-CNxgBJm_.cjs";
|
|
2
|
-
import { t as index_d_exports$1 } from "./
|
|
2
|
+
import { t as index_d_exports$1 } from "./index-DVvx9Ui-.cjs";
|
|
3
3
|
import { t as index_d_exports$2 } from "./index-CLEYcnJY.cjs";
|
|
4
|
-
import { t as index_d_exports$3 } from "./index
|
|
4
|
+
import { t as index_d_exports$3 } from "./index-DGIz_D-3.cjs";
|
|
5
5
|
import { t as index_d_exports$4 } from "./index-C9lVo3vU.cjs";
|
|
6
6
|
import { t as index_d_exports$5 } from "./index-BKHTGdUP.cjs";
|
|
7
7
|
export { index_d_exports as Buildkite, index_d_exports$1 as Cdk, index_d_exports$2 as Git, index_d_exports$3 as GitHub, index_d_exports$4 as Net, index_d_exports$5 as Rolldown };
|
package/lib/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as index_d_exports } from "./index-CNxgBJm_.mjs";
|
|
2
|
-
import { t as index_d_exports$1 } from "./
|
|
2
|
+
import { t as index_d_exports$1 } from "./index-DVvx9Ui-.mjs";
|
|
3
3
|
import { t as index_d_exports$2 } from "./index-CLEYcnJY.mjs";
|
|
4
|
-
import { t as index_d_exports$3 } from "./index-
|
|
4
|
+
import { t as index_d_exports$3 } from "./index-H1EG1aKT.mjs";
|
|
5
5
|
import { t as index_d_exports$4 } from "./index-C9lVo3vU.mjs";
|
|
6
6
|
import { t as index_d_exports$5 } from "./index-BKHTGdUP.mjs";
|
|
7
7
|
export { index_d_exports as Buildkite, index_d_exports$1 as Cdk, index_d_exports$2 as Git, index_d_exports$3 as GitHub, index_d_exports$4 as Net, index_d_exports$5 as Rolldown };
|
package/lib/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as buildkite_exports } from "./buildkite-
|
|
2
|
-
import { t as cdk_exports } from "./cdk
|
|
1
|
+
import { t as buildkite_exports } from "./buildkite-CGh97KeJ.mjs";
|
|
2
|
+
import { t as cdk_exports } from "./cdk-DB959Crf.mjs";
|
|
3
3
|
import { t as git_exports } from "./git-BygvGOZr.mjs";
|
|
4
|
-
import { t as github_exports } from "./github-
|
|
5
|
-
import { t as net_exports } from "./net-
|
|
6
|
-
import { t as rolldown_exports } from "./rolldown-
|
|
4
|
+
import { t as github_exports } from "./github-C8e-zQEz.mjs";
|
|
5
|
+
import { t as net_exports } from "./net-k3XmmIaE.mjs";
|
|
6
|
+
import { t as rolldown_exports } from "./rolldown-Do1UJcz3.mjs";
|
|
7
7
|
export { buildkite_exports as Buildkite, cdk_exports as Cdk, git_exports as Git, github_exports as GitHub, net_exports as Net, rolldown_exports as Rolldown };
|
package/lib/net/index.cjs
CHANGED
package/lib/net/index.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { waitFor };
|
|
1
|
+
export { n as waitFor } from "../net-k3XmmIaE.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-C0BPl7ul.cjs");
|
|
2
|
-
const require_exec = require("./exec-
|
|
2
|
+
const require_exec = require("./exec-BQj5UxPk.cjs");
|
|
3
3
|
let net = require("net");
|
|
4
4
|
net = require_rolldown_runtime.__toESM(net, 1);
|
|
5
5
|
//#region src/net/compose.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
|
|
2
|
-
import { t as createExec } from "./exec-
|
|
2
|
+
import { t as createExec } from "./exec-Pgb-tfyl.mjs";
|
|
3
3
|
import net from "net";
|
|
4
4
|
//#region src/net/compose.ts
|
|
5
5
|
const portStringToNumber = (portString) => {
|
package/lib/rolldown/index.cjs
CHANGED
package/lib/rolldown/index.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { lambdaAsset };
|
|
1
|
+
export { n as lambdaAsset } from "../rolldown-Do1UJcz3.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
|
|
2
2
|
import { t as log } from "./logging-BQNEupxh.mjs";
|
|
3
|
-
import { t as createExec } from "./exec-
|
|
3
|
+
import { t as createExec } from "./exec-Pgb-tfyl.mjs";
|
|
4
4
|
import { t as pathExists } from "./fs-Cjt5C6XD.mjs";
|
|
5
5
|
import { findPackageJSON } from "node:module";
|
|
6
6
|
import fs from "fs-extra";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-C0BPl7ul.cjs");
|
|
2
2
|
const require_logging = require("./logging-BqpzZfsF.cjs");
|
|
3
|
-
const require_exec = require("./exec-
|
|
3
|
+
const require_exec = require("./exec-BQj5UxPk.cjs");
|
|
4
4
|
const require_fs = require("./fs-CuSraRTN.cjs");
|
|
5
5
|
let fs_extra = require("fs-extra");
|
|
6
6
|
fs_extra = require_rolldown_runtime.__toESM(fs_extra, 1);
|