@skuba-lib/api 2.0.1 → 2.0.2
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/buildkite/package.json +1 -1
- package/git/package.json +1 -1
- package/github/package.json +1 -1
- package/lib/buildkite/index.cjs +19 -4
- package/lib/buildkite/index.d.cts +8 -2
- package/lib/buildkite/index.d.mts +8 -2
- package/lib/buildkite/index.mjs +11 -3
- package/lib/{chunk-CwYMPI_t.mjs → chunk-DoQ1iNfF.mjs} +3 -3
- package/lib/{error-DwxMLko3.cjs → error-BEFwIvK2.cjs} +10 -10
- package/lib/{error-DnkB3E6d.mjs → error-DIBTmfX2.mjs} +7 -7
- package/lib/{exec-5nrAPCdO.mjs → exec-Bcan8fLb.mjs} +268 -268
- package/lib/{exec-BYbHipiC.cjs → exec-CVlcoV9u.cjs} +261 -261
- package/lib/git/index.cjs +38 -13
- package/lib/git/index.d.cts +8 -2
- package/lib/git/index.d.mts +8 -2
- package/lib/git/index.mjs +20 -2
- package/lib/github/index.cjs +33 -11
- package/lib/github/index.d.cts +8 -2
- package/lib/github/index.d.mts +8 -2
- package/lib/github/index.mjs +18 -3
- package/lib/index.cjs +13 -9
- package/lib/index.d.cts +4 -4
- package/lib/index.d.mts +5 -4
- package/lib/index.mjs +8 -5
- package/lib/{git-B2_B1F3q.cjs → isFileGitIgnored-86LsBKuU.cjs} +3 -26
- package/lib/{index-Dl0KmK1O.d.cts → isFileGitIgnored-CwPJ0v2p.d.mts} +1 -4
- package/lib/{git-QhXK6ooP.mjs → isFileGitIgnored-Dv4xauFf.mjs} +2 -20
- package/lib/{index-BqiB0-6w.d.mts → isFileGitIgnored-E4x_jWjl.d.cts} +1 -4
- package/lib/{index-BOr919w6.d.cts → md-BWCfQS9I.d.cts} +1 -4
- package/lib/{index-CW8ZTeZU.d.mts → md-BZewxkUW.d.mts} +1 -4
- package/lib/{buildkite-DQj9dGPb.mjs → md-CvXERddQ.mjs} +3 -11
- package/lib/{buildkite-Oza5ZHmO.cjs → md-fbyvRhpo.cjs} +2 -15
- package/lib/net/index.cjs +15 -3
- package/lib/net/index.d.cts +8 -2
- package/lib/net/index.d.mts +8 -2
- package/lib/net/index.mjs +8 -3
- package/lib/{index-4aCFuPgQ.d.mts → push-BTAssEjq.d.cts} +3 -6
- package/lib/{index-DfhDLrNc.d.cts → push-Bv-gtPfj.d.mts} +3 -6
- package/lib/{github-Ckgo3Sm-.cjs → push-DV2iCZE-.cjs} +14 -34
- package/lib/{github-Cm4qHDkg.mjs → push-hzuiuMpZ.mjs} +3 -18
- package/lib/{net-BELapTCw.mjs → waitFor-D1MlNL9G.mjs} +2 -7
- package/lib/{index-B8rqBqBj.d.cts → waitFor-DGgQAaUj.d.mts} +1 -4
- package/lib/{index-CZi-UcD_.d.mts → waitFor-LnjEb972.d.cts} +1 -4
- package/lib/{net-CQMRE2g5.cjs → waitFor-PklD-Jqp.cjs} +2 -12
- package/net/package.json +1 -1
- package/package.json +12 -12
package/lib/git/index.cjs
CHANGED
|
@@ -1,14 +1,39 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_error = require('../error-BEFwIvK2.cjs');
|
|
3
|
+
const require_isFileGitIgnored = require('../isFileGitIgnored-86LsBKuU.cjs');
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
//#region src/git/index.ts
|
|
6
|
+
var git_exports = /* @__PURE__ */ require_error.__exportAll({
|
|
7
|
+
commit: () => require_isFileGitIgnored.commit,
|
|
8
|
+
commitAllChanges: () => require_isFileGitIgnored.commitAllChanges,
|
|
9
|
+
currentBranch: () => require_isFileGitIgnored.currentBranch,
|
|
10
|
+
fastForwardBranch: () => require_isFileGitIgnored.fastForwardBranch,
|
|
11
|
+
findRoot: () => require_isFileGitIgnored.findRoot,
|
|
12
|
+
getChangedFiles: () => require_isFileGitIgnored.getChangedFiles,
|
|
13
|
+
getHeadCommitId: () => require_isFileGitIgnored.getHeadCommitId,
|
|
14
|
+
getHeadCommitMessage: () => require_isFileGitIgnored.getHeadCommitMessage,
|
|
15
|
+
getOwnerAndRepo: () => require_isFileGitIgnored.getOwnerAndRepo,
|
|
16
|
+
isFileGitIgnored: () => require_isFileGitIgnored.isFileGitIgnored,
|
|
17
|
+
push: () => require_isFileGitIgnored.push,
|
|
18
|
+
reset: () => require_isFileGitIgnored.reset
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
exports.commit = require_isFileGitIgnored.commit;
|
|
23
|
+
exports.commitAllChanges = require_isFileGitIgnored.commitAllChanges;
|
|
24
|
+
exports.currentBranch = require_isFileGitIgnored.currentBranch;
|
|
25
|
+
exports.fastForwardBranch = require_isFileGitIgnored.fastForwardBranch;
|
|
26
|
+
exports.findRoot = require_isFileGitIgnored.findRoot;
|
|
27
|
+
exports.getChangedFiles = require_isFileGitIgnored.getChangedFiles;
|
|
28
|
+
exports.getHeadCommitId = require_isFileGitIgnored.getHeadCommitId;
|
|
29
|
+
exports.getHeadCommitMessage = require_isFileGitIgnored.getHeadCommitMessage;
|
|
30
|
+
exports.getOwnerAndRepo = require_isFileGitIgnored.getOwnerAndRepo;
|
|
31
|
+
Object.defineProperty(exports, 'git_exports', {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () {
|
|
34
|
+
return git_exports;
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
exports.isFileGitIgnored = require_isFileGitIgnored.isFileGitIgnored;
|
|
38
|
+
exports.push = require_isFileGitIgnored.push;
|
|
39
|
+
exports.reset = require_isFileGitIgnored.reset;
|
package/lib/git/index.d.cts
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
|
|
1
|
+
import { a as getOwnerAndRepo, c as findRoot, d as ChangedFile, f as getChangedFiles, i as push, l as currentBranch, n as reset, o as getHeadCommitId, p as commit, r as fastForwardBranch, s as getHeadCommitMessage, t as isFileGitIgnored, u as commitAllChanges } from "../isFileGitIgnored-E4x_jWjl.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/git/index.d.ts
|
|
4
|
+
declare namespace index_d_exports {
|
|
5
|
+
export { ChangedFile, commit, commitAllChanges, currentBranch, fastForwardBranch, findRoot, getChangedFiles, getHeadCommitId, getHeadCommitMessage, getOwnerAndRepo, isFileGitIgnored, push, reset };
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { type ChangedFile, commit, commitAllChanges, currentBranch, fastForwardBranch, findRoot, getChangedFiles, getHeadCommitId, getHeadCommitMessage, getOwnerAndRepo, isFileGitIgnored, push, reset, index_d_exports as t };
|
package/lib/git/index.d.mts
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
|
|
1
|
+
import { a as getOwnerAndRepo, c as findRoot, d as ChangedFile, f as getChangedFiles, i as push, l as currentBranch, n as reset, o as getHeadCommitId, p as commit, r as fastForwardBranch, s as getHeadCommitMessage, t as isFileGitIgnored, u as commitAllChanges } from "../isFileGitIgnored-CwPJ0v2p.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/git/index.d.ts
|
|
4
|
+
declare namespace index_d_exports {
|
|
5
|
+
export { ChangedFile, commit, commitAllChanges, currentBranch, fastForwardBranch, findRoot, getChangedFiles, getHeadCommitId, getHeadCommitMessage, getOwnerAndRepo, isFileGitIgnored, push, reset };
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { type ChangedFile, commit, commitAllChanges, currentBranch, fastForwardBranch, findRoot, getChangedFiles, getHeadCommitId, getHeadCommitMessage, getOwnerAndRepo, isFileGitIgnored, push, reset, index_d_exports as t };
|
package/lib/git/index.mjs
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as __exportAll } from "../chunk-DoQ1iNfF.mjs";
|
|
2
|
+
import { c as getOwnerAndRepo, d as currentBranch, f as commitAllChanges, h as commit, i as push, l as getHeadCommitId, m as findRoot, n as reset, p as getChangedFiles, r as fastForwardBranch, t as isFileGitIgnored, u as getHeadCommitMessage } from "../isFileGitIgnored-Dv4xauFf.mjs";
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
//#region src/git/index.ts
|
|
5
|
+
var git_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
+
commit: () => commit,
|
|
7
|
+
commitAllChanges: () => commitAllChanges,
|
|
8
|
+
currentBranch: () => currentBranch,
|
|
9
|
+
fastForwardBranch: () => fastForwardBranch,
|
|
10
|
+
findRoot: () => findRoot,
|
|
11
|
+
getChangedFiles: () => getChangedFiles,
|
|
12
|
+
getHeadCommitId: () => getHeadCommitId,
|
|
13
|
+
getHeadCommitMessage: () => getHeadCommitMessage,
|
|
14
|
+
getOwnerAndRepo: () => getOwnerAndRepo,
|
|
15
|
+
isFileGitIgnored: () => isFileGitIgnored,
|
|
16
|
+
push: () => push,
|
|
17
|
+
reset: () => reset
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { commit, commitAllChanges, currentBranch, fastForwardBranch, findRoot, getChangedFiles, getHeadCommitId, getHeadCommitMessage, getOwnerAndRepo, isFileGitIgnored, push, reset, git_exports as t };
|
package/lib/github/index.cjs
CHANGED
|
@@ -1,12 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_error = require('../error-BEFwIvK2.cjs');
|
|
3
|
+
const require_isFileGitIgnored = require('../isFileGitIgnored-86LsBKuU.cjs');
|
|
4
|
+
const require_push = require('../push-DV2iCZE-.cjs');
|
|
3
5
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
//#region src/github/index.ts
|
|
7
|
+
var github_exports = /* @__PURE__ */ require_error.__exportAll({
|
|
8
|
+
apiTokenFromEnvironment: () => require_isFileGitIgnored.apiTokenFromEnvironment,
|
|
9
|
+
buildNameFromEnvironment: () => require_isFileGitIgnored.buildNameFromEnvironment,
|
|
10
|
+
createCheckRun: () => require_push.createCheckRun,
|
|
11
|
+
enabledFromEnvironment: () => require_isFileGitIgnored.enabledFromEnvironment,
|
|
12
|
+
getPullRequestNumber: () => require_push.getPullRequestNumber,
|
|
13
|
+
putIssueComment: () => require_push.putIssueComment,
|
|
14
|
+
readFileChanges: () => require_push.readFileChanges,
|
|
15
|
+
uploadAllFileChanges: () => require_push.uploadAllFileChanges,
|
|
16
|
+
uploadFileChanges: () => require_push.uploadFileChanges
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
exports.apiTokenFromEnvironment = require_isFileGitIgnored.apiTokenFromEnvironment;
|
|
21
|
+
exports.buildNameFromEnvironment = require_isFileGitIgnored.buildNameFromEnvironment;
|
|
22
|
+
exports.createCheckRun = require_push.createCheckRun;
|
|
23
|
+
exports.enabledFromEnvironment = require_isFileGitIgnored.enabledFromEnvironment;
|
|
24
|
+
exports.getPullRequestNumber = require_push.getPullRequestNumber;
|
|
25
|
+
Object.defineProperty(exports, 'github_exports', {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () {
|
|
28
|
+
return github_exports;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
exports.putIssueComment = require_push.putIssueComment;
|
|
32
|
+
exports.readFileChanges = require_push.readFileChanges;
|
|
33
|
+
exports.uploadAllFileChanges = require_push.uploadAllFileChanges;
|
|
34
|
+
exports.uploadFileChanges = require_push.uploadFileChanges;
|
package/lib/github/index.d.cts
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
|
|
1
|
+
import { a as getPullRequestNumber, c as enabledFromEnvironment, i as putIssueComment, l as Annotation, n as uploadAllFileChanges, o as apiTokenFromEnvironment, r as uploadFileChanges, s as buildNameFromEnvironment, t as readFileChanges, u as createCheckRun } from "../push-BTAssEjq.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/github/index.d.ts
|
|
4
|
+
declare namespace index_d_exports {
|
|
5
|
+
export { Annotation, apiTokenFromEnvironment, buildNameFromEnvironment, createCheckRun, enabledFromEnvironment, getPullRequestNumber, putIssueComment, readFileChanges, uploadAllFileChanges, uploadFileChanges };
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { type Annotation, apiTokenFromEnvironment, buildNameFromEnvironment, createCheckRun, enabledFromEnvironment, getPullRequestNumber, putIssueComment, readFileChanges, index_d_exports as t, uploadAllFileChanges, uploadFileChanges };
|
package/lib/github/index.d.mts
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
|
|
1
|
+
import { a as getPullRequestNumber, c as enabledFromEnvironment, i as putIssueComment, l as Annotation, n as uploadAllFileChanges, o as apiTokenFromEnvironment, r as uploadFileChanges, s as buildNameFromEnvironment, t as readFileChanges, u as createCheckRun } from "../push-Bv-gtPfj.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/github/index.d.ts
|
|
4
|
+
declare namespace index_d_exports {
|
|
5
|
+
export { Annotation, apiTokenFromEnvironment, buildNameFromEnvironment, createCheckRun, enabledFromEnvironment, getPullRequestNumber, putIssueComment, readFileChanges, uploadAllFileChanges, uploadFileChanges };
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { type Annotation, apiTokenFromEnvironment, buildNameFromEnvironment, createCheckRun, enabledFromEnvironment, getPullRequestNumber, putIssueComment, readFileChanges, index_d_exports as t, uploadAllFileChanges, uploadFileChanges };
|
package/lib/github/index.mjs
CHANGED
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
1
|
+
import { n as __exportAll } from "../chunk-DoQ1iNfF.mjs";
|
|
2
|
+
import { a as apiTokenFromEnvironment, o as buildNameFromEnvironment, s as enabledFromEnvironment } from "../isFileGitIgnored-Dv4xauFf.mjs";
|
|
3
|
+
import { a as getPullRequestNumber, i as putIssueComment, n as uploadAllFileChanges, o as createCheckRun, r as uploadFileChanges, t as readFileChanges } from "../push-hzuiuMpZ.mjs";
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
//#region src/github/index.ts
|
|
6
|
+
var github_exports = /* @__PURE__ */ __exportAll({
|
|
7
|
+
apiTokenFromEnvironment: () => apiTokenFromEnvironment,
|
|
8
|
+
buildNameFromEnvironment: () => buildNameFromEnvironment,
|
|
9
|
+
createCheckRun: () => createCheckRun,
|
|
10
|
+
enabledFromEnvironment: () => enabledFromEnvironment,
|
|
11
|
+
getPullRequestNumber: () => getPullRequestNumber,
|
|
12
|
+
putIssueComment: () => putIssueComment,
|
|
13
|
+
readFileChanges: () => readFileChanges,
|
|
14
|
+
uploadAllFileChanges: () => uploadAllFileChanges,
|
|
15
|
+
uploadFileChanges: () => uploadFileChanges
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { apiTokenFromEnvironment, buildNameFromEnvironment, createCheckRun, enabledFromEnvironment, getPullRequestNumber, putIssueComment, readFileChanges, github_exports as t, uploadAllFileChanges, uploadFileChanges };
|
package/lib/index.cjs
CHANGED
|
@@ -1,30 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
require('./exec-CVlcoV9u.cjs');
|
|
3
|
+
require('./md-fbyvRhpo.cjs');
|
|
4
|
+
const require_buildkite_index = require('./buildkite/index.cjs');
|
|
5
|
+
require('./isFileGitIgnored-86LsBKuU.cjs');
|
|
6
|
+
const require_git_index = require('./git/index.cjs');
|
|
7
|
+
require('./push-DV2iCZE-.cjs');
|
|
8
|
+
const require_github_index = require('./github/index.cjs');
|
|
9
|
+
const require_net_index = require('./net/index.cjs');
|
|
6
10
|
|
|
7
11
|
Object.defineProperty(exports, 'Buildkite', {
|
|
8
12
|
enumerable: true,
|
|
9
13
|
get: function () {
|
|
10
|
-
return
|
|
14
|
+
return require_buildkite_index.buildkite_exports;
|
|
11
15
|
}
|
|
12
16
|
});
|
|
13
17
|
Object.defineProperty(exports, 'Git', {
|
|
14
18
|
enumerable: true,
|
|
15
19
|
get: function () {
|
|
16
|
-
return
|
|
20
|
+
return require_git_index.git_exports;
|
|
17
21
|
}
|
|
18
22
|
});
|
|
19
23
|
Object.defineProperty(exports, 'GitHub', {
|
|
20
24
|
enumerable: true,
|
|
21
25
|
get: function () {
|
|
22
|
-
return
|
|
26
|
+
return require_github_index.github_exports;
|
|
23
27
|
}
|
|
24
28
|
});
|
|
25
29
|
Object.defineProperty(exports, 'Net', {
|
|
26
30
|
enumerable: true,
|
|
27
31
|
get: function () {
|
|
28
|
-
return
|
|
32
|
+
return require_net_index.net_exports;
|
|
29
33
|
}
|
|
30
34
|
});
|
package/lib/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as index_d_exports } from "./index
|
|
2
|
-
import { t as index_d_exports$1 } from "./index
|
|
3
|
-
import { t as index_d_exports$2 } from "./index
|
|
4
|
-
import { t as index_d_exports$3 } from "./index
|
|
1
|
+
import { t as index_d_exports } from "./buildkite/index.cjs";
|
|
2
|
+
import { t as index_d_exports$1 } from "./git/index.cjs";
|
|
3
|
+
import { t as index_d_exports$2 } from "./github/index.cjs";
|
|
4
|
+
import { t as index_d_exports$3 } from "./net/index.cjs";
|
|
5
5
|
export { index_d_exports as Buildkite, index_d_exports$1 as Git, index_d_exports$2 as GitHub, index_d_exports$3 as Net };
|
package/lib/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { t as index_d_exports } from "./index
|
|
2
|
-
import { t as index_d_exports$1 } from "./index
|
|
3
|
-
import
|
|
4
|
-
import { t as index_d_exports$
|
|
1
|
+
import { t as index_d_exports } from "./buildkite/index.mjs";
|
|
2
|
+
import { t as index_d_exports$1 } from "./git/index.mjs";
|
|
3
|
+
import "./push-Bv-gtPfj.mjs";
|
|
4
|
+
import { t as index_d_exports$2 } from "./github/index.mjs";
|
|
5
|
+
import { t as index_d_exports$3 } from "./net/index.mjs";
|
|
5
6
|
export { index_d_exports as Buildkite, index_d_exports$1 as Git, index_d_exports$2 as GitHub, index_d_exports$3 as Net };
|
package/lib/index.mjs
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import "./exec-
|
|
2
|
-
import
|
|
3
|
-
import { t as
|
|
4
|
-
import
|
|
5
|
-
import { t as
|
|
1
|
+
import "./exec-Bcan8fLb.mjs";
|
|
2
|
+
import "./md-CvXERddQ.mjs";
|
|
3
|
+
import { t as buildkite_exports } from "./buildkite/index.mjs";
|
|
4
|
+
import "./isFileGitIgnored-Dv4xauFf.mjs";
|
|
5
|
+
import { t as git_exports } from "./git/index.mjs";
|
|
6
|
+
import "./push-hzuiuMpZ.mjs";
|
|
7
|
+
import { t as github_exports } from "./github/index.mjs";
|
|
8
|
+
import { t as net_exports } from "./net/index.mjs";
|
|
6
9
|
|
|
7
10
|
export { buildkite_exports as Buildkite, git_exports as Git, github_exports as GitHub, net_exports as Net };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_error = require('./error-
|
|
1
|
+
const require_error = require('./error-BEFwIvK2.cjs');
|
|
2
2
|
let path = require("path");
|
|
3
3
|
path = require_error.__toESM(path);
|
|
4
4
|
let fs_extra = require("fs-extra");
|
|
@@ -100,10 +100,10 @@ const createIsLfsFilter = async (gitRoot) => {
|
|
|
100
100
|
/**
|
|
101
101
|
* Stages all changes and writes a commit to the local Git repository.
|
|
102
102
|
*/
|
|
103
|
-
const commitAllChanges = async ({ dir, message, author, committer, ignore
|
|
103
|
+
const commitAllChanges = async ({ dir, message, author, committer, ignore }) => {
|
|
104
104
|
const changedFiles = await getChangedFiles({
|
|
105
105
|
dir,
|
|
106
|
-
ignore
|
|
106
|
+
ignore
|
|
107
107
|
});
|
|
108
108
|
if (!changedFiles.length) return;
|
|
109
109
|
const gitRoot = await findRoot$1({ dir });
|
|
@@ -369,23 +369,6 @@ const isFileGitIgnored = ({ absolutePath, gitRoot }) => isomorphic_git.default.i
|
|
|
369
369
|
fs: fs_extra.default
|
|
370
370
|
});
|
|
371
371
|
|
|
372
|
-
//#endregion
|
|
373
|
-
//#region src/git/index.ts
|
|
374
|
-
var git_exports = /* @__PURE__ */ require_error.__exportAll({
|
|
375
|
-
commit: () => commit,
|
|
376
|
-
commitAllChanges: () => commitAllChanges,
|
|
377
|
-
currentBranch: () => currentBranch,
|
|
378
|
-
fastForwardBranch: () => fastForwardBranch,
|
|
379
|
-
findRoot: () => findRoot$1,
|
|
380
|
-
getChangedFiles: () => getChangedFiles,
|
|
381
|
-
getHeadCommitId: () => getHeadCommitId,
|
|
382
|
-
getHeadCommitMessage: () => getHeadCommitMessage,
|
|
383
|
-
getOwnerAndRepo: () => getOwnerAndRepo,
|
|
384
|
-
isFileGitIgnored: () => isFileGitIgnored,
|
|
385
|
-
push: () => push,
|
|
386
|
-
reset: () => reset
|
|
387
|
-
});
|
|
388
|
-
|
|
389
372
|
//#endregion
|
|
390
373
|
Object.defineProperty(exports, 'apiTokenFromEnvironment', {
|
|
391
374
|
enumerable: true,
|
|
@@ -459,12 +442,6 @@ Object.defineProperty(exports, 'getOwnerAndRepo', {
|
|
|
459
442
|
return getOwnerAndRepo;
|
|
460
443
|
}
|
|
461
444
|
});
|
|
462
|
-
Object.defineProperty(exports, 'git_exports', {
|
|
463
|
-
enumerable: true,
|
|
464
|
-
get: function () {
|
|
465
|
-
return git_exports;
|
|
466
|
-
}
|
|
467
|
-
});
|
|
468
445
|
Object.defineProperty(exports, 'isFileGitIgnored', {
|
|
469
446
|
enumerable: true,
|
|
470
447
|
get: function () {
|
|
@@ -271,8 +271,5 @@ declare const isFileGitIgnored: ({
|
|
|
271
271
|
absolutePath: string;
|
|
272
272
|
gitRoot: string;
|
|
273
273
|
}) => Promise<boolean>;
|
|
274
|
-
declare namespace index_d_exports {
|
|
275
|
-
export { ChangedFile, commit, commitAllChanges, currentBranch, fastForwardBranch, findRoot, getChangedFiles, getHeadCommitId, getHeadCommitMessage, getOwnerAndRepo, isFileGitIgnored, push, reset };
|
|
276
|
-
}
|
|
277
274
|
//#endregion
|
|
278
|
-
export {
|
|
275
|
+
export { getOwnerAndRepo as a, findRoot as c, ChangedFile as d, getChangedFiles as f, push as i, currentBranch as l, reset as n, getHeadCommitId as o, commit as p, fastForwardBranch as r, getHeadCommitMessage as s, isFileGitIgnored as t, commitAllChanges as u };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as isErrorWithCode } from "./error-DnkB3E6d.mjs";
|
|
1
|
+
import { t as isErrorWithCode } from "./error-DIBTmfX2.mjs";
|
|
3
2
|
import path from "path";
|
|
4
3
|
import fs from "fs-extra";
|
|
5
4
|
import git, { findRoot } from "isomorphic-git";
|
|
@@ -366,21 +365,4 @@ const isFileGitIgnored = ({ absolutePath, gitRoot }) => git.isIgnored({
|
|
|
366
365
|
});
|
|
367
366
|
|
|
368
367
|
//#endregion
|
|
369
|
-
|
|
370
|
-
var git_exports = /* @__PURE__ */ __exportAll({
|
|
371
|
-
commit: () => commit,
|
|
372
|
-
commitAllChanges: () => commitAllChanges,
|
|
373
|
-
currentBranch: () => currentBranch,
|
|
374
|
-
fastForwardBranch: () => fastForwardBranch,
|
|
375
|
-
findRoot: () => findRoot$1,
|
|
376
|
-
getChangedFiles: () => getChangedFiles,
|
|
377
|
-
getHeadCommitId: () => getHeadCommitId,
|
|
378
|
-
getHeadCommitMessage: () => getHeadCommitMessage,
|
|
379
|
-
getOwnerAndRepo: () => getOwnerAndRepo,
|
|
380
|
-
isFileGitIgnored: () => isFileGitIgnored,
|
|
381
|
-
push: () => push,
|
|
382
|
-
reset: () => reset
|
|
383
|
-
});
|
|
384
|
-
|
|
385
|
-
//#endregion
|
|
386
|
-
export { push as a, enabledFromEnvironment as c, getHeadCommitMessage as d, currentBranch as f, commit as g, findRoot$1 as h, fastForwardBranch as i, getOwnerAndRepo as l, getChangedFiles as m, isFileGitIgnored as n, apiTokenFromEnvironment as o, commitAllChanges as p, reset as r, buildNameFromEnvironment as s, git_exports as t, getHeadCommitId as u };
|
|
368
|
+
export { apiTokenFromEnvironment as a, getOwnerAndRepo as c, currentBranch as d, commitAllChanges as f, commit as h, push as i, getHeadCommitId as l, findRoot$1 as m, reset as n, buildNameFromEnvironment as o, getChangedFiles as p, fastForwardBranch as r, enabledFromEnvironment as s, isFileGitIgnored as t, getHeadCommitMessage as u };
|
|
@@ -271,8 +271,5 @@ declare const isFileGitIgnored: ({
|
|
|
271
271
|
absolutePath: string;
|
|
272
272
|
gitRoot: string;
|
|
273
273
|
}) => Promise<boolean>;
|
|
274
|
-
declare namespace index_d_exports {
|
|
275
|
-
export { ChangedFile, commit, commitAllChanges, currentBranch, fastForwardBranch, findRoot, getChangedFiles, getHeadCommitId, getHeadCommitMessage, getOwnerAndRepo, isFileGitIgnored, push, reset };
|
|
276
|
-
}
|
|
277
274
|
//#endregion
|
|
278
|
-
export {
|
|
275
|
+
export { getOwnerAndRepo as a, findRoot as c, ChangedFile as d, getChangedFiles as f, push as i, currentBranch as l, reset as n, getHeadCommitId as o, commit as p, fastForwardBranch as r, getHeadCommitMessage as s, isFileGitIgnored as t, commitAllChanges as u };
|
|
@@ -32,8 +32,5 @@ declare const annotate: (markdown: string, opts?: AnnotationOptions) => Promise<
|
|
|
32
32
|
declare const md: {
|
|
33
33
|
terminal: (code: string) => string;
|
|
34
34
|
};
|
|
35
|
-
declare namespace index_d_exports {
|
|
36
|
-
export { AnnotationStyle, annotate, md };
|
|
37
|
-
}
|
|
38
35
|
//#endregion
|
|
39
|
-
export {
|
|
36
|
+
export { AnnotationStyle as n, annotate as r, md as t };
|
|
@@ -32,8 +32,5 @@ declare const annotate: (markdown: string, opts?: AnnotationOptions) => Promise<
|
|
|
32
32
|
declare const md: {
|
|
33
33
|
terminal: (code: string) => string;
|
|
34
34
|
};
|
|
35
|
-
declare namespace index_d_exports {
|
|
36
|
-
export { AnnotationStyle, annotate, md };
|
|
37
|
-
}
|
|
38
35
|
//#endregion
|
|
39
|
-
export {
|
|
36
|
+
export { AnnotationStyle as n, annotate as r, md as t };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
import { n as
|
|
3
|
-
import { n as log } from "./error-DnkB3E6d.mjs";
|
|
1
|
+
import { n as exec, r as hasCommand } from "./exec-Bcan8fLb.mjs";
|
|
2
|
+
import { n as log } from "./error-DIBTmfX2.mjs";
|
|
4
3
|
|
|
5
4
|
//#region src/buildkite/annotate.ts
|
|
6
5
|
const isAnnotationEnabled = async () => Boolean(process.env.BUILDKITE && process.env.BUILDKITE_AGENT_ACCESS_TOKEN && process.env.BUILDKITE_JOB_ID && await hasCommand("buildkite-agent"));
|
|
@@ -39,11 +38,4 @@ const annotate = async (markdown, opts = {}) => {
|
|
|
39
38
|
const md = { terminal: (code) => `\`\`\`term\n${code.replace(/```/g, "\\`\\`\\`")}\n\`\`\`` };
|
|
40
39
|
|
|
41
40
|
//#endregion
|
|
42
|
-
|
|
43
|
-
var buildkite_exports = /* @__PURE__ */ __exportAll({
|
|
44
|
-
annotate: () => annotate,
|
|
45
|
-
md: () => md
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
//#endregion
|
|
49
|
-
export { md as n, annotate as r, buildkite_exports as t };
|
|
41
|
+
export { annotate as n, md as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_error = require('./error-
|
|
2
|
-
const require_exec = require('./exec-
|
|
1
|
+
const require_error = require('./error-BEFwIvK2.cjs');
|
|
2
|
+
const require_exec = require('./exec-CVlcoV9u.cjs');
|
|
3
3
|
|
|
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"));
|
|
@@ -37,13 +37,6 @@ const annotate = async (markdown, opts = {}) => {
|
|
|
37
37
|
*/
|
|
38
38
|
const md = { terminal: (code) => `\`\`\`term\n${code.replace(/```/g, "\\`\\`\\`")}\n\`\`\`` };
|
|
39
39
|
|
|
40
|
-
//#endregion
|
|
41
|
-
//#region src/buildkite/index.ts
|
|
42
|
-
var buildkite_exports = /* @__PURE__ */ require_error.__exportAll({
|
|
43
|
-
annotate: () => annotate,
|
|
44
|
-
md: () => md
|
|
45
|
-
});
|
|
46
|
-
|
|
47
40
|
//#endregion
|
|
48
41
|
Object.defineProperty(exports, 'annotate', {
|
|
49
42
|
enumerable: true,
|
|
@@ -51,12 +44,6 @@ Object.defineProperty(exports, 'annotate', {
|
|
|
51
44
|
return annotate;
|
|
52
45
|
}
|
|
53
46
|
});
|
|
54
|
-
Object.defineProperty(exports, 'buildkite_exports', {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function () {
|
|
57
|
-
return buildkite_exports;
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
47
|
Object.defineProperty(exports, 'md', {
|
|
61
48
|
enumerable: true,
|
|
62
49
|
get: function () {
|
package/lib/net/index.cjs
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_error = require('../error-BEFwIvK2.cjs');
|
|
3
|
+
require('../exec-CVlcoV9u.cjs');
|
|
4
|
+
const require_waitFor = require('../waitFor-PklD-Jqp.cjs');
|
|
3
5
|
|
|
4
|
-
|
|
6
|
+
//#region src/net/index.ts
|
|
7
|
+
var net_exports = /* @__PURE__ */ require_error.__exportAll({ waitFor: () => require_waitFor.waitFor });
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
Object.defineProperty(exports, 'net_exports', {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return net_exports;
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
exports.waitFor = require_waitFor.waitFor;
|
package/lib/net/index.d.cts
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { t as waitFor } from "../waitFor-LnjEb972.cjs";
|
|
2
|
+
|
|
3
|
+
//#region src/net/index.d.ts
|
|
4
|
+
declare namespace index_d_exports {
|
|
5
|
+
export { waitFor };
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { index_d_exports as t, waitFor };
|
package/lib/net/index.d.mts
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { t as waitFor } from "../waitFor-DGgQAaUj.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/net/index.d.ts
|
|
4
|
+
declare namespace index_d_exports {
|
|
5
|
+
export { waitFor };
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { index_d_exports as t, waitFor };
|
package/lib/net/index.mjs
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import
|
|
1
|
+
import { n as __exportAll } from "../chunk-DoQ1iNfF.mjs";
|
|
2
|
+
import "../exec-Bcan8fLb.mjs";
|
|
3
|
+
import { t as waitFor } from "../waitFor-D1MlNL9G.mjs";
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
//#region src/net/index.ts
|
|
6
|
+
var net_exports = /* @__PURE__ */ __exportAll({ waitFor: () => waitFor });
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
export { net_exports as t, waitFor };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { Octokit } from "@octokit/rest" with { "resolution-mode": "import" };
|
|
1
|
+
import { d as ChangedFile } from "./isFileGitIgnored-E4x_jWjl.cjs";
|
|
3
2
|
import { Endpoints } from "@octokit/types";
|
|
3
|
+
import type { Octokit } from "@octokit/rest" with { "resolution-mode": "import" };
|
|
4
4
|
|
|
5
5
|
//#region src/github/checkRun.d.ts
|
|
6
6
|
type Output = NonNullable<Endpoints['PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}']['parameters']['output']>;
|
|
@@ -252,8 +252,5 @@ declare const uploadFileChanges: ({
|
|
|
252
252
|
messageBody,
|
|
253
253
|
fileChanges
|
|
254
254
|
}: UploadFileChangesParams) => Promise<string>;
|
|
255
|
-
declare namespace index_d_exports {
|
|
256
|
-
export { Annotation, apiTokenFromEnvironment, buildNameFromEnvironment, createCheckRun, enabledFromEnvironment, getPullRequestNumber, putIssueComment, readFileChanges, uploadAllFileChanges, uploadFileChanges };
|
|
257
|
-
}
|
|
258
255
|
//#endregion
|
|
259
|
-
export {
|
|
256
|
+
export { getPullRequestNumber as a, enabledFromEnvironment as c, putIssueComment as i, Annotation as l, uploadAllFileChanges as n, apiTokenFromEnvironment as o, uploadFileChanges as r, buildNameFromEnvironment as s, readFileChanges as t, createCheckRun as u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Endpoints } from "@octokit/types";
|
|
1
|
+
import { d as ChangedFile } from "./isFileGitIgnored-CwPJ0v2p.mjs";
|
|
3
2
|
import type { Octokit } from "@octokit/rest" with { "resolution-mode": "import" };
|
|
3
|
+
import { Endpoints } from "@octokit/types";
|
|
4
4
|
|
|
5
5
|
//#region src/github/checkRun.d.ts
|
|
6
6
|
type Output = NonNullable<Endpoints['PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}']['parameters']['output']>;
|
|
@@ -252,8 +252,5 @@ declare const uploadFileChanges: ({
|
|
|
252
252
|
messageBody,
|
|
253
253
|
fileChanges
|
|
254
254
|
}: UploadFileChangesParams) => Promise<string>;
|
|
255
|
-
declare namespace index_d_exports {
|
|
256
|
-
export { Annotation, apiTokenFromEnvironment, buildNameFromEnvironment, createCheckRun, enabledFromEnvironment, getPullRequestNumber, putIssueComment, readFileChanges, uploadAllFileChanges, uploadFileChanges };
|
|
257
|
-
}
|
|
258
255
|
//#endregion
|
|
259
|
-
export {
|
|
256
|
+
export { getPullRequestNumber as a, enabledFromEnvironment as c, putIssueComment as i, Annotation as l, uploadAllFileChanges as n, apiTokenFromEnvironment as o, uploadFileChanges as r, buildNameFromEnvironment as s, readFileChanges as t, createCheckRun as u };
|