backport 6.3.0-beta-3 → 6.3.0-beta-7
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/backportRun.js +4 -1
- package/dist/entrypoint.cli.e2e.private.test.js +3 -2
- package/dist/options/ConfigOptions.d.ts +1 -0
- package/dist/options/cliArgs.d.ts +1 -0
- package/dist/options/cliArgs.js +8 -4
- package/dist/options/config/config.d.ts +1 -0
- package/dist/options/config/readConfigFile.d.ts +1 -0
- package/dist/options/options.d.ts +1 -0
- package/dist/options/options.js +42 -14
- package/dist/services/github/v4/fetchAuthorId.private.test.js +2 -2
- package/dist/services/github/v4/fetchCommits/allFetchers.private.test.js +1 -1
- package/dist/services/github/v4/fetchCommits/fetchCommitByPullNumber.private.test.js +2 -2
- package/dist/services/github/v4/fetchCommits/fetchCommitBySha.private.test.js +2 -2
- package/dist/services/github/v4/fetchCommits/fetchCommitsByAuthor.private.test.js +2 -2
- package/dist/services/github/v4/fetchCommits/fetchPullRequestBySearchQuery.private.test.js +2 -2
- package/dist/services/github/v4/fetchExistingPullRequest.private.test.js +2 -2
- package/dist/services/github/v4/fetchRemoteProjectConfig.private.test.js +2 -2
- package/dist/services/github/v4/getOptionsFromGithub/getOptionsFromGithub.d.ts +3 -0
- package/dist/services/github/v4/getOptionsFromGithub/getOptionsFromGithub.js +1 -5
- package/dist/services/github/v4/getOptionsFromGithub/getOptionsFromGithub.private.test.js +1 -1
- package/dist/services/github/v4/getRepoOwnerAndNameFromGitRemotes.private.test.js +2 -2
- package/dist/test/private/getDevAccessToken.d.ts +2 -1
- package/dist/test/private/getDevAccessToken.js +6 -19
- package/dist/utils/packageVersion.d.ts +1 -1
- package/dist/utils/packageVersion.js +1 -1
- package/package.json +3 -2
package/dist/backportRun.js
CHANGED
|
@@ -30,10 +30,14 @@ async function backportRun(processArgs, optionsFromModule = {}) {
|
|
|
30
30
|
let commits = [];
|
|
31
31
|
try {
|
|
32
32
|
options = await (0, options_1.getOptions)(processArgs, optionsFromModule);
|
|
33
|
+
logger_1.logger.info('Backporting options', options);
|
|
33
34
|
spinner.stop();
|
|
34
35
|
commits = await (0, getCommits_1.getCommits)(options);
|
|
36
|
+
logger_1.logger.info('Commits', commits);
|
|
35
37
|
const targetBranches = await (0, getTargetBranches_1.getTargetBranches)(options, commits);
|
|
38
|
+
logger_1.logger.info('Target branches', targetBranches);
|
|
36
39
|
const results = await (0, runSequentially_1.runSequentially)({ options, commits, targetBranches });
|
|
40
|
+
logger_1.logger.info('Results', results);
|
|
37
41
|
const backportResponse = {
|
|
38
42
|
status: 'success',
|
|
39
43
|
commits,
|
|
@@ -43,7 +47,6 @@ async function backportRun(processArgs, optionsFromModule = {}) {
|
|
|
43
47
|
options,
|
|
44
48
|
backportResponse,
|
|
45
49
|
});
|
|
46
|
-
logger_1.logger.info('backportResponse', backportResponse);
|
|
47
50
|
return backportResponse;
|
|
48
51
|
}
|
|
49
52
|
catch (e) {
|
|
@@ -13,8 +13,8 @@ const TIMEOUT_IN_SECONDS = 10;
|
|
|
13
13
|
jest.setTimeout(15000);
|
|
14
14
|
describe('inquirer cli', () => {
|
|
15
15
|
let devAccessToken;
|
|
16
|
-
beforeAll(
|
|
17
|
-
devAccessToken =
|
|
16
|
+
beforeAll(() => {
|
|
17
|
+
devAccessToken = (0, getDevAccessToken_1.getDevAccessToken)();
|
|
18
18
|
});
|
|
19
19
|
it('--version', async () => {
|
|
20
20
|
const res = await runBackportAsync([`--version`]);
|
|
@@ -71,6 +71,7 @@ describe('inquirer cli', () => {
|
|
|
71
71
|
--reviewer Add reviewer to the target PR [array]
|
|
72
72
|
--repoOwner Repository owner [string]
|
|
73
73
|
--repoName Repository name [string]
|
|
74
|
+
--repo Repo owner and name [string]
|
|
74
75
|
--sha, --commit Commit sha to backport [string]
|
|
75
76
|
--sourceBranch Specify a non-default branch (normally \\"master\\") to backport
|
|
76
77
|
from [string]
|
|
@@ -35,6 +35,7 @@ export declare function getOptionsFromCliArgs(processArgs: readonly string[], {
|
|
|
35
35
|
repoOwner?: string | undefined;
|
|
36
36
|
repoName?: string | undefined;
|
|
37
37
|
sourceBranch?: string | undefined;
|
|
38
|
+
username?: string | undefined;
|
|
38
39
|
dateSince?: string | undefined;
|
|
39
40
|
dateUntil?: string | undefined;
|
|
40
41
|
commitPaths?: string[] | undefined;
|
package/dist/options/cliArgs.js
CHANGED
|
@@ -47,6 +47,12 @@ function getOptionsFromCliArgs(processArgs, { exitOnError = true } = {}) {
|
|
|
47
47
|
description: 'Sets auto-merge method when using --auto-merge. Default: merge',
|
|
48
48
|
type: 'string',
|
|
49
49
|
choices: ['merge', 'rebase', 'squash'],
|
|
50
|
+
})
|
|
51
|
+
.option('author', {
|
|
52
|
+
description: 'Show commits by a specific user',
|
|
53
|
+
alias: 'author',
|
|
54
|
+
type: 'string',
|
|
55
|
+
conflicts: 'all',
|
|
50
56
|
})
|
|
51
57
|
.option('ci', {
|
|
52
58
|
description: 'Disable interactive prompts',
|
|
@@ -255,11 +261,9 @@ function getOptionsFromCliArgs(processArgs, { exitOnError = true } = {}) {
|
|
|
255
261
|
type: 'array',
|
|
256
262
|
string: true,
|
|
257
263
|
})
|
|
258
|
-
.option('
|
|
259
|
-
description: '
|
|
260
|
-
alias: 'author',
|
|
264
|
+
.option('username', {
|
|
265
|
+
description: 'User repo that branch will be pushed to. Defaults to the authenticated user',
|
|
261
266
|
type: 'string',
|
|
262
|
-
conflicts: 'all',
|
|
263
267
|
})
|
|
264
268
|
.option('verbose', {
|
|
265
269
|
description: 'Show additional debug information',
|
|
@@ -52,6 +52,7 @@ export declare function getOptionsFromConfigFiles({ optionsFromCliArgs, optionsF
|
|
|
52
52
|
targetBranchChoices?: import("../ConfigOptions").TargetBranchChoiceOrString[] | undefined;
|
|
53
53
|
targetBranches?: string[] | undefined;
|
|
54
54
|
targetPRLabels?: string[] | undefined;
|
|
55
|
+
username?: string | undefined;
|
|
55
56
|
verbose?: boolean | undefined;
|
|
56
57
|
help?: boolean | undefined;
|
|
57
58
|
version?: boolean | undefined;
|
|
@@ -35,6 +35,7 @@ export declare function withConfigMigrations({ upstream, labels, branches, ...co
|
|
|
35
35
|
repoOwner?: string | undefined;
|
|
36
36
|
repoName?: string | undefined;
|
|
37
37
|
sourceBranch?: string | undefined;
|
|
38
|
+
username?: string | undefined;
|
|
38
39
|
version?: boolean | undefined;
|
|
39
40
|
commitPaths?: string[] | undefined;
|
|
40
41
|
reviewers?: string[] | undefined;
|
|
@@ -34,6 +34,7 @@ export declare function getOptions(processArgs: string[], optionsFromModule: Con
|
|
|
34
34
|
sha?: string | undefined;
|
|
35
35
|
resetAuthor: boolean;
|
|
36
36
|
sourceBranch: string;
|
|
37
|
+
username?: string | undefined;
|
|
37
38
|
dateSince: string | null;
|
|
38
39
|
dateUntil: string | null;
|
|
39
40
|
commitPaths: string[];
|
package/dist/options/options.js
CHANGED
|
@@ -47,7 +47,7 @@ async function getOptions(processArgs, optionsFromModule) {
|
|
|
47
47
|
defaultConfigOptions,
|
|
48
48
|
});
|
|
49
49
|
// combined options from cli and config files
|
|
50
|
-
const combined =
|
|
50
|
+
const combined = getMergedOptionsFromConfigAndCli({
|
|
51
51
|
optionsFromConfigFiles,
|
|
52
52
|
optionsFromCliArgs,
|
|
53
53
|
});
|
|
@@ -61,7 +61,7 @@ async function getOptions(processArgs, optionsFromModule) {
|
|
|
61
61
|
repoName,
|
|
62
62
|
repoOwner,
|
|
63
63
|
});
|
|
64
|
-
const
|
|
64
|
+
const options = {
|
|
65
65
|
// default author
|
|
66
66
|
author: optionsFromGithub.authenticatedUsername,
|
|
67
67
|
// default values have lowest precedence
|
|
@@ -77,8 +77,8 @@ async function getOptions(processArgs, optionsFromModule) {
|
|
|
77
77
|
repoName,
|
|
78
78
|
repoOwner,
|
|
79
79
|
};
|
|
80
|
-
|
|
81
|
-
return
|
|
80
|
+
throwForRequiredOptions(options);
|
|
81
|
+
return options;
|
|
82
82
|
}
|
|
83
83
|
exports.getOptions = getOptions;
|
|
84
84
|
async function getRequiredOptions(combined) {
|
|
@@ -109,19 +109,47 @@ async function getRequiredOptions(combined) {
|
|
|
109
109
|
repoOwner: gitRemote.repoOwner,
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function throwForRequiredOptions(options) {
|
|
113
|
+
// ensure `targetBranches` or `targetBranchChoices` are given
|
|
114
|
+
if ((0, lodash_1.isEmpty)(options.targetBranches) &&
|
|
115
|
+
(0, lodash_1.isEmpty)(options.targetBranchChoices) &&
|
|
116
|
+
// this is primarily necessary on CI where `targetBranches` and `targetBranchChoices` and not given
|
|
117
|
+
(0, lodash_1.isEmpty)(options.branchLabelMapping)) {
|
|
118
|
+
throw new HandledError_1.HandledError(`Please specify a target branch: "--branch 6.1".\n\nRead more: ${PROJECT_CONFIG_DOCS_LINK}`);
|
|
119
|
+
}
|
|
120
|
+
const optionKeys = [
|
|
121
|
+
'accessToken',
|
|
122
|
+
'author',
|
|
123
|
+
'autoMergeMethod',
|
|
124
|
+
'backportBinary',
|
|
125
|
+
'configFile',
|
|
126
|
+
'dir',
|
|
127
|
+
'editor',
|
|
128
|
+
'gitHostname',
|
|
129
|
+
'githubApiBaseUrlV3',
|
|
130
|
+
'githubApiBaseUrlV4',
|
|
131
|
+
'logFilePath',
|
|
132
|
+
'prDescription',
|
|
133
|
+
'prFilter',
|
|
134
|
+
'prTitle',
|
|
135
|
+
'repoName',
|
|
136
|
+
'repoOwner',
|
|
137
|
+
'sha',
|
|
138
|
+
'sourceBranch',
|
|
139
|
+
'username',
|
|
140
|
+
];
|
|
141
|
+
// Disallow empty strings
|
|
142
|
+
optionKeys.forEach((optionName) => {
|
|
143
|
+
const option = options[optionName];
|
|
144
|
+
if (option === '') {
|
|
145
|
+
throw new HandledError_1.HandledError(`"${optionName}" cannot be empty!`);
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
function getMergedOptionsFromConfigAndCli({ optionsFromConfigFiles, optionsFromCliArgs, }) {
|
|
113
150
|
return {
|
|
114
151
|
...defaultConfigOptions,
|
|
115
152
|
...optionsFromConfigFiles,
|
|
116
153
|
...optionsFromCliArgs,
|
|
117
154
|
};
|
|
118
155
|
}
|
|
119
|
-
function requireTargetBranch(config) {
|
|
120
|
-
// ensure `targetBranches` or `targetBranchChoices` are given
|
|
121
|
-
if ((0, lodash_1.isEmpty)(config.targetBranches) &&
|
|
122
|
-
(0, lodash_1.isEmpty)(config.targetBranchChoices) &&
|
|
123
|
-
// this is primarily necessary on CI where `targetBranches` and `targetBranchChoices` and not given
|
|
124
|
-
(0, lodash_1.isEmpty)(config.branchLabelMapping)) {
|
|
125
|
-
throw new HandledError_1.HandledError(`Please specify a target branch: "--branch 6.1".\n\nRead more: ${PROJECT_CONFIG_DOCS_LINK}`);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
@@ -4,8 +4,8 @@ const getDevAccessToken_1 = require("../../../test/private/getDevAccessToken");
|
|
|
4
4
|
const fetchAuthorId_1 = require("./fetchAuthorId");
|
|
5
5
|
describe('fetchAuthorId', () => {
|
|
6
6
|
let devAccessToken;
|
|
7
|
-
beforeAll(
|
|
8
|
-
devAccessToken =
|
|
7
|
+
beforeAll(() => {
|
|
8
|
+
devAccessToken = (0, getDevAccessToken_1.getDevAccessToken)();
|
|
9
9
|
});
|
|
10
10
|
describe('author = null', () => {
|
|
11
11
|
it('returns null', async () => {
|
|
@@ -9,7 +9,7 @@ describe('allFetchers', () => {
|
|
|
9
9
|
let devAccessToken;
|
|
10
10
|
let commitByAuthor;
|
|
11
11
|
beforeEach(async () => {
|
|
12
|
-
devAccessToken =
|
|
12
|
+
devAccessToken = (0, getDevAccessToken_1.getDevAccessToken)();
|
|
13
13
|
const commitsByAuthor = await (0, fetchCommitsByAuthor_1.fetchCommitsByAuthor)({
|
|
14
14
|
accessToken: devAccessToken,
|
|
15
15
|
author: 'sqren',
|
|
@@ -28,8 +28,8 @@ const apiRequestV4Module = __importStar(require("../apiRequestV4"));
|
|
|
28
28
|
const fetchCommitByPullNumber_1 = require("./fetchCommitByPullNumber");
|
|
29
29
|
describe('fetchCommitByPullNumber', () => {
|
|
30
30
|
let devAccessToken;
|
|
31
|
-
beforeAll(
|
|
32
|
-
devAccessToken =
|
|
31
|
+
beforeAll(() => {
|
|
32
|
+
devAccessToken = (0, getDevAccessToken_1.getDevAccessToken)();
|
|
33
33
|
});
|
|
34
34
|
describe('snapshot request/response', () => {
|
|
35
35
|
let spy;
|
|
@@ -28,8 +28,8 @@ const apiRequestV4Module = __importStar(require("../apiRequestV4"));
|
|
|
28
28
|
const fetchCommitBySha_1 = require("./fetchCommitBySha");
|
|
29
29
|
describe('fetchCommitBySha', () => {
|
|
30
30
|
let devAccessToken;
|
|
31
|
-
beforeEach(
|
|
32
|
-
devAccessToken =
|
|
31
|
+
beforeEach(() => {
|
|
32
|
+
devAccessToken = (0, getDevAccessToken_1.getDevAccessToken)();
|
|
33
33
|
});
|
|
34
34
|
describe('snapshot request/response', () => {
|
|
35
35
|
let spy;
|
|
@@ -28,8 +28,8 @@ const apiRequestV4Module = __importStar(require("../apiRequestV4"));
|
|
|
28
28
|
const fetchCommitsByAuthor_1 = require("./fetchCommitsByAuthor");
|
|
29
29
|
describe('fetchCommitsByAuthor', () => {
|
|
30
30
|
let devAccessToken;
|
|
31
|
-
beforeAll(
|
|
32
|
-
devAccessToken =
|
|
31
|
+
beforeAll(() => {
|
|
32
|
+
devAccessToken = (0, getDevAccessToken_1.getDevAccessToken)();
|
|
33
33
|
});
|
|
34
34
|
describe('snapshot request/response', () => {
|
|
35
35
|
let spy;
|
|
@@ -4,8 +4,8 @@ const getDevAccessToken_1 = require("../../../../test/private/getDevAccessToken"
|
|
|
4
4
|
const fetchPullRequestBySearchQuery_1 = require("./fetchPullRequestBySearchQuery");
|
|
5
5
|
describe('fetchPullRequestBySearchQuery', () => {
|
|
6
6
|
let devAccessToken;
|
|
7
|
-
beforeAll(
|
|
8
|
-
devAccessToken =
|
|
7
|
+
beforeAll(() => {
|
|
8
|
+
devAccessToken = (0, getDevAccessToken_1.getDevAccessToken)();
|
|
9
9
|
});
|
|
10
10
|
describe('when filter does not match any PRs', () => {
|
|
11
11
|
it('throws an error', async () => {
|
|
@@ -4,8 +4,8 @@ const getDevAccessToken_1 = require("../../../test/private/getDevAccessToken");
|
|
|
4
4
|
const fetchExistingPullRequest_1 = require("./fetchExistingPullRequest");
|
|
5
5
|
describe('fetchExistingPullRequest', () => {
|
|
6
6
|
let devAccessToken;
|
|
7
|
-
beforeAll(
|
|
8
|
-
devAccessToken =
|
|
7
|
+
beforeAll(() => {
|
|
8
|
+
devAccessToken = (0, getDevAccessToken_1.getDevAccessToken)();
|
|
9
9
|
});
|
|
10
10
|
describe('when PR does not exist', () => {
|
|
11
11
|
it('returns undefined', async () => {
|
|
@@ -4,8 +4,8 @@ const getDevAccessToken_1 = require("../../../test/private/getDevAccessToken");
|
|
|
4
4
|
const fetchRemoteProjectConfig_1 = require("./fetchRemoteProjectConfig");
|
|
5
5
|
describe('fetchRemoteProjectConfig', () => {
|
|
6
6
|
let devAccessToken;
|
|
7
|
-
beforeEach(
|
|
8
|
-
devAccessToken =
|
|
7
|
+
beforeEach(() => {
|
|
8
|
+
devAccessToken = (0, getDevAccessToken_1.getDevAccessToken)();
|
|
9
9
|
});
|
|
10
10
|
it('returns the backport config from "main" branch', async () => {
|
|
11
11
|
const projectConfig = await (0, fetchRemoteProjectConfig_1.fetchRemoteProjectConfig)({
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
export declare type OptionsFromGithub = Awaited<ReturnType<typeof getOptionsFromGithub>>;
|
|
1
2
|
export declare function getOptionsFromGithub(options: {
|
|
2
3
|
accessToken: string;
|
|
3
4
|
githubApiBaseUrlV4?: string;
|
|
4
5
|
repoName: string;
|
|
5
6
|
repoOwner: string;
|
|
7
|
+
username?: string;
|
|
6
8
|
skipRemoteConfig?: boolean;
|
|
7
9
|
cwd?: string;
|
|
8
10
|
}): Promise<{
|
|
@@ -56,6 +58,7 @@ export declare function getOptionsFromGithub(options: {
|
|
|
56
58
|
targetBranchChoices?: import("../../../../options/ConfigOptions").TargetBranchChoiceOrString[] | undefined;
|
|
57
59
|
targetBranches?: string[] | undefined;
|
|
58
60
|
targetPRLabels?: string[] | undefined;
|
|
61
|
+
username?: string | undefined;
|
|
59
62
|
verbose?: boolean | undefined;
|
|
60
63
|
help?: boolean | undefined;
|
|
61
64
|
version?: boolean | undefined;
|
|
@@ -9,10 +9,6 @@ const logger_1 = require("../../../logger");
|
|
|
9
9
|
const apiRequestV4_1 = require("../apiRequestV4");
|
|
10
10
|
const throwOnInvalidAccessToken_1 = require("../throwOnInvalidAccessToken");
|
|
11
11
|
const query_1 = require("./query");
|
|
12
|
-
// fetches the default source branch for the repo (normally "master")
|
|
13
|
-
// startup checks:
|
|
14
|
-
// - verify the access token
|
|
15
|
-
// - ensure no branch named "backport" exists
|
|
16
12
|
async function getOptionsFromGithub(options) {
|
|
17
13
|
const { accessToken, githubApiBaseUrlV4, repoName, repoOwner } = options;
|
|
18
14
|
let res;
|
|
@@ -43,7 +39,7 @@ async function getOptionsFromGithub(options) {
|
|
|
43
39
|
? {}
|
|
44
40
|
: parseRemoteConfig(latestRemoteConfig);
|
|
45
41
|
return {
|
|
46
|
-
authenticatedUsername: res.viewer.login,
|
|
42
|
+
authenticatedUsername: options.username ?? res.viewer.login,
|
|
47
43
|
sourceBranch: res.repository.defaultBranchRef.name,
|
|
48
44
|
...remoteConfig,
|
|
49
45
|
historicalBranchLabelMappings: skipRemoteConfig
|
|
@@ -9,7 +9,7 @@ const getOptionsFromGithub_1 = require("./getOptionsFromGithub");
|
|
|
9
9
|
describe('getOptionsFromGithub', () => {
|
|
10
10
|
let devAccessToken;
|
|
11
11
|
beforeAll(async () => {
|
|
12
|
-
devAccessToken =
|
|
12
|
+
devAccessToken = (0, getDevAccessToken_1.getDevAccessToken)();
|
|
13
13
|
jest.spyOn(os_1.default, 'homedir').mockReturnValue('/myHomeDir');
|
|
14
14
|
});
|
|
15
15
|
describe('access token', () => {
|
|
@@ -26,8 +26,8 @@ const getRepoOwnerAndNameFromGitRemotes_1 = require("./getRepoOwnerAndNameFromGi
|
|
|
26
26
|
const sandboxPath = (0, sandbox_1.getSandboxPath)({ filename: __filename });
|
|
27
27
|
describe('fetchRemoteProjectConfig', () => {
|
|
28
28
|
let devAccessToken;
|
|
29
|
-
beforeEach(
|
|
30
|
-
devAccessToken =
|
|
29
|
+
beforeEach(() => {
|
|
30
|
+
devAccessToken = (0, getDevAccessToken_1.getDevAccessToken)();
|
|
31
31
|
});
|
|
32
32
|
describe('when the remote is a fork', () => {
|
|
33
33
|
it('retrives the original owner from github', async () => {
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import 'dotenv/config';
|
|
2
|
+
export declare function getDevAccessToken(): string;
|
|
@@ -1,25 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getDevAccessToken = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
// get accessToken from env vars
|
|
10
|
-
if (accessToken) {
|
|
11
|
-
return accessToken;
|
|
12
|
-
}
|
|
13
|
-
// get credentials from config file
|
|
14
|
-
const accessTokenFile = (0, path_1.resolve)('./src/test/private/accessToken.txt');
|
|
15
|
-
try {
|
|
16
|
-
const accessToken = await (0, promises_1.readFile)(accessTokenFile, {
|
|
17
|
-
encoding: 'utf-8',
|
|
18
|
-
});
|
|
19
|
-
return accessToken.trim();
|
|
20
|
-
}
|
|
21
|
-
catch (e) {
|
|
22
|
-
throw new Error(`Missing accessToken in "${accessTokenFile}":\n${e.message}`);
|
|
4
|
+
require("dotenv/config");
|
|
5
|
+
function getDevAccessToken() {
|
|
6
|
+
const accessToken = process.env.ACCESS_TOKEN;
|
|
7
|
+
if (!accessToken) {
|
|
8
|
+
throw new Error('Please create ".env" file containing: `ACCESS_TOKEN="ghp_very_secret"`');
|
|
23
9
|
}
|
|
10
|
+
return accessToken;
|
|
24
11
|
}
|
|
25
12
|
exports.getDevAccessToken = getDevAccessToken;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PACKAGE_VERSION = "6.3.0-beta-
|
|
1
|
+
export declare const PACKAGE_VERSION = "6.3.0-beta-6";
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"branches",
|
|
15
15
|
"branching"
|
|
16
16
|
],
|
|
17
|
-
"version": "6.3.0-beta-
|
|
17
|
+
"version": "6.3.0-beta-7",
|
|
18
18
|
"main": "./dist/entrypoint.module.js",
|
|
19
19
|
"types": "dist/entrypoint.module.d.ts",
|
|
20
20
|
"bin": {
|
|
@@ -78,7 +78,8 @@
|
|
|
78
78
|
"terminal-link": "^2.1.1",
|
|
79
79
|
"utility-types": "^3.10.0",
|
|
80
80
|
"winston": "^3.5.1",
|
|
81
|
-
"yargs": "^17.3.1"
|
|
81
|
+
"yargs": "^17.3.1",
|
|
82
|
+
"yargs-parser": "^21.0.0"
|
|
82
83
|
},
|
|
83
84
|
"devDependencies": {
|
|
84
85
|
"@types/core-js": "^2.5.5",
|