backport 5.6.5 → 6.1.1
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/README.md +166 -41
- package/dist/entrypoint.cli.js +3 -1
- package/dist/entrypoint.module.d.ts +18 -5
- package/dist/entrypoint.module.js +42 -12
- package/dist/entrypoint.module.private.test.d.ts +1 -0
- package/dist/entrypoint.module.private.test.js +34 -0
- package/dist/ink.d.ts +1 -0
- package/dist/ink.js +49 -0
- package/dist/main.d.ts +11 -6
- package/dist/main.js +40 -25
- package/dist/options/ConfigOptions.d.ts +28 -12
- package/dist/options/cliArgs.d.ts +36 -35
- package/dist/options/cliArgs.js +91 -52
- package/dist/options/cliArgs.test.js +41 -42
- package/dist/options/config/config.d.ts +34 -57
- package/dist/options/config/config.js +5 -39
- package/dist/options/config/config.test.js +11 -25
- package/dist/options/config/getOptionsFromGit.d.ts +3 -2
- package/dist/options/config/getOptionsFromGit.js +1 -3
- package/dist/options/config/globalConfig.d.ts +2 -49
- package/dist/options/config/globalConfig.js +9 -12
- package/dist/options/config/globalConfig.test.js +7 -5
- package/dist/options/config/projectConfig.d.ts +2 -49
- package/dist/options/config/projectConfig.js +2 -2
- package/dist/options/config/projectConfig.test.js +53 -16
- package/dist/options/config/readConfigFile.d.ts +43 -39
- package/dist/options/config/readConfigFile.js +30 -4
- package/dist/options/options.d.ts +57 -31
- package/dist/options/options.js +102 -10
- package/dist/options/options.test.js +263 -61
- package/dist/options/parseRequiredOptions.d.ts +19 -14
- package/dist/options/parseRequiredOptions.js +9 -15
- package/dist/options/parseRequiredOptions.test.js +30 -26
- package/dist/runSequentially.d.ts +20 -0
- package/dist/runSequentially.js +41 -0
- package/dist/runSequentially.test.d.ts +1 -0
- package/dist/runSequentially.test.js +196 -0
- package/dist/runWithOptions.js +7 -14
- package/dist/runWithOptions.test.js +140 -17
- package/dist/scripts/generate-gql.d.ts +1 -0
- package/dist/scripts/generate-gql.js +15 -0
- package/dist/scripts/postinstall.js +4 -4
- package/dist/scripts/postinstall.test.js +9 -2
- package/dist/scripts/runPostinstall.js +1 -1
- package/dist/services/HandledError.d.ts +11 -1
- package/dist/services/HandledError.js +2 -1
- package/dist/services/child-process-promisified.d.ts +1 -1
- package/dist/services/child-process-promisified.js +1 -1
- package/dist/services/env.js +5 -5
- package/dist/services/env.test.js +11 -4
- package/dist/services/fs-promisified.js +4 -4
- package/dist/services/getExpectedTarget.d.ts +9 -0
- package/dist/services/getExpectedTarget.js +77 -0
- package/dist/services/getExpectedTargetPullRequests.d.ts +9 -0
- package/dist/services/getExpectedTargetPullRequests.js +77 -0
- package/dist/services/git.d.ts +20 -6
- package/dist/services/git.integration.test.d.ts +1 -0
- package/dist/services/git.integration.test.js +168 -0
- package/dist/services/git.js +93 -67
- package/dist/services/git.test.js +68 -68
- package/dist/services/github/commitFormatters.d.ts +3 -7
- package/dist/services/github/commitFormatters.js +10 -19
- package/dist/services/github/commitFormatters.test.js +2 -24
- package/dist/services/github/v3/addAssigneesToPullRequest.d.ts +1 -1
- package/dist/services/github/v3/addAssigneesToPullRequest.js +3 -8
- package/dist/services/github/v3/addAssigneesToPullRequest.test.js +6 -8
- package/dist/services/github/v3/addLabelsToPullRequest.d.ts +1 -1
- package/dist/services/github/v3/addLabelsToPullRequest.js +2 -6
- package/dist/services/github/v3/addReviewersToPullRequest.d.ts +2 -0
- package/dist/services/github/v3/addReviewersToPullRequest.js +34 -0
- package/dist/services/github/v3/createPullRequest.d.ts +3 -2
- package/dist/services/github/v3/createPullRequest.js +31 -29
- package/dist/services/github/v3/createPullRequest.test.d.ts +1 -0
- package/dist/services/github/v3/createPullRequest.test.js +110 -0
- package/dist/services/github/v3/createStatusComment.d.ts +11 -0
- package/dist/services/github/v3/createStatusComment.js +97 -0
- package/dist/services/github/v3/createStatusComment.test.d.ts +1 -0
- package/dist/services/github/v3/createStatusComment.test.js +209 -0
- package/dist/services/github/v4/FetchPullRequestId.d.ts +9 -0
- package/dist/services/github/v4/FetchPullRequestId.js +32 -0
- package/dist/services/github/v4/apiRequestV4.d.ts +2 -2
- package/dist/services/github/v4/apiRequestV4.js +8 -10
- package/dist/services/github/v4/apiRequestV4.test.js +7 -7
- package/dist/services/github/v4/disablePullRequestAutoMerge.d.ts +1 -8
- package/dist/services/github/v4/disablePullRequestAutoMerge.js +6 -32
- package/dist/services/github/v4/enablePullRequestAutoMerge.d.ts +1 -8
- package/dist/services/github/v4/enablePullRequestAutoMerge.js +31 -40
- package/dist/services/github/v4/enablePullRequestAutoMerge.private.test.d.ts +1 -0
- package/dist/services/github/v4/enablePullRequestAutoMerge.private.test.js +112 -0
- package/dist/services/github/v4/fetchAuthorId.d.ts +5 -2
- package/dist/services/github/v4/fetchAuthorId.js +6 -7
- package/dist/services/github/v4/fetchAuthorId.private.test.js +6 -9
- package/dist/services/github/v4/fetchCommitByPullNumber.js +11 -9
- package/dist/services/github/v4/fetchCommitByPullNumber.private.test.js +4 -4
- package/dist/services/github/v4/fetchCommitBySha.js +14 -12
- package/dist/services/github/v4/fetchCommitBySha.private.test.js +4 -4
- package/dist/services/github/v4/fetchCommits/fetchCommitByPullNumber.d.ts +12 -0
- package/dist/services/github/v4/fetchCommits/fetchCommitByPullNumber.js +46 -0
- package/dist/services/github/v4/fetchCommits/fetchCommitByPullNumber.private.test.d.ts +1 -0
- package/dist/services/github/v4/fetchCommits/fetchCommitByPullNumber.private.test.js +70 -0
- package/dist/services/github/v4/fetchCommits/fetchCommitBySha.d.ts +12 -0
- package/dist/services/github/v4/fetchCommits/fetchCommitBySha.js +36 -0
- package/dist/services/github/v4/fetchCommits/fetchCommitBySha.private.test.d.ts +1 -0
- package/dist/services/github/v4/fetchCommits/fetchCommitBySha.private.test.js +55 -0
- package/dist/services/github/v4/fetchCommits/fetchCommitsByAuthor.d.ts +27 -0
- package/dist/services/github/v4/fetchCommits/fetchCommitsByAuthor.js +88 -0
- package/dist/services/github/v4/fetchCommits/fetchCommitsByAuthor.private.test.d.ts +1 -0
- package/dist/services/github/v4/fetchCommits/fetchCommitsByAuthor.private.test.js +128 -0
- package/dist/services/github/v4/fetchCommits/fetchCommitsByAuthor.test.d.ts +1 -0
- package/dist/services/github/v4/fetchCommits/fetchCommitsByAuthor.test.js +125 -0
- package/dist/services/github/v4/fetchCommits/fetchCommitsInDateRange.d.ts +28 -0
- package/dist/services/github/v4/fetchCommits/fetchCommitsInDateRange.js +52 -0
- package/dist/services/github/v4/fetchCommits/fetchProjectConfig.d.ts +3 -0
- package/dist/services/github/v4/fetchCommits/fetchProjectConfig.js +55 -0
- package/dist/services/github/v4/fetchCommits/fetchPullRequestBySearchQuery.d.ts +10 -0
- package/dist/services/github/v4/fetchCommits/fetchPullRequestBySearchQuery.js +49 -0
- package/dist/services/github/v4/fetchCommits/fetchPullRequestBySearchQuery.private.test.d.ts +1 -0
- package/dist/services/github/v4/fetchCommits/fetchPullRequestBySearchQuery.private.test.js +77 -0
- package/dist/services/github/v4/fetchCommits/fetchPullRequestBySearchQuery.test.d.ts +1 -0
- package/dist/services/github/v4/fetchCommits/fetchPullRequestBySearchQuery.test.js +252 -0
- package/dist/services/github/v4/fetchCommitsByAuthor.d.ts +2 -1
- package/dist/services/github/v4/fetchCommitsByAuthor.js +81 -70
- package/dist/services/github/v4/fetchCommitsByAuthor.private.test.js +78 -5
- package/dist/services/github/v4/fetchCommitsByAuthor.test.js +29 -21
- package/dist/services/github/v4/fetchDefaultBranch.js +1 -1
- package/dist/services/github/v4/fetchExistingPullRequest.js +2 -3
- package/dist/services/github/v4/fetchExistingPullRequest.private.test.js +3 -5
- package/dist/services/github/v4/fetchMergedPullRequests.d.ts +18 -19
- package/dist/services/github/v4/fetchMergedPullRequests.js +22 -69
- package/dist/services/github/v4/fetchMergedPullRequests.private.test.js +8 -9
- package/dist/services/github/v4/fetchProjectConfig.d.ts +8 -0
- package/dist/services/github/v4/fetchProjectConfig.js +56 -0
- package/dist/services/github/v4/fetchProjectConfig.private.test.d.ts +1 -0
- package/dist/services/github/v4/fetchProjectConfig.private.test.js +52 -0
- package/dist/services/github/v4/fetchProjectConfig.test.d.ts +1 -0
- package/dist/services/github/v4/fetchProjectConfig.test.js +37 -0
- package/dist/services/github/v4/fetchPullRequestAutoMergeMethod.d.ts +11 -0
- package/dist/services/github/v4/fetchPullRequestAutoMergeMethod.js +35 -0
- package/dist/services/github/v4/fetchPullRequestBySearchQuery.js +12 -10
- package/dist/services/github/v4/fetchPullRequestBySearchQuery.private.test.js +3 -3
- package/dist/services/github/v4/fetchPullRequestBySearchQuery.test.js +2 -2
- package/dist/services/github/v4/getExistingTargetPullRequests.d.ts +4 -58
- package/dist/services/github/v4/getExistingTargetPullRequests.js +3 -58
- package/dist/services/github/v4/getOptionsFromGithub/getOptionsFromGithub.d.ts +66 -0
- package/dist/services/github/v4/getOptionsFromGithub/getOptionsFromGithub.js +130 -0
- package/dist/services/github/v4/getOptionsFromGithub/getOptionsFromGithub.private.test.d.ts +1 -0
- package/dist/services/github/v4/getOptionsFromGithub/getOptionsFromGithub.private.test.js +130 -0
- package/dist/services/github/v4/getOptionsFromGithub/index.d.ts +19 -9
- package/dist/services/github/v4/getOptionsFromGithub/index.js +59 -19
- package/dist/services/github/v4/getOptionsFromGithub/index.private.test.js +119 -32
- package/dist/services/github/v4/getOptionsFromGithub/query.d.ts +16 -16
- package/dist/services/github/v4/getOptionsFromGithub/query.js +16 -15
- package/dist/services/github/v4/getTargetBranchesFromLabels.d.ts +0 -7
- package/dist/services/github/v4/getTargetBranchesFromLabels.js +1 -26
- package/dist/services/github/v4/getTargetBranchesFromLabels.test.js +69 -32
- package/dist/services/github/v4/mocks/commitsByAuthorMock.d.ts +2 -2
- package/dist/services/github/v4/mocks/commitsByAuthorMock.js +39 -25
- package/dist/services/github/v4/mocks/fetchPullRequestBySearchQueryMock.d.ts +1 -1
- package/dist/services/github/v4/mocks/fetchPullRequestBySearchQueryMock.js +10 -0
- package/dist/services/github/v4/mocks/getCommitsByAuthorMock.d.ts +1 -1
- package/dist/services/github/v4/mocks/getCommitsByAuthorMock.js +2 -0
- package/dist/services/github/v4/mocks/getPullRequestNodeMock.d.ts +1 -1
- package/dist/services/github/v4/mocks/getPullRequestNodeMock.js +1 -0
- package/dist/services/github/v4/throwOnInvalidAccessToken.d.ts +1 -1
- package/dist/services/github/v4/throwOnInvalidAccessToken.js +10 -15
- package/dist/services/github/v4/throwOnInvalidAccessToken.test.js +7 -7
- package/dist/services/logger.d.ts +3 -3
- package/dist/services/logger.js +16 -15
- package/dist/services/prompt.test.d.ts +1 -0
- package/dist/services/prompt.test.js +87 -0
- package/dist/services/prompts.d.ts +10 -4
- package/dist/services/prompts.js +85 -22
- package/dist/services/sourceCommit/getExpectedTargetPullRequests.d.ts +9 -0
- package/dist/services/sourceCommit/getExpectedTargetPullRequests.js +92 -0
- package/dist/services/sourceCommit/getExpectedTargetPullRequests.test.d.ts +1 -0
- package/dist/services/sourceCommit/getExpectedTargetPullRequests.test.js +413 -0
- package/dist/services/sourceCommit/getMockSourceCommit.d.ts +21 -0
- package/dist/services/sourceCommit/getMockSourceCommit.js +67 -0
- package/dist/services/sourceCommit/getTargetBranchesFromLabels.d.ts +5 -0
- package/dist/services/sourceCommit/getTargetBranchesFromLabels.js +20 -0
- package/dist/services/sourceCommit/getTargetBranchesFromLabels.test.d.ts +1 -0
- package/dist/services/sourceCommit/getTargetBranchesFromLabels.test.js +201 -0
- package/dist/services/sourceCommit/parseSourceCommit.d.ts +82 -0
- package/dist/services/sourceCommit/parseSourceCommit.js +96 -0
- package/dist/services/sourceCommit/parseSourceCommit.test.d.ts +1 -0
- package/dist/services/sourceCommit/parseSourceCommit.test.js +229 -0
- package/dist/services/sourceCommit/sourceCommit.d.ts +78 -0
- package/dist/services/sourceCommit/sourceCommit.js +86 -0
- package/dist/services/sourceCommit/sourceCommit.test.d.ts +1 -0
- package/dist/services/sourceCommit/sourceCommit.test.js +287 -0
- package/dist/services/sourceCommit.d.ts +78 -0
- package/dist/services/sourceCommit.js +86 -0
- package/dist/services/sourceCommit.test.d.ts +1 -0
- package/dist/services/sourceCommit.test.js +280 -0
- package/dist/test/inquirer.private.test.js +64 -49
- package/dist/test/integration/createSpies.js +6 -6
- package/dist/test/integration/envConstants.js +5 -6
- package/dist/test/integration/helpers.js +1 -1
- package/dist/test/integration/integration.private.test.d.ts +1 -0
- package/dist/test/integration/integration.private.test.js +327 -0
- package/dist/test/integration/integration.test.js +28 -29
- package/dist/test/mockConfigFiles.d.ts +5 -0
- package/dist/test/mockConfigFiles.js +37 -0
- package/dist/test/nockHelpers.d.ts +1 -1
- package/dist/test/nockHelpers.js +7 -11
- package/dist/test/private/getDevAccessToken.js +1 -1
- package/dist/test/setupFiles/automatic-mocks.d.ts +0 -1
- package/dist/test/setupFiles/automatic-mocks.js +1 -51
- package/dist/types/Commit.d.ts +85 -0
- package/dist/types/Commit.js +139 -0
- package/dist/types/commitNode.d.ts +89 -0
- package/dist/types/commitNode.js +139 -0
- package/dist/types/commitNode.test.d.ts +1 -0
- package/dist/types/commitNode.test.js +255 -0
- package/dist/types/commitWithAssociatedPullRequests.d.ts +86 -0
- package/dist/types/commitWithAssociatedPullRequests.js +145 -0
- package/dist/ui/cherrypickAndCreatePullRequest.test.js +346 -76
- package/dist/ui/cherrypickAndCreateTargetPullRequest.d.ts +11 -1
- package/dist/ui/cherrypickAndCreateTargetPullRequest.js +138 -67
- package/dist/ui/cherrypickAndCreateTargetPullRequest.test.d.ts +1 -0
- package/dist/ui/cherrypickAndCreateTargetPullRequest.test.js +468 -0
- package/dist/ui/getCommits.d.ts +1 -1
- package/dist/ui/getCommits.js +55 -25
- package/dist/ui/getTargetBranches.d.ts +3 -2
- package/dist/ui/getTargetBranches.js +33 -18
- package/dist/ui/getTargetBranches.test.js +75 -99
- package/dist/ui/getTargetBranchesFromLabels.d.ts +6 -0
- package/dist/ui/getTargetBranchesFromLabels.js +40 -0
- package/dist/ui/getTargetBranchesFromLabels.test.d.ts +1 -0
- package/dist/ui/getTargetBranchesFromLabels.test.js +288 -0
- package/dist/ui/maybeSetupRepo.js +11 -10
- package/dist/ui/maybeSetupRepo.test.js +54 -4
- package/dist/utils/excludeUndefined.d.ts +6 -0
- package/dist/utils/excludeUndefined.js +7 -0
- package/dist/utils/excludeUndefined.test.d.ts +1 -0
- package/dist/utils/excludeUndefined.test.js +24 -0
- package/package.json +37 -51
- package/yarn.lock +2414 -2993
|
@@ -2,39 +2,40 @@ export declare type OptionsFromCliArgs = ReturnType<typeof getOptionsFromCliArgs
|
|
|
2
2
|
export declare function getOptionsFromCliArgs(argv: readonly string[], { exitOnError }?: {
|
|
3
3
|
exitOnError?: boolean;
|
|
4
4
|
}): {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
editor
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
5
|
+
fork?: boolean | undefined;
|
|
6
|
+
verbose?: boolean | undefined;
|
|
7
|
+
accessToken?: string | undefined;
|
|
8
|
+
assignees?: string[] | undefined;
|
|
9
|
+
author?: string | null | undefined;
|
|
10
|
+
autoAssign?: boolean | undefined;
|
|
11
|
+
autoMerge?: boolean | undefined;
|
|
12
|
+
autoMergeMethod?: string | undefined;
|
|
13
|
+
cherrypickRef?: boolean | undefined;
|
|
14
|
+
ci?: boolean | undefined;
|
|
15
|
+
commitPaths?: string[] | undefined;
|
|
16
|
+
details?: boolean | undefined;
|
|
17
|
+
editor?: string | undefined;
|
|
18
|
+
gitHostname?: string | undefined;
|
|
19
|
+
githubApiBaseUrlV3?: string | undefined;
|
|
20
|
+
githubApiBaseUrlV4?: string | undefined;
|
|
21
|
+
maxNumber?: number | undefined;
|
|
22
|
+
multipleBranches?: boolean | undefined;
|
|
23
|
+
multipleCommits?: boolean | undefined;
|
|
24
|
+
noVerify?: boolean | undefined;
|
|
25
|
+
prDescription?: string | undefined;
|
|
26
|
+
prFilter?: string | undefined;
|
|
27
|
+
prTitle?: string | undefined;
|
|
28
|
+
pullNumber?: number | undefined;
|
|
29
|
+
repoName?: string | undefined;
|
|
30
|
+
repoOwner?: string | undefined;
|
|
31
|
+
resetAuthor?: boolean | undefined;
|
|
32
|
+
reviewers?: string[] | undefined;
|
|
33
|
+
sha?: string | undefined;
|
|
34
|
+
skipRemoteConfig?: boolean | undefined;
|
|
35
|
+
sourceBranch?: string | undefined;
|
|
36
|
+
sourcePRLabels?: string[] | undefined;
|
|
37
|
+
targetBranchChoices?: string[] | undefined;
|
|
38
|
+
targetBranches?: string[] | undefined;
|
|
39
|
+
targetPRLabels?: string[] | undefined;
|
|
40
|
+
mainline?: number | undefined;
|
|
40
41
|
};
|
package/dist/options/cliArgs.js
CHANGED
|
@@ -5,8 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.getOptionsFromCliArgs = void 0;
|
|
7
7
|
const yargs_1 = __importDefault(require("yargs"));
|
|
8
|
+
const excludeUndefined_1 = require("../utils/excludeUndefined");
|
|
8
9
|
function getOptionsFromCliArgs(argv, { exitOnError = true } = {}) {
|
|
9
|
-
const yargsInstance = yargs_1.default(argv)
|
|
10
|
+
const yargsInstance = (0, yargs_1.default)(argv)
|
|
10
11
|
.parserConfiguration({
|
|
11
12
|
'strip-dashed': true,
|
|
12
13
|
'strip-aliased': true,
|
|
@@ -24,14 +25,11 @@ function getOptionsFromCliArgs(argv, { exitOnError = true } = {}) {
|
|
|
24
25
|
description: 'List all commits',
|
|
25
26
|
alias: 'a',
|
|
26
27
|
type: 'boolean',
|
|
28
|
+
conflicts: 'author',
|
|
27
29
|
})
|
|
28
|
-
.option('
|
|
29
|
-
description: 'Show commits by specific author',
|
|
30
|
-
type: 'string',
|
|
31
|
-
})
|
|
32
|
-
.option('assignees', {
|
|
30
|
+
.option('assignee', {
|
|
33
31
|
description: 'Add assignees to the target pull request',
|
|
34
|
-
alias:
|
|
32
|
+
alias: 'assign',
|
|
35
33
|
type: 'array',
|
|
36
34
|
string: true,
|
|
37
35
|
conflicts: ['autoAssign'],
|
|
@@ -54,22 +52,28 @@ function getOptionsFromCliArgs(argv, { exitOnError = true } = {}) {
|
|
|
54
52
|
description: 'Disable interactive prompts',
|
|
55
53
|
type: 'boolean',
|
|
56
54
|
})
|
|
57
|
-
.option('
|
|
58
|
-
description: '
|
|
55
|
+
.option('cherrypickRef', {
|
|
56
|
+
description: 'Append commit message with "(cherry picked from commit...)',
|
|
57
|
+
type: 'boolean',
|
|
58
|
+
conflicts: ['noCherrypickRef'],
|
|
59
|
+
})
|
|
60
|
+
.option('details', {
|
|
61
|
+
description: 'Show details about each commit',
|
|
59
62
|
type: 'boolean',
|
|
60
63
|
})
|
|
61
64
|
.option('editor', {
|
|
62
65
|
description: 'Editor to be opened during conflict resolution',
|
|
63
66
|
type: 'string',
|
|
64
67
|
})
|
|
65
|
-
.option('
|
|
68
|
+
.option('skipRemoteConfig', {
|
|
66
69
|
description: 'Use local .backportrc.json config instead of loading from Github',
|
|
67
70
|
type: 'boolean',
|
|
68
71
|
})
|
|
69
|
-
// push target branch to {
|
|
72
|
+
// push target branch to {authenticatedUsername}/{repoName}
|
|
70
73
|
.option('fork', {
|
|
71
74
|
description: 'Create backports in fork or origin repo',
|
|
72
75
|
type: 'boolean',
|
|
76
|
+
conflicts: ['noFork'],
|
|
73
77
|
})
|
|
74
78
|
.option('gitHostname', {
|
|
75
79
|
hidden: true,
|
|
@@ -90,9 +94,10 @@ function getOptionsFromCliArgs(argv, { exitOnError = true } = {}) {
|
|
|
90
94
|
description: 'Parent id of merge commit. Defaults to 1 when supplied without arguments',
|
|
91
95
|
type: 'number',
|
|
92
96
|
coerce: (mainline) => {
|
|
93
|
-
// `--mainline` (default to 1 when no parent is given)
|
|
94
97
|
if (mainline === undefined) {
|
|
95
|
-
return 1
|
|
98
|
+
// return 1 if `--mainline` is given without a value
|
|
99
|
+
// return undefined if --mainline is not supplied at all
|
|
100
|
+
return argv.includes('--mainline') ? 1 : undefined;
|
|
96
101
|
}
|
|
97
102
|
// use specified mainline parent
|
|
98
103
|
if (Number.isInteger(mainline)) {
|
|
@@ -125,25 +130,36 @@ function getOptionsFromCliArgs(argv, { exitOnError = true } = {}) {
|
|
|
125
130
|
description: 'Backport multiple commits',
|
|
126
131
|
type: 'boolean',
|
|
127
132
|
conflicts: ['multiple'],
|
|
133
|
+
})
|
|
134
|
+
.option('noCherrypickRef', {
|
|
135
|
+
description: 'Do not append commit message with "(cherry picked from commit...)"',
|
|
136
|
+
type: 'boolean',
|
|
137
|
+
conflicts: ['cherrypickRef'],
|
|
128
138
|
})
|
|
129
139
|
.option('noVerify', {
|
|
130
|
-
description: '
|
|
140
|
+
description: 'Bypass the pre-commit and commit-msg hooks',
|
|
141
|
+
type: 'boolean',
|
|
142
|
+
})
|
|
143
|
+
.option('noFork', {
|
|
144
|
+
description: 'Create backports in the origin repo',
|
|
131
145
|
type: 'boolean',
|
|
146
|
+
conflicts: ['fork'],
|
|
132
147
|
})
|
|
133
148
|
.option('path', {
|
|
134
149
|
description: 'Only list commits touching files under the specified path',
|
|
135
150
|
alias: 'p',
|
|
151
|
+
type: 'array',
|
|
152
|
+
string: true,
|
|
153
|
+
})
|
|
154
|
+
.option('prDescription', {
|
|
155
|
+
description: 'Description to be added to pull request',
|
|
156
|
+
alias: 'description',
|
|
136
157
|
type: 'string',
|
|
137
158
|
})
|
|
138
159
|
.option('prTitle', {
|
|
139
160
|
description: 'Title of pull request',
|
|
140
161
|
alias: 'title',
|
|
141
162
|
type: 'string',
|
|
142
|
-
})
|
|
143
|
-
.option('prDescription', {
|
|
144
|
-
description: 'Description to be added to pull request',
|
|
145
|
-
alias: 'description',
|
|
146
|
-
type: 'string',
|
|
147
163
|
})
|
|
148
164
|
.option('prFilter', {
|
|
149
165
|
conflicts: ['pullNumber', 'sha'],
|
|
@@ -159,6 +175,19 @@ function getOptionsFromCliArgs(argv, { exitOnError = true } = {}) {
|
|
|
159
175
|
.option('resetAuthor', {
|
|
160
176
|
description: 'Set yourself as commit author',
|
|
161
177
|
type: 'boolean',
|
|
178
|
+
})
|
|
179
|
+
.option('reviewer', {
|
|
180
|
+
description: 'Add reviewer to the target PR',
|
|
181
|
+
type: 'array',
|
|
182
|
+
string: true,
|
|
183
|
+
})
|
|
184
|
+
.option('repoOwner', {
|
|
185
|
+
description: 'Repository owner',
|
|
186
|
+
type: 'string',
|
|
187
|
+
})
|
|
188
|
+
.option('repoName', {
|
|
189
|
+
description: 'Repository name',
|
|
190
|
+
type: 'string',
|
|
162
191
|
})
|
|
163
192
|
.option('sha', {
|
|
164
193
|
conflicts: ['pullNumber', 'prFilter'],
|
|
@@ -170,47 +199,43 @@ function getOptionsFromCliArgs(argv, { exitOnError = true } = {}) {
|
|
|
170
199
|
description: `Specify a non-default branch (normally "master") to backport from`,
|
|
171
200
|
type: 'string',
|
|
172
201
|
})
|
|
173
|
-
.option('
|
|
202
|
+
.option('sourcePRLabel', {
|
|
174
203
|
description: 'Add labels to the source (original) PR',
|
|
175
|
-
alias:
|
|
204
|
+
alias: 'sourcePrLabel',
|
|
176
205
|
type: 'array',
|
|
177
206
|
string: true,
|
|
178
207
|
})
|
|
179
|
-
.option('
|
|
208
|
+
.option('targetBranch', {
|
|
180
209
|
description: 'Branch(es) to backport to',
|
|
181
|
-
alias: ['
|
|
210
|
+
alias: ['branch', 'b'],
|
|
182
211
|
type: 'array',
|
|
183
|
-
string: true,
|
|
212
|
+
string: true, // ensure `6.0` is not coerced to `6`
|
|
184
213
|
})
|
|
185
|
-
.option('
|
|
214
|
+
.option('targetBranchChoice', {
|
|
186
215
|
description: 'List branches to backport to',
|
|
187
|
-
alias: 'targetBranchChoice',
|
|
188
216
|
type: 'array',
|
|
189
217
|
string: true,
|
|
190
218
|
})
|
|
191
|
-
.option('
|
|
219
|
+
.option('targetPRLabel', {
|
|
192
220
|
description: 'Add labels to the target (backport) PR',
|
|
193
|
-
alias: ['
|
|
221
|
+
alias: ['label', 'l'],
|
|
194
222
|
type: 'array',
|
|
195
223
|
string: true,
|
|
196
224
|
})
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
type: 'boolean',
|
|
201
|
-
})
|
|
202
|
-
.option('upstream', {
|
|
203
|
-
description: 'Name of repository',
|
|
204
|
-
alias: 'up',
|
|
205
|
-
type: 'string',
|
|
206
|
-
})
|
|
207
|
-
.option('username', {
|
|
208
|
-
description: 'Github username',
|
|
225
|
+
.option('author', {
|
|
226
|
+
description: 'Show commits by a specific user',
|
|
227
|
+
alias: 'author',
|
|
209
228
|
type: 'string',
|
|
229
|
+
conflicts: 'all',
|
|
210
230
|
})
|
|
211
231
|
.option('verbose', {
|
|
212
232
|
description: 'Show additional debug information',
|
|
213
233
|
type: 'boolean',
|
|
234
|
+
})
|
|
235
|
+
// cli-only
|
|
236
|
+
.option('verify', {
|
|
237
|
+
description: `Opposite of no-verify`,
|
|
238
|
+
type: 'boolean',
|
|
214
239
|
})
|
|
215
240
|
.alias('version', 'v')
|
|
216
241
|
.alias('version', 'V')
|
|
@@ -227,19 +252,33 @@ function getOptionsFromCliArgs(argv, { exitOnError = true } = {}) {
|
|
|
227
252
|
throw new Error(msg);
|
|
228
253
|
});
|
|
229
254
|
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
255
|
+
const {
|
|
256
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
257
|
+
$0, _,
|
|
258
|
+
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
259
|
+
multiple, multipleBranches, multipleCommits, all, author,
|
|
260
|
+
// negations
|
|
261
|
+
verify, noVerify, noCherrypickRef, noFork,
|
|
262
|
+
// array types (should be renamed to plural form)
|
|
263
|
+
assignee, path, reviewer, sourcePRLabel, targetBranch, targetBranchChoice, targetPRLabel, ...restOptions } = yargsInstance.parseSync();
|
|
264
|
+
return (0, excludeUndefined_1.excludeUndefined)({
|
|
265
|
+
...restOptions,
|
|
266
|
+
author: all ? null : author,
|
|
234
267
|
// `multiple` is a cli-only flag to override `multipleBranches` and `multipleCommits`
|
|
235
|
-
multipleBranches: multiple
|
|
236
|
-
multipleCommits: multiple
|
|
237
|
-
//
|
|
238
|
-
|
|
268
|
+
multipleBranches: multiple ?? multipleBranches,
|
|
269
|
+
multipleCommits: multiple ?? multipleCommits,
|
|
270
|
+
// rename array types to plural
|
|
271
|
+
assignees: assignee,
|
|
272
|
+
commitPaths: path,
|
|
273
|
+
reviewers: reviewer,
|
|
274
|
+
sourcePRLabels: sourcePRLabel,
|
|
275
|
+
targetBranchChoices: targetBranchChoice,
|
|
276
|
+
targetBranches: targetBranch,
|
|
277
|
+
targetPRLabels: targetPRLabel,
|
|
278
|
+
// negations (cli-only flags)
|
|
279
|
+
cherrypickRef: noCherrypickRef === true ? false : restOptions.cherrypickRef,
|
|
280
|
+
fork: noFork === true ? false : restOptions.fork,
|
|
281
|
+
noVerify: verify ?? noVerify,
|
|
239
282
|
});
|
|
240
283
|
}
|
|
241
284
|
exports.getOptionsFromCliArgs = getOptionsFromCliArgs;
|
|
242
|
-
function excludeUndefined(obj) {
|
|
243
|
-
Object.keys(obj).forEach((key) => obj[key] === undefined && delete obj[key]);
|
|
244
|
-
return obj;
|
|
245
|
-
}
|
|
@@ -10,7 +10,7 @@ describe('getOptionsFromCliArgs', () => {
|
|
|
10
10
|
'--githubApiBaseUrlV3',
|
|
11
11
|
'my api hostname',
|
|
12
12
|
];
|
|
13
|
-
const res = cliArgs_1.getOptionsFromCliArgs(argv);
|
|
13
|
+
const res = (0, cliArgs_1.getOptionsFromCliArgs)(argv);
|
|
14
14
|
expect(res.accessToken).toEqual('my access token');
|
|
15
15
|
expect('access-token' in res).toEqual(false);
|
|
16
16
|
expect(res.githubApiBaseUrlV3).toEqual('my api hostname');
|
|
@@ -20,16 +20,23 @@ describe('getOptionsFromCliArgs', () => {
|
|
|
20
20
|
const argv = [
|
|
21
21
|
'--access-token',
|
|
22
22
|
'my access token',
|
|
23
|
-
'--
|
|
23
|
+
'--author',
|
|
24
24
|
'sqren',
|
|
25
|
-
'--
|
|
26
|
-
'elastic
|
|
25
|
+
'--repo-owner',
|
|
26
|
+
'elastic',
|
|
27
|
+
'--repo-name',
|
|
28
|
+
'kibana',
|
|
27
29
|
];
|
|
28
|
-
const res = cliArgs_1.getOptionsFromCliArgs(argv);
|
|
30
|
+
const res = (0, cliArgs_1.getOptionsFromCliArgs)(argv);
|
|
29
31
|
expect(res).toEqual({
|
|
30
32
|
accessToken: 'my access token',
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
repoOwner: 'elastic',
|
|
34
|
+
repoName: 'kibana',
|
|
35
|
+
author: 'sqren',
|
|
36
|
+
mainline: 1,
|
|
37
|
+
reviewers: [],
|
|
38
|
+
assignees: [],
|
|
39
|
+
commitPaths: [],
|
|
33
40
|
});
|
|
34
41
|
});
|
|
35
42
|
});
|
|
@@ -46,114 +53,106 @@ describe('getOptionsFromCliArgs', () => {
|
|
|
46
53
|
describe('sourcePRLabels', () => {
|
|
47
54
|
it('should handle all variations', () => {
|
|
48
55
|
const argv = [
|
|
49
|
-
'--sourcePRLabels',
|
|
50
|
-
'label a',
|
|
51
|
-
'--sourcePrLabels',
|
|
52
|
-
'label b',
|
|
53
|
-
'--source-pr-labels',
|
|
54
|
-
'label c',
|
|
55
56
|
'--sourcePRLabel',
|
|
56
|
-
'label d',
|
|
57
|
-
'--sourcePrLabel',
|
|
58
|
-
'label e',
|
|
59
|
-
'--source-pr-label',
|
|
60
|
-
'label f',
|
|
61
|
-
];
|
|
62
|
-
const res = cliArgs_1.getOptionsFromCliArgs(argv);
|
|
63
|
-
expect(res.sourcePRLabels).toEqual([
|
|
64
57
|
'label a',
|
|
58
|
+
'--sourcePrLabel',
|
|
65
59
|
'label b',
|
|
60
|
+
'--source-pr-label',
|
|
66
61
|
'label c',
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
]);
|
|
62
|
+
];
|
|
63
|
+
const res = (0, cliArgs_1.getOptionsFromCliArgs)(argv);
|
|
64
|
+
expect(res.sourcePRLabels).toEqual(['label a', 'label b', 'label c']);
|
|
71
65
|
});
|
|
72
66
|
});
|
|
73
67
|
describe('pullNumber', () => {
|
|
74
68
|
it('should accept `--pr` alias but only return the full representation (`pullNumber`)', () => {
|
|
75
69
|
const argv = ['--pr', '1337'];
|
|
76
|
-
const res = cliArgs_1.getOptionsFromCliArgs(argv);
|
|
70
|
+
const res = (0, cliArgs_1.getOptionsFromCliArgs)(argv);
|
|
77
71
|
expect(res.pullNumber).toEqual(1337);
|
|
78
72
|
//@ts-expect-error
|
|
79
73
|
expect(res.pr).toBe(undefined);
|
|
80
74
|
});
|
|
81
75
|
});
|
|
82
76
|
describe('assignees', () => {
|
|
83
|
-
it('
|
|
84
|
-
const argv = ['--
|
|
85
|
-
const res = cliArgs_1.getOptionsFromCliArgs(argv);
|
|
77
|
+
it('--assignee', () => {
|
|
78
|
+
const argv = ['--assignee', 'john'];
|
|
79
|
+
const res = (0, cliArgs_1.getOptionsFromCliArgs)(argv);
|
|
80
|
+
expect(res.assignees).toEqual(['john']);
|
|
81
|
+
});
|
|
82
|
+
it('--assign', () => {
|
|
83
|
+
const argv = ['--assign', 'john'];
|
|
84
|
+
const res = (0, cliArgs_1.getOptionsFromCliArgs)(argv);
|
|
86
85
|
expect(res.assignees).toEqual(['john']);
|
|
87
86
|
});
|
|
88
87
|
});
|
|
89
88
|
describe('multipleBranches', () => {
|
|
90
89
|
it('should be undefined by default', () => {
|
|
91
90
|
const argv = [];
|
|
92
|
-
const res = cliArgs_1.getOptionsFromCliArgs(argv);
|
|
91
|
+
const res = (0, cliArgs_1.getOptionsFromCliArgs)(argv);
|
|
93
92
|
expect(res.multipleBranches).toBe(undefined);
|
|
94
93
|
});
|
|
95
94
|
it('should set to true', () => {
|
|
96
95
|
const argv = ['--multiple-branches', 'true'];
|
|
97
|
-
const res = cliArgs_1.getOptionsFromCliArgs(argv);
|
|
96
|
+
const res = (0, cliArgs_1.getOptionsFromCliArgs)(argv);
|
|
98
97
|
expect(res.multipleBranches).toBe(true);
|
|
99
98
|
});
|
|
100
99
|
it('should set to false', () => {
|
|
101
100
|
const argv = ['--multiple-branches', 'false'];
|
|
102
|
-
const res = cliArgs_1.getOptionsFromCliArgs(argv);
|
|
101
|
+
const res = (0, cliArgs_1.getOptionsFromCliArgs)(argv);
|
|
103
102
|
expect(res.multipleBranches).toBe(false);
|
|
104
103
|
});
|
|
105
104
|
it('should respect `multiple` option', () => {
|
|
106
105
|
const argv = ['--multiple'];
|
|
107
|
-
const res = cliArgs_1.getOptionsFromCliArgs(argv);
|
|
106
|
+
const res = (0, cliArgs_1.getOptionsFromCliArgs)(argv);
|
|
108
107
|
expect(res.multipleBranches).toBe(true);
|
|
109
108
|
});
|
|
110
109
|
it('should conflict when using both', () => {
|
|
111
110
|
const argv = ['--multiple', '--multiple-branches', 'false'];
|
|
112
|
-
expect(() => cliArgs_1.getOptionsFromCliArgs(argv, { exitOnError: false })).toThrow('Arguments multiple and multipleBranches are mutually exclusive');
|
|
111
|
+
expect(() => (0, cliArgs_1.getOptionsFromCliArgs)(argv, { exitOnError: false })).toThrow('Arguments multiple and multipleBranches are mutually exclusive');
|
|
113
112
|
});
|
|
114
113
|
});
|
|
115
114
|
describe('noVerify', () => {
|
|
116
115
|
it('should be undefined by default', () => {
|
|
117
116
|
const argv = [];
|
|
118
|
-
const res = cliArgs_1.getOptionsFromCliArgs(argv);
|
|
117
|
+
const res = (0, cliArgs_1.getOptionsFromCliArgs)(argv);
|
|
119
118
|
expect(res.noVerify).toBe(undefined);
|
|
120
119
|
});
|
|
121
120
|
it('should set to false', () => {
|
|
122
121
|
const argv = ['--no-verify', 'false'];
|
|
123
|
-
const res = cliArgs_1.getOptionsFromCliArgs(argv);
|
|
122
|
+
const res = (0, cliArgs_1.getOptionsFromCliArgs)(argv);
|
|
124
123
|
expect(res.noVerify).toBe(false);
|
|
125
124
|
});
|
|
126
125
|
it('should set to true', () => {
|
|
127
126
|
const argv = ['--no-verify', 'true'];
|
|
128
|
-
const res = cliArgs_1.getOptionsFromCliArgs(argv);
|
|
127
|
+
const res = (0, cliArgs_1.getOptionsFromCliArgs)(argv);
|
|
129
128
|
expect(res.noVerify).toBe(true);
|
|
130
129
|
});
|
|
131
130
|
it('should be enabled by `verify`', () => {
|
|
132
131
|
const argv = ['--verify'];
|
|
133
|
-
const res = cliArgs_1.getOptionsFromCliArgs(argv);
|
|
132
|
+
const res = (0, cliArgs_1.getOptionsFromCliArgs)(argv);
|
|
134
133
|
expect(res.noVerify).toBe(true);
|
|
135
134
|
});
|
|
136
135
|
});
|
|
137
136
|
describe('mainline', () => {
|
|
138
137
|
it('should default to 1', () => {
|
|
139
138
|
const argv = ['--mainline'];
|
|
140
|
-
const res = cliArgs_1.getOptionsFromCliArgs(argv);
|
|
139
|
+
const res = (0, cliArgs_1.getOptionsFromCliArgs)(argv);
|
|
141
140
|
expect(res.mainline).toEqual(1);
|
|
142
141
|
});
|
|
143
142
|
it('should accept numbers', () => {
|
|
144
143
|
const argv = ['--mainline', '2'];
|
|
145
|
-
const res = cliArgs_1.getOptionsFromCliArgs(argv);
|
|
144
|
+
const res = (0, cliArgs_1.getOptionsFromCliArgs)(argv);
|
|
146
145
|
expect(res.mainline).toEqual(2);
|
|
147
146
|
});
|
|
148
147
|
it('should throw on invalid values', () => {
|
|
149
148
|
const argv = ['--mainline', 'foo'];
|
|
150
|
-
expect(() => cliArgs_1.getOptionsFromCliArgs(argv, { exitOnError: false })).toThrowError('--mainline must be an integer. Received: NaN');
|
|
149
|
+
expect(() => (0, cliArgs_1.getOptionsFromCliArgs)(argv, { exitOnError: false })).toThrowError('--mainline must be an integer. Received: NaN');
|
|
151
150
|
});
|
|
152
151
|
});
|
|
153
152
|
describe('targetBranches', () => {
|
|
154
153
|
it('should not coerce 6.0 to 6', () => {
|
|
155
154
|
const argv = ['-b', '6.0'];
|
|
156
|
-
const res = cliArgs_1.getOptionsFromCliArgs(argv);
|
|
155
|
+
const res = (0, cliArgs_1.getOptionsFromCliArgs)(argv);
|
|
157
156
|
expect(res.targetBranches).toEqual(['6.0']);
|
|
158
157
|
});
|
|
159
158
|
});
|
|
@@ -1,38 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export declare
|
|
4
|
-
all: boolean;
|
|
5
|
-
assignees: never[];
|
|
6
|
-
autoAssign: boolean;
|
|
7
|
-
autoMerge: boolean;
|
|
8
|
-
autoMergeMethod: string;
|
|
9
|
-
ci: boolean;
|
|
10
|
-
dryRun: boolean;
|
|
11
|
-
fork: boolean;
|
|
12
|
-
gitHostname: string;
|
|
13
|
-
githubApiBaseUrlV3: string;
|
|
14
|
-
githubApiBaseUrlV4: string;
|
|
15
|
-
maxNumber: number;
|
|
16
|
-
multipleBranches: boolean;
|
|
17
|
-
multipleCommits: boolean;
|
|
18
|
-
noVerify: boolean;
|
|
19
|
-
prTitle: string;
|
|
20
|
-
resetAuthor: boolean;
|
|
21
|
-
sourcePRLabels: never[];
|
|
22
|
-
targetBranches: never[];
|
|
23
|
-
targetBranchChoices: never[];
|
|
24
|
-
targetPRLabels: never[];
|
|
25
|
-
verbose: boolean;
|
|
26
|
-
};
|
|
27
|
-
export declare type OptionsFromConfigFiles = PromiseReturnType<typeof getOptionsFromConfigFiles>;
|
|
28
|
-
export declare function getOptionsFromConfigFiles(optionsFromModule?: ConfigOptions): Promise<{
|
|
29
|
-
targetPRLabels: string[];
|
|
30
|
-
targetBranchChoices: import("../ConfigOptions").BranchChoiceRaw[];
|
|
1
|
+
import { ConfigFileOptions } from '../ConfigOptions';
|
|
2
|
+
export declare type OptionsFromConfigFiles = Awaited<ReturnType<typeof getOptionsFromConfigFiles>>;
|
|
3
|
+
export declare function getOptionsFromConfigFiles(optionsFromModule?: ConfigFileOptions): Promise<{
|
|
31
4
|
accessToken?: string | undefined;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
autoAssign: boolean;
|
|
5
|
+
assignees?: string[] | undefined;
|
|
6
|
+
author?: string | null | undefined;
|
|
7
|
+
autoAssign?: boolean | undefined;
|
|
36
8
|
autoFixConflicts?: (({ files, directory, logger, targetBranch, }: {
|
|
37
9
|
files: string[];
|
|
38
10
|
directory: string;
|
|
@@ -45,35 +17,40 @@ export declare function getOptionsFromConfigFiles(optionsFromModule?: ConfigOpti
|
|
|
45
17
|
};
|
|
46
18
|
targetBranch: string;
|
|
47
19
|
}) => boolean | Promise<boolean>) | undefined;
|
|
48
|
-
|
|
49
|
-
|
|
20
|
+
autoMerge?: boolean | undefined;
|
|
21
|
+
autoMergeMethod?: string | undefined;
|
|
22
|
+
cherrypickRef?: boolean | undefined;
|
|
23
|
+
ci?: boolean | undefined;
|
|
24
|
+
commitPaths?: string[] | undefined;
|
|
25
|
+
details?: boolean | undefined;
|
|
50
26
|
editor?: string | undefined;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
maxNumber: number;
|
|
27
|
+
fork?: boolean | undefined;
|
|
28
|
+
gitHostname?: string | undefined;
|
|
29
|
+
githubApiBaseUrlV3?: string | undefined;
|
|
30
|
+
githubApiBaseUrlV4?: string | undefined;
|
|
31
|
+
maxNumber?: number | undefined;
|
|
57
32
|
multiple?: boolean | undefined;
|
|
58
|
-
multipleBranches
|
|
59
|
-
multipleCommits
|
|
60
|
-
noVerify
|
|
61
|
-
path?: string | undefined;
|
|
33
|
+
multipleBranches?: boolean | undefined;
|
|
34
|
+
multipleCommits?: boolean | undefined;
|
|
35
|
+
noVerify?: boolean | undefined;
|
|
62
36
|
prDescription?: string | undefined;
|
|
63
37
|
prFilter?: string | undefined;
|
|
64
|
-
prTitle
|
|
38
|
+
prTitle?: string | undefined;
|
|
65
39
|
pullNumber?: number | undefined;
|
|
66
|
-
|
|
40
|
+
repoName?: string | undefined;
|
|
41
|
+
repoOwner?: string | undefined;
|
|
42
|
+
resetAuthor?: boolean | undefined;
|
|
43
|
+
reviewers?: string[] | undefined;
|
|
67
44
|
sha?: string | undefined;
|
|
45
|
+
skipRemoteConfig?: boolean | undefined;
|
|
68
46
|
sourceBranch?: string | undefined;
|
|
69
|
-
sourcePRLabels
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
verbose
|
|
74
|
-
|
|
47
|
+
sourcePRLabels?: string[] | undefined;
|
|
48
|
+
targetBranchChoices?: import("../ConfigOptions").TargetBranchChoiceOrString[] | undefined;
|
|
49
|
+
targetBranches?: string[] | undefined;
|
|
50
|
+
targetPRLabels?: string[] | undefined;
|
|
51
|
+
verbose?: boolean | undefined;
|
|
52
|
+
branchLabelMapping?: Record<string, string> | undefined;
|
|
53
|
+
upstream?: string | undefined;
|
|
54
|
+
branches?: import("../ConfigOptions").TargetBranchChoiceOrString[] | undefined;
|
|
75
55
|
labels?: string[] | undefined;
|
|
76
|
-
autoMerge: boolean;
|
|
77
|
-
autoMergeMethod: string;
|
|
78
|
-
dryRun: boolean;
|
|
79
56
|
}>;
|