backport 6.1.4 → 6.3.0-beta
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 +53 -42
- package/dist/{main.d.ts → backportRun.d.ts} +3 -3
- package/dist/{main.js → backportRun.js} +24 -9
- package/dist/entrypoint.cli.js +3 -5
- package/dist/entrypoint.module.d.ts +4 -3
- package/dist/entrypoint.module.js +9 -7
- package/dist/options/ConfigOptions.d.ts +6 -0
- package/dist/options/cliArgs.d.ts +17 -13
- package/dist/options/cliArgs.js +25 -6
- package/dist/options/config/config.d.ts +12 -1
- package/dist/options/config/config.js +8 -7
- package/dist/options/config/globalConfig.d.ts +2 -2
- package/dist/options/config/globalConfig.js +18 -16
- package/dist/options/config/projectConfig.d.ts +3 -1
- package/dist/options/config/projectConfig.js +5 -2
- package/dist/options/config/readConfigFile.d.ts +28 -22
- package/dist/options/config/readConfigFile.js +2 -2
- package/dist/options/options.d.ts +19 -37
- package/dist/options/options.js +44 -31
- package/dist/runSequentially.d.ts +0 -1
- package/dist/runSequentially.js +0 -1
- package/dist/scripts/postinstall.js +3 -3
- package/dist/services/HandledError.d.ts +6 -4
- package/dist/services/HandledError.js +18 -3
- package/dist/services/child-process-promisified.d.ts +3 -1
- package/dist/services/env.d.ts +5 -4
- package/dist/services/env.js +13 -11
- package/dist/services/git.d.ts +22 -9
- package/dist/services/git.js +66 -54
- package/dist/services/github/commitFormatters.d.ts +0 -1
- package/dist/services/github/commitFormatters.js +1 -8
- package/dist/services/github/v3/createPullRequest.js +16 -10
- package/dist/services/github/v3/createStatusComment.d.ts +1 -1
- package/dist/services/github/v3/createStatusComment.js +34 -18
- package/dist/services/github/v3/getGithubV3ErrorMessage.d.ts +2 -1
- package/dist/services/github/v4/FetchPullRequestId.d.ts +0 -7
- package/dist/services/github/v4/apiRequestV4.d.ts +21 -17
- package/dist/services/github/v4/apiRequestV4.js +38 -28
- package/dist/services/github/v4/disablePullRequestAutoMerge.d.ts +0 -7
- package/dist/services/github/v4/enablePullRequestAutoMerge.d.ts +0 -7
- package/dist/services/github/v4/fetchCommits/fetchCommitBySha.js +3 -3
- package/dist/services/github/v4/fetchCommits/fetchCommitsByAuthor.js +2 -2
- package/dist/services/github/v4/fetchCommits/fetchPullRequestBySearchQuery.d.ts +1 -8
- package/dist/services/github/v4/fetchExistingPullRequest.d.ts +0 -4
- package/dist/services/github/v4/fetchExistingPullRequest.js +1 -2
- package/dist/services/github/v4/fetchPullRequestAutoMergeMethod.d.ts +0 -9
- package/dist/services/github/v4/{fetchProjectConfig.d.ts → fetchRemoteProjectConfig.d.ts} +1 -1
- package/dist/services/github/v4/{fetchProjectConfig.js → fetchRemoteProjectConfig.js} +3 -3
- package/dist/services/github/v4/getOptionsFromGithub/getOptionsFromGithub.d.ts +7 -1
- package/dist/services/github/v4/getOptionsFromGithub/getOptionsFromGithub.js +38 -39
- package/dist/services/github/v4/getOptionsFromGithub/query.d.ts +2 -1
- package/dist/services/github/v4/getRepoOwnerAndNameFromGitRemotes.d.ts +29 -0
- package/dist/services/github/v4/getRepoOwnerAndNameFromGitRemotes.js +56 -0
- package/dist/services/github/v4/throwOnInvalidAccessToken.d.ts +4 -5
- package/dist/services/github/v4/throwOnInvalidAccessToken.js +10 -7
- package/dist/services/logger.d.ts +9 -4
- package/dist/services/logger.js +40 -37
- package/dist/services/prompts.js +12 -10
- package/dist/services/sourceCommit/getExpectedTargetPullRequests.js +1 -1
- package/dist/services/sourceCommit/getMockSourceCommit.js +6 -6
- package/dist/services/sourceCommit/parseSourceCommit.d.ts +18 -10
- package/dist/services/sourceCommit/parseSourceCommit.js +20 -14
- package/dist/ui/cherrypickAndCreateTargetPullRequest.d.ts +0 -1
- package/dist/ui/cherrypickAndCreateTargetPullRequest.js +13 -14
- package/dist/ui/getCommits.js +8 -14
- package/dist/ui/getCommitsWithoutBackports.js +6 -6
- package/dist/ui/getTargetBranches.js +1 -1
- package/dist/ui/maybeSetupRepo.js +24 -10
- package/dist/utils/maybe.d.ts +1 -0
- package/dist/utils/maybe.js +7 -0
- package/dist/utils/packageVersion.d.ts +1 -0
- package/dist/{types/PromiseReturnType.js → utils/packageVersion.js} +2 -0
- package/dist/utils/redact.d.ts +1 -0
- package/dist/utils/redact.js +7 -0
- package/package.json +24 -20
- package/yarn.lock +160 -237
- package/dist/entrypoint.module.private.test.d.ts +0 -1
- package/dist/entrypoint.module.private.test.js +0 -37
- package/dist/index.d.ts +0 -783
- package/dist/index.js +0 -8001
- package/dist/ink.d.ts +0 -1
- package/dist/ink.js +0 -49
- package/dist/options/cliArgs.test.d.ts +0 -1
- package/dist/options/cliArgs.test.js +0 -152
- package/dist/options/config/config.test.d.ts +0 -1
- package/dist/options/config/config.test.js +0 -22
- package/dist/options/config/getOptionsFromGit.d.ts +0 -4
- package/dist/options/config/getOptionsFromGit.js +0 -8
- package/dist/options/config/globalConfig.test.d.ts +0 -1
- package/dist/options/config/globalConfig.test.js +0 -74
- package/dist/options/config/projectConfig.test.d.ts +0 -1
- package/dist/options/config/projectConfig.test.js +0 -99
- package/dist/options/getValidatedOptions.d.ts +0 -49
- package/dist/options/getValidatedOptions.js +0 -45
- package/dist/options/getValidatedOptions.test.d.ts +0 -1
- package/dist/options/getValidatedOptions.test.js +0 -97
- package/dist/options/options.test.d.ts +0 -1
- package/dist/options/options.test.js +0 -335
- package/dist/options/parseRequiredOptions.d.ts +0 -71
- package/dist/options/parseRequiredOptions.js +0 -68
- package/dist/options/parseRequiredOptions.test.d.ts +0 -1
- package/dist/options/parseRequiredOptions.test.js +0 -122
- package/dist/runSequentially.test.d.ts +0 -1
- package/dist/runSequentially.test.js +0 -199
- package/dist/runWithOptions.d.ts +0 -9
- package/dist/runWithOptions.js +0 -43
- package/dist/runWithOptions.test.d.ts +0 -1
- package/dist/runWithOptions.test.js +0 -304
- package/dist/scripts/generate-gql.d.ts +0 -1
- package/dist/scripts/generate-gql.js +0 -15
- package/dist/scripts/postinstall.test.d.ts +0 -1
- package/dist/scripts/postinstall.test.js +0 -53
- package/dist/services/env.test.d.ts +0 -1
- package/dist/services/env.test.js +0 -27
- package/dist/services/fs-promisified.d.ts +0 -6
- package/dist/services/fs-promisified.js +0 -12
- package/dist/services/getExpectedTarget.d.ts +0 -9
- package/dist/services/getExpectedTarget.js +0 -77
- package/dist/services/getExpectedTargetPullRequests.d.ts +0 -9
- package/dist/services/getExpectedTargetPullRequests.js +0 -77
- package/dist/services/git.integration.test.d.ts +0 -1
- package/dist/services/git.integration.test.js +0 -168
- package/dist/services/git.test.d.ts +0 -1
- package/dist/services/git.test.js +0 -503
- package/dist/services/github/commitFormatters.test.d.ts +0 -1
- package/dist/services/github/commitFormatters.test.js +0 -11
- package/dist/services/github/v3/addAssigneesToPullRequest.test.d.ts +0 -1
- package/dist/services/github/v3/addAssigneesToPullRequest.test.js +0 -27
- package/dist/services/github/v3/createPullRequest.test.d.ts +0 -1
- package/dist/services/github/v3/createPullRequest.test.js +0 -110
- package/dist/services/github/v3/createStatusComment.test.d.ts +0 -1
- package/dist/services/github/v3/createStatusComment.test.js +0 -291
- package/dist/services/github/v4/apiRequestV4.test.d.ts +0 -1
- package/dist/services/github/v4/apiRequestV4.test.js +0 -82
- package/dist/services/github/v4/enablePullRequestAutoMerge.private.test.d.ts +0 -1
- package/dist/services/github/v4/enablePullRequestAutoMerge.private.test.js +0 -112
- package/dist/services/github/v4/fetchAuthorId.private.test.d.ts +0 -1
- package/dist/services/github/v4/fetchAuthorId.private.test.js +0 -28
- package/dist/services/github/v4/fetchCommitByPullNumber.d.ts +0 -5
- package/dist/services/github/v4/fetchCommitByPullNumber.js +0 -86
- package/dist/services/github/v4/fetchCommitByPullNumber.private.test.d.ts +0 -1
- package/dist/services/github/v4/fetchCommitByPullNumber.private.test.js +0 -57
- package/dist/services/github/v4/fetchCommitBySha.d.ts +0 -5
- package/dist/services/github/v4/fetchCommitBySha.js +0 -95
- package/dist/services/github/v4/fetchCommitBySha.private.test.d.ts +0 -1
- package/dist/services/github/v4/fetchCommitBySha.private.test.js +0 -50
- package/dist/services/github/v4/fetchCommits/allFetchers.private.test.d.ts +0 -1
- package/dist/services/github/v4/fetchCommits/allFetchers.private.test.js +0 -78
- package/dist/services/github/v4/fetchCommits/fetchCommitByPullNumber.private.test.d.ts +0 -1
- package/dist/services/github/v4/fetchCommits/fetchCommitByPullNumber.private.test.js +0 -134
- package/dist/services/github/v4/fetchCommits/fetchCommitBySha.private.test.d.ts +0 -1
- package/dist/services/github/v4/fetchCommits/fetchCommitBySha.private.test.js +0 -115
- package/dist/services/github/v4/fetchCommits/fetchCommitsByAuthor.private.test.d.ts +0 -1
- package/dist/services/github/v4/fetchCommits/fetchCommitsByAuthor.private.test.js +0 -200
- package/dist/services/github/v4/fetchCommits/fetchCommitsByAuthor.test.d.ts +0 -1
- package/dist/services/github/v4/fetchCommits/fetchCommitsByAuthor.test.js +0 -131
- package/dist/services/github/v4/fetchCommits/fetchCommitsInDateRange.d.ts +0 -28
- package/dist/services/github/v4/fetchCommits/fetchCommitsInDateRange.js +0 -52
- package/dist/services/github/v4/fetchCommits/fetchProjectConfig.d.ts +0 -3
- package/dist/services/github/v4/fetchCommits/fetchProjectConfig.js +0 -55
- package/dist/services/github/v4/fetchCommits/fetchPullRequestBySearchQuery.private.test.d.ts +0 -1
- package/dist/services/github/v4/fetchCommits/fetchPullRequestBySearchQuery.private.test.js +0 -85
- package/dist/services/github/v4/fetchCommits/fetchPullRequestBySearchQuery.test.d.ts +0 -1
- package/dist/services/github/v4/fetchCommits/fetchPullRequestBySearchQuery.test.js +0 -252
- package/dist/services/github/v4/fetchCommitsByAuthor.d.ts +0 -28
- package/dist/services/github/v4/fetchCommitsByAuthor.js +0 -161
- package/dist/services/github/v4/fetchCommitsByAuthor.private.test.d.ts +0 -1
- package/dist/services/github/v4/fetchCommitsByAuthor.private.test.js +0 -115
- package/dist/services/github/v4/fetchCommitsByAuthor.test.d.ts +0 -1
- package/dist/services/github/v4/fetchCommitsByAuthor.test.js +0 -272
- package/dist/services/github/v4/fetchDefaultBranch.d.ts +0 -9
- package/dist/services/github/v4/fetchDefaultBranch.js +0 -24
- package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks/fetchDefaultRepoBranchAndPerformStartupChecks.d.ts +0 -4
- package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks/fetchDefaultRepoBranchAndPerformStartupChecks.js +0 -52
- package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks/fetchDefaultRepoBranchAndPerformStartupChecks.private.test.d.ts +0 -1
- package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks/fetchDefaultRepoBranchAndPerformStartupChecks.private.test.js +0 -32
- package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks/index.d.ts +0 -4
- package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks/index.js +0 -72
- package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks/index.private.test.d.ts +0 -1
- package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks/index.private.test.js +0 -34
- package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks/query.d.ts +0 -40
- package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks/query.js +0 -72
- package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks.d.ts +0 -17
- package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks.js +0 -69
- package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks.private.test.d.ts +0 -1
- package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks.private.test.js +0 -32
- package/dist/services/github/v4/fetchExistingPullRequest.private.test.d.ts +0 -1
- package/dist/services/github/v4/fetchExistingPullRequest.private.test.js +0 -47
- package/dist/services/github/v4/fetchMergedPullRequests.d.ts +0 -37
- package/dist/services/github/v4/fetchMergedPullRequests.js +0 -37
- package/dist/services/github/v4/fetchMergedPullRequests.private.test.d.ts +0 -1
- package/dist/services/github/v4/fetchMergedPullRequests.private.test.js +0 -59
- package/dist/services/github/v4/fetchMergedPullRequests.test.d.ts +0 -1
- package/dist/services/github/v4/fetchMergedPullRequests.test.js +0 -22
- package/dist/services/github/v4/fetchProjectConfig.private.test.d.ts +0 -1
- package/dist/services/github/v4/fetchProjectConfig.private.test.js +0 -52
- package/dist/services/github/v4/fetchProjectConfig.test.d.ts +0 -1
- package/dist/services/github/v4/fetchProjectConfig.test.js +0 -37
- package/dist/services/github/v4/fetchPullRequestBySearchQuery.d.ts +0 -9
- package/dist/services/github/v4/fetchPullRequestBySearchQuery.js +0 -92
- package/dist/services/github/v4/fetchPullRequestBySearchQuery.private.test.d.ts +0 -1
- package/dist/services/github/v4/fetchPullRequestBySearchQuery.private.test.js +0 -66
- package/dist/services/github/v4/fetchPullRequestBySearchQuery.test.d.ts +0 -1
- package/dist/services/github/v4/fetchPullRequestBySearchQuery.test.js +0 -242
- package/dist/services/github/v4/getExistingTargetPullRequests.d.ts +0 -7
- package/dist/services/github/v4/getExistingTargetPullRequests.js +0 -45
- package/dist/services/github/v4/getOptionsFromGithub/getOptionsFromGithub.private.test.d.ts +0 -1
- package/dist/services/github/v4/getOptionsFromGithub/getOptionsFromGithub.private.test.js +0 -130
- package/dist/services/github/v4/getOptionsFromGithub/index.d.ts +0 -63
- package/dist/services/github/v4/getOptionsFromGithub/index.js +0 -139
- package/dist/services/github/v4/getOptionsFromGithub/index.private.test.d.ts +0 -1
- package/dist/services/github/v4/getOptionsFromGithub/index.private.test.js +0 -147
- package/dist/services/github/v4/getTargetBranchesFromLabels.d.ts +0 -5
- package/dist/services/github/v4/getTargetBranchesFromLabels.js +0 -20
- package/dist/services/github/v4/getTargetBranchesFromLabels.test.d.ts +0 -1
- package/dist/services/github/v4/getTargetBranchesFromLabels.test.js +0 -201
- package/dist/services/github/v4/mocks/commitsByAuthorMock.d.ts +0 -2
- package/dist/services/github/v4/mocks/commitsByAuthorMock.js +0 -154
- package/dist/services/github/v4/mocks/fetchPullRequestBySearchQueryMock.d.ts +0 -2
- package/dist/services/github/v4/mocks/fetchPullRequestBySearchQueryMock.js +0 -843
- package/dist/services/github/v4/mocks/getCommitsByAuthorMock.d.ts +0 -2
- package/dist/services/github/v4/mocks/getCommitsByAuthorMock.js +0 -73
- package/dist/services/github/v4/mocks/getPullRequestNodeMock.d.ts +0 -12
- package/dist/services/github/v4/mocks/getPullRequestNodeMock.js +0 -44
- package/dist/services/github/v4/throwOnInvalidAccessToken.test.d.ts +0 -1
- package/dist/services/github/v4/throwOnInvalidAccessToken.test.js +0 -87
- package/dist/services/prompt.test.d.ts +0 -1
- package/dist/services/prompt.test.js +0 -87
- package/dist/services/sourceCommit/getExpectedTargetPullRequests.test.d.ts +0 -1
- package/dist/services/sourceCommit/getExpectedTargetPullRequests.test.js +0 -433
- package/dist/services/sourceCommit/getTargetBranchesFromLabels.d.ts +0 -5
- package/dist/services/sourceCommit/getTargetBranchesFromLabels.js +0 -20
- package/dist/services/sourceCommit/getTargetBranchesFromLabels.test.d.ts +0 -1
- package/dist/services/sourceCommit/getTargetBranchesFromLabels.test.js +0 -201
- package/dist/services/sourceCommit/parseSourceCommit.test.d.ts +0 -1
- package/dist/services/sourceCommit/parseSourceCommit.test.js +0 -237
- package/dist/services/sourceCommit/sourceCommit.d.ts +0 -78
- package/dist/services/sourceCommit/sourceCommit.js +0 -86
- package/dist/services/sourceCommit/sourceCommit.test.d.ts +0 -1
- package/dist/services/sourceCommit/sourceCommit.test.js +0 -287
- package/dist/services/sourceCommit.d.ts +0 -78
- package/dist/services/sourceCommit.js +0 -86
- package/dist/services/sourceCommit.test.d.ts +0 -1
- package/dist/services/sourceCommit.test.js +0 -280
- package/dist/test/ExecError.d.ts +0 -16
- package/dist/test/ExecError.js +0 -15
- package/dist/test/inquirer.private.test.d.ts +0 -1
- package/dist/test/inquirer.private.test.js +0 -168
- package/dist/test/integration/createSpies.d.ts +0 -17
- package/dist/test/integration/createSpies.js +0 -85
- package/dist/test/integration/envConstants.d.ts +0 -5
- package/dist/test/integration/envConstants.js +0 -9
- package/dist/test/integration/helpers.d.ts +0 -7
- package/dist/test/integration/helpers.js +0 -31
- package/dist/test/integration/integration.private.test.d.ts +0 -1
- package/dist/test/integration/integration.private.test.js +0 -327
- package/dist/test/integration/integration.test.d.ts +0 -1
- package/dist/test/integration/integration.test.js +0 -214
- package/dist/test/mockConfigFiles.d.ts +0 -5
- package/dist/test/mockConfigFiles.js +0 -37
- package/dist/test/nockHelpers.d.ts +0 -16
- package/dist/test/nockHelpers.js +0 -32
- package/dist/test/private/getDevAccessToken.d.ts +0 -1
- package/dist/test/private/getDevAccessToken.js +0 -24
- package/dist/test/setupFiles/automatic-mocks.d.ts +0 -0
- package/dist/test/setupFiles/automatic-mocks.js +0 -43
- package/dist/types/Commit.d.ts +0 -85
- package/dist/types/Commit.js +0 -139
- package/dist/types/PromiseReturnType.d.ts +0 -1
- package/dist/types/commitNode.d.ts +0 -89
- package/dist/types/commitNode.js +0 -139
- package/dist/types/commitNode.test.d.ts +0 -1
- package/dist/types/commitNode.test.js +0 -255
- package/dist/types/commitWithAssociatedPullRequests.d.ts +0 -86
- package/dist/types/commitWithAssociatedPullRequests.js +0 -145
- package/dist/ui/cherrypickAndCreatePullRequest.test.d.ts +0 -1
- package/dist/ui/cherrypickAndCreatePullRequest.test.js +0 -617
- package/dist/ui/cherrypickAndCreateTargetPullRequest.test.d.ts +0 -1
- package/dist/ui/cherrypickAndCreateTargetPullRequest.test.js +0 -432
- package/dist/ui/getCommitsWithoutBackports.test.d.ts +0 -1
- package/dist/ui/getCommitsWithoutBackports.test.js +0 -259
- package/dist/ui/getTargetBranches.test.d.ts +0 -1
- package/dist/ui/getTargetBranches.test.js +0 -180
- package/dist/ui/getTargetBranchesFromLabels.d.ts +0 -6
- package/dist/ui/getTargetBranchesFromLabels.js +0 -40
- package/dist/ui/getTargetBranchesFromLabels.test.d.ts +0 -1
- package/dist/ui/getTargetBranchesFromLabels.test.js +0 -288
- package/dist/ui/maybeSetupRepo.test.d.ts +0 -1
- package/dist/ui/maybeSetupRepo.test.js +0 -74
- package/dist/utils/excludeUndefined.test.d.ts +0 -1
- package/dist/utils/excludeUndefined.test.js +0 -24
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
import { ValidConfigOptions } from '../../options/options';
|
|
2
2
|
import { ExpectedTargetPullRequest } from './getExpectedTargetPullRequests';
|
|
3
3
|
export interface Commit {
|
|
4
|
-
|
|
4
|
+
sourceCommit: {
|
|
5
|
+
committedDate: string;
|
|
6
|
+
message: string;
|
|
7
|
+
sha: string;
|
|
8
|
+
};
|
|
9
|
+
sourcePullRequest?: {
|
|
10
|
+
number: number;
|
|
11
|
+
url: string;
|
|
12
|
+
mergeCommit: {
|
|
13
|
+
message: string;
|
|
14
|
+
sha: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
5
17
|
sourceBranch: string;
|
|
6
|
-
sha: string;
|
|
7
|
-
originalMessage: string;
|
|
8
|
-
pullNumber?: number;
|
|
9
|
-
pullUrl?: string;
|
|
10
18
|
expectedTargetPullRequests: ExpectedTargetPullRequest[];
|
|
11
19
|
}
|
|
12
20
|
export interface SourcePullRequestNode {
|
|
@@ -18,8 +26,8 @@ export interface SourcePullRequestNode {
|
|
|
18
26
|
name: string;
|
|
19
27
|
}[];
|
|
20
28
|
};
|
|
21
|
-
|
|
22
|
-
|
|
29
|
+
mergeCommit: {
|
|
30
|
+
sha: string;
|
|
23
31
|
message: string;
|
|
24
32
|
};
|
|
25
33
|
timelineItems: {
|
|
@@ -37,7 +45,7 @@ export interface TimelinePullRequestEdge {
|
|
|
37
45
|
baseRefName: string;
|
|
38
46
|
number: number;
|
|
39
47
|
targetMergeCommit: {
|
|
40
|
-
|
|
48
|
+
sha: string;
|
|
41
49
|
message: string;
|
|
42
50
|
} | null;
|
|
43
51
|
repository: {
|
|
@@ -51,7 +59,7 @@ export interface TimelinePullRequestEdge {
|
|
|
51
59
|
node: {
|
|
52
60
|
targetCommit: {
|
|
53
61
|
message: string;
|
|
54
|
-
|
|
62
|
+
sha: string;
|
|
55
63
|
};
|
|
56
64
|
};
|
|
57
65
|
}>;
|
|
@@ -73,7 +81,7 @@ export declare type SourceCommitWithTargetPullRequest = {
|
|
|
73
81
|
login: string;
|
|
74
82
|
};
|
|
75
83
|
};
|
|
76
|
-
|
|
84
|
+
sha: string;
|
|
77
85
|
message: string;
|
|
78
86
|
committedDate: string;
|
|
79
87
|
associatedPullRequests: {
|
|
@@ -2,24 +2,30 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.sourceCommitWithTargetPullRequestFragment = exports.parseSourceCommit = void 0;
|
|
4
4
|
const lodash_1 = require("lodash");
|
|
5
|
-
const commitFormatters_1 = require("../github/commitFormatters");
|
|
6
5
|
const getExpectedTargetPullRequests_1 = require("./getExpectedTargetPullRequests");
|
|
7
6
|
function parseSourceCommit({ sourceCommit, options, }) {
|
|
8
7
|
const sourcePullRequest = sourceCommit.associatedPullRequests.edges?.[0]?.node;
|
|
9
8
|
// use info from associated pull request if available. Fall back to commit info
|
|
10
|
-
const commitMessage = sourcePullRequest?.sourceMergeCommit.message ?? sourceCommit.message;
|
|
11
|
-
const commitSha = sourcePullRequest?.sourceMergeCommit.oid ?? sourceCommit.oid;
|
|
12
|
-
const pullNumber = sourcePullRequest?.number ?? (0, commitFormatters_1.extractPullNumber)(commitMessage);
|
|
13
9
|
const sourceBranch = sourcePullRequest?.baseRefName ?? options.sourceBranch;
|
|
14
10
|
const branchLabelMapping = getBranchLabelMappingForCommit(sourceCommit, options.branchLabelMapping, options.historicalBranchLabelMappings);
|
|
15
11
|
const expectedTargetPullRequests = (0, getExpectedTargetPullRequests_1.getExpectedTargetPullRequests)(sourceCommit, branchLabelMapping);
|
|
16
12
|
return {
|
|
17
|
-
|
|
13
|
+
sourceCommit: {
|
|
14
|
+
committedDate: sourceCommit.committedDate,
|
|
15
|
+
message: sourceCommit.message,
|
|
16
|
+
sha: sourceCommit.sha,
|
|
17
|
+
},
|
|
18
|
+
sourcePullRequest: sourcePullRequest
|
|
19
|
+
? {
|
|
20
|
+
number: sourcePullRequest.number,
|
|
21
|
+
url: sourcePullRequest.url,
|
|
22
|
+
mergeCommit: {
|
|
23
|
+
message: sourcePullRequest.mergeCommit.message,
|
|
24
|
+
sha: sourcePullRequest.mergeCommit.sha,
|
|
25
|
+
},
|
|
26
|
+
}
|
|
27
|
+
: undefined,
|
|
18
28
|
sourceBranch,
|
|
19
|
-
sha: commitSha,
|
|
20
|
-
originalMessage: commitMessage,
|
|
21
|
-
pullNumber,
|
|
22
|
-
pullUrl: sourcePullRequest?.url,
|
|
23
29
|
expectedTargetPullRequests,
|
|
24
30
|
};
|
|
25
31
|
}
|
|
@@ -34,7 +40,7 @@ exports.sourceCommitWithTargetPullRequestFragment = {
|
|
|
34
40
|
login
|
|
35
41
|
}
|
|
36
42
|
}
|
|
37
|
-
oid
|
|
43
|
+
sha: oid
|
|
38
44
|
message
|
|
39
45
|
committedDate
|
|
40
46
|
|
|
@@ -52,8 +58,8 @@ exports.sourceCommitWithTargetPullRequestFragment = {
|
|
|
52
58
|
baseRefName
|
|
53
59
|
|
|
54
60
|
# source merge commit (the commit that actually went into the source branch)
|
|
55
|
-
|
|
56
|
-
oid
|
|
61
|
+
mergeCommit {
|
|
62
|
+
sha: oid
|
|
57
63
|
message
|
|
58
64
|
}
|
|
59
65
|
|
|
@@ -69,7 +75,7 @@ exports.sourceCommitWithTargetPullRequestFragment = {
|
|
|
69
75
|
... on PullRequest {
|
|
70
76
|
# target merge commit: the backport commit that was merged into the target branch
|
|
71
77
|
targetMergeCommit: mergeCommit {
|
|
72
|
-
oid
|
|
78
|
+
sha: oid
|
|
73
79
|
message
|
|
74
80
|
}
|
|
75
81
|
repository {
|
|
@@ -88,7 +94,7 @@ exports.sourceCommitWithTargetPullRequestFragment = {
|
|
|
88
94
|
node {
|
|
89
95
|
targetCommit: commit {
|
|
90
96
|
message
|
|
91
|
-
oid
|
|
97
|
+
sha: oid
|
|
92
98
|
}
|
|
93
99
|
}
|
|
94
100
|
}
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.cherrypickAndCreateTargetPullRequest = void 0;
|
|
7
7
|
const chalk_1 = __importDefault(require("chalk"));
|
|
8
8
|
const lodash_1 = require("lodash");
|
|
9
9
|
const ora = require("ora");
|
|
@@ -62,8 +62,8 @@ async function cherrypickAndCreateTargetPullRequest({ options, commits, targetBr
|
|
|
62
62
|
// add labels to source pull requests
|
|
63
63
|
if (options.sourcePRLabels.length > 0) {
|
|
64
64
|
const promises = commits.map((commit) => {
|
|
65
|
-
if (commit.
|
|
66
|
-
return (0, addLabelsToPullRequest_1.addLabelsToPullRequest)(options, commit.
|
|
65
|
+
if (commit.sourcePullRequest) {
|
|
66
|
+
return (0, addLabelsToPullRequest_1.addLabelsToPullRequest)(options, commit.sourcePullRequest.number, options.sourcePRLabels);
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
69
|
await Promise.all(promises);
|
|
@@ -93,16 +93,15 @@ async function backportViaFilesystem({ options, prPayload, commits, targetBranch
|
|
|
93
93
|
*/
|
|
94
94
|
function getBackportBranchName(targetBranch, commits) {
|
|
95
95
|
const refValues = commits
|
|
96
|
-
.map((commit) => commit.
|
|
97
|
-
? `pr-${commit.
|
|
98
|
-
: `commit-${(0, commitFormatters_1.getShortSha)(commit.sha)}`)
|
|
96
|
+
.map((commit) => commit.sourcePullRequest
|
|
97
|
+
? `pr-${commit.sourcePullRequest.number}`
|
|
98
|
+
: `commit-${(0, commitFormatters_1.getShortSha)(commit.sourceCommit.sha)}`)
|
|
99
99
|
.join('_')
|
|
100
100
|
.slice(0, 200);
|
|
101
101
|
return `backport/${targetBranch}/${refValues}`;
|
|
102
102
|
}
|
|
103
|
-
exports.getBackportBranchName = getBackportBranchName;
|
|
104
103
|
async function waitForCherrypick(options, commit, targetBranch) {
|
|
105
|
-
const spinnerText = `Cherry-picking: ${chalk_1.default.greenBright((0, commitFormatters_1.getFirstLine)(commit.
|
|
104
|
+
const spinnerText = `Cherry-picking: ${chalk_1.default.greenBright((0, commitFormatters_1.getFirstLine)(commit.sourceCommit.message))}`;
|
|
106
105
|
const mergedTargetPullRequest = commit.expectedTargetPullRequests.find((pr) => pr.state === 'MERGED' && pr.branch === targetBranch);
|
|
107
106
|
const cherrypickSpinner = ora(spinnerText).start();
|
|
108
107
|
let conflictingFiles;
|
|
@@ -110,7 +109,7 @@ async function waitForCherrypick(options, commit, targetBranch) {
|
|
|
110
109
|
let needsResolving;
|
|
111
110
|
try {
|
|
112
111
|
await (0, git_1.fetchBranch)(options, commit.sourceBranch);
|
|
113
|
-
({ conflictingFiles, unstagedFiles, needsResolving } = await (0, git_1.cherrypick)(options, commit.sha, mergedTargetPullRequest));
|
|
112
|
+
({ conflictingFiles, unstagedFiles, needsResolving } = await (0, git_1.cherrypick)(options, commit.sourceCommit.sha, mergedTargetPullRequest));
|
|
114
113
|
// no conflicts encountered
|
|
115
114
|
if (!needsResolving) {
|
|
116
115
|
cherrypickSpinner.succeed();
|
|
@@ -147,14 +146,14 @@ async function waitForCherrypick(options, commit, targetBranch) {
|
|
|
147
146
|
conflictingFiles: conflictingFiles.map((f) => f.relative).slice(0, 50),
|
|
148
147
|
});
|
|
149
148
|
if (options.ci) {
|
|
150
|
-
throw new HandledError_1.HandledError(
|
|
151
|
-
|
|
149
|
+
throw new HandledError_1.HandledError({
|
|
150
|
+
code: 'merge-conflict-exception',
|
|
152
151
|
commitsWithoutBackports,
|
|
153
152
|
});
|
|
154
153
|
}
|
|
155
154
|
(0, logger_1.consoleLog)(chalk_1.default.bold('\nThe commit could not be backported due to conflicts\n'));
|
|
156
155
|
if (commitsWithoutBackports.length > 0) {
|
|
157
|
-
(0, logger_1.consoleLog)(chalk_1.default.italic(`Hint: Before fixing the conflicts manually you should consider backporting the following
|
|
156
|
+
(0, logger_1.consoleLog)(chalk_1.default.italic(`Hint: Before fixing the conflicts manually you should consider backporting the following pull requests to "${targetBranch}":`));
|
|
158
157
|
(0, logger_1.consoleLog)(`${commitsWithoutBackports.map((c) => c.formatted).join('\n')}\n\n`);
|
|
159
158
|
}
|
|
160
159
|
/*
|
|
@@ -162,7 +161,7 @@ async function waitForCherrypick(options, commit, targetBranch) {
|
|
|
162
161
|
*/
|
|
163
162
|
if (options.editor) {
|
|
164
163
|
const repoPath = (0, env_1.getRepoPath)(options);
|
|
165
|
-
await (0, child_process_promisified_1.exec)(`${options.editor} ${repoPath}`, {});
|
|
164
|
+
await (0, child_process_promisified_1.exec)(`${options.editor} ${repoPath}`, { cwd: options.cwd });
|
|
166
165
|
}
|
|
167
166
|
// list files with conflict markers + unstaged files and require user to resolve them
|
|
168
167
|
await listConflictingAndUnstagedFiles({
|
|
@@ -208,7 +207,7 @@ ${unstagedSection}
|
|
|
208
207
|
|
|
209
208
|
Press ENTER when the conflicts are resolved and files are staged`);
|
|
210
209
|
if (!res) {
|
|
211
|
-
throw new HandledError_1.HandledError('
|
|
210
|
+
throw new HandledError_1.HandledError({ code: 'abort-exception' });
|
|
212
211
|
}
|
|
213
212
|
const MAX_RETRIES = 100;
|
|
214
213
|
if (retries++ > MAX_RETRIES) {
|
package/dist/ui/getCommits.js
CHANGED
|
@@ -25,7 +25,7 @@ async function getCommits(options) {
|
|
|
25
25
|
if (options.sha) {
|
|
26
26
|
spinner.text = `Loading commit "${(0, commitFormatters_1.getShortSha)(options.sha)}"`;
|
|
27
27
|
const commit = await (0, fetchCommitBySha_1.fetchCommitBySha)({ ...options, sha: options.sha });
|
|
28
|
-
spinner.stopAndPersist(getOraPersistsOption('Select commit', commit.
|
|
28
|
+
spinner.stopAndPersist(getOraPersistsOption('Select commit', commit.sourceCommit.message));
|
|
29
29
|
return [commit];
|
|
30
30
|
}
|
|
31
31
|
if (options.pullNumber) {
|
|
@@ -35,24 +35,18 @@ async function getCommits(options) {
|
|
|
35
35
|
pullNumber: options.pullNumber, // must extract pullNumber to satisfy the ts gods
|
|
36
36
|
});
|
|
37
37
|
// add styles to make it look like a prompt question
|
|
38
|
-
spinner.stopAndPersist(getOraPersistsOption('Select pull request', (0, commitFormatters_1.getFirstLine)(commit.
|
|
38
|
+
spinner.stopAndPersist(getOraPersistsOption('Select pull request', (0, commitFormatters_1.getFirstLine)(commit.sourceCommit.message)));
|
|
39
39
|
return [commit];
|
|
40
40
|
}
|
|
41
41
|
if (options.ci) {
|
|
42
42
|
throw new HandledError_1.HandledError('When "--ci" flag is enabled either `--sha` or `--pr` must be specified');
|
|
43
43
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
isMultipleChoice: options.multipleCommits,
|
|
51
|
-
showDetails: options.details,
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
spinner.text = `Loading commits from branch "${options.sourceBranch}"...`;
|
|
55
|
-
const commitChoices = await (0, fetchCommitsByAuthor_1.fetchCommitsByAuthor)(options);
|
|
44
|
+
spinner.text = options.prFilter
|
|
45
|
+
? 'Loading pull requests...'
|
|
46
|
+
: `Loading commits from branch "${options.sourceBranch}"...`;
|
|
47
|
+
const commitChoices = options.prFilter
|
|
48
|
+
? await (0, fetchPullRequestBySearchQuery_1.fetchPullRequestBySearchQuery)(options)
|
|
49
|
+
: await (0, fetchCommitsByAuthor_1.fetchCommitsByAuthor)(options);
|
|
56
50
|
spinner.stop();
|
|
57
51
|
return (0, prompts_1.promptForCommits)({
|
|
58
52
|
commitChoices,
|
|
@@ -22,21 +22,21 @@ conflictingFiles, }) {
|
|
|
22
22
|
...options,
|
|
23
23
|
author: null,
|
|
24
24
|
dateSince: null,
|
|
25
|
-
dateUntil: commit.committedDate,
|
|
25
|
+
dateUntil: commit.sourceCommit.committedDate,
|
|
26
26
|
commitPaths: conflictingFiles,
|
|
27
27
|
});
|
|
28
28
|
const promises = await Promise.all(commitsInConflictingPaths
|
|
29
29
|
.filter((c) => {
|
|
30
30
|
// exclude the commit we are currently trying to backport
|
|
31
|
-
if (c.sha === commit.sha) {
|
|
31
|
+
if (c.sourceCommit.sha === commit.sourceCommit.sha) {
|
|
32
32
|
return false;
|
|
33
33
|
}
|
|
34
34
|
// exclude commits that are newer than the commit we are trying to backport
|
|
35
|
-
if (c.committedDate > commit.committedDate) {
|
|
35
|
+
if (c.sourceCommit.committedDate > commit.sourceCommit.committedDate) {
|
|
36
36
|
return false;
|
|
37
37
|
}
|
|
38
38
|
// only consider commits that have an associated pull request
|
|
39
|
-
if (!c.
|
|
39
|
+
if (!c.sourcePullRequest?.url) {
|
|
40
40
|
return false;
|
|
41
41
|
}
|
|
42
42
|
// only include commit if it has an unmerged PR for the given target branch
|
|
@@ -60,8 +60,8 @@ conflictingFiles, }) {
|
|
|
60
60
|
// get pull request for the target branch (if it exists)
|
|
61
61
|
const pendingBackportPr = c.expectedTargetPullRequests.find((pr) => pr.branch === targetBranch && pr.state === 'OPEN');
|
|
62
62
|
const formatted = pendingBackportPr
|
|
63
|
-
? ` - ${(0, commitFormatters_1.getFirstLine)(c.
|
|
64
|
-
: ` - ${(0, commitFormatters_1.getFirstLine)(c.
|
|
63
|
+
? ` - ${(0, commitFormatters_1.getFirstLine)(c.sourceCommit.message)} ${chalk_1.default.gray('(backport pending)')}\n ${pendingBackportPr.url}`
|
|
64
|
+
: ` - ${(0, commitFormatters_1.getFirstLine)(c.sourceCommit.message)} ${chalk_1.default.red('(backport missing)')}\n ${c.sourcePullRequest?.url}`;
|
|
65
65
|
return { formatted, commit: c };
|
|
66
66
|
});
|
|
67
67
|
}
|
|
@@ -18,7 +18,7 @@ function getTargetBranches(options, commits) {
|
|
|
18
18
|
// automatically backport to specified target branches
|
|
19
19
|
if (options.ci) {
|
|
20
20
|
if ((0, lodash_1.isEmpty)(missingTargetBranches)) {
|
|
21
|
-
throw new HandledError_1.HandledError(
|
|
21
|
+
throw new HandledError_1.HandledError({ code: 'no-branches-exception' });
|
|
22
22
|
}
|
|
23
23
|
return missingTargetBranches;
|
|
24
24
|
}
|
|
@@ -1,30 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.maybeSetupRepo = void 0;
|
|
7
|
-
const
|
|
4
|
+
const promises_1 = require("fs/promises");
|
|
5
|
+
const del = require("del");
|
|
8
6
|
const ora = require("ora");
|
|
9
7
|
const env_1 = require("../services/env");
|
|
10
8
|
const git_1 = require("../services/git");
|
|
11
9
|
async function maybeSetupRepo(options) {
|
|
12
|
-
const
|
|
10
|
+
const repoPath = (0, env_1.getRepoPath)(options);
|
|
11
|
+
const isAlreadyCloned = await getIsRepoCloned(repoPath);
|
|
13
12
|
// clone repo if folder does not already exists
|
|
14
13
|
if (!isAlreadyCloned) {
|
|
15
14
|
const spinner = ora().start();
|
|
16
15
|
try {
|
|
17
|
-
const
|
|
16
|
+
const sourcePath = await (0, git_1.getSourceRepoPath)(options);
|
|
17
|
+
const sourcePathHumanReadable = sourcePath.includes(options.gitHostname)
|
|
18
|
+
? options.gitHostname
|
|
19
|
+
: sourcePath;
|
|
20
|
+
const spinnerCloneText = `Cloning repository from ${sourcePathHumanReadable} (one-time operation)`;
|
|
18
21
|
spinner.text = `0% ${spinnerCloneText}`;
|
|
19
|
-
await (0,
|
|
20
|
-
await (0, git_1.cloneRepo)(options, (progress) => {
|
|
22
|
+
await (0, git_1.cloneRepo)({ sourcePath, targetPath: repoPath }, (progress) => {
|
|
21
23
|
spinner.text = `${progress}% ${spinnerCloneText}`;
|
|
22
24
|
});
|
|
23
25
|
spinner.succeed(`100% ${spinnerCloneText}`);
|
|
24
26
|
}
|
|
25
27
|
catch (e) {
|
|
26
28
|
spinner.fail();
|
|
27
|
-
await (
|
|
29
|
+
await del(repoPath);
|
|
28
30
|
throw e;
|
|
29
31
|
}
|
|
30
32
|
}
|
|
@@ -33,10 +35,22 @@ async function maybeSetupRepo(options) {
|
|
|
33
35
|
// ensure remote are setup with latest accessToken
|
|
34
36
|
await (0, git_1.deleteRemote)(options, options.authenticatedUsername);
|
|
35
37
|
await (0, git_1.addRemote)(options, options.authenticatedUsername);
|
|
36
|
-
//
|
|
38
|
+
// add remote for non-fork repo (if the above is a fork)
|
|
37
39
|
if (options.authenticatedUsername !== options.repoOwner) {
|
|
38
40
|
await (0, git_1.deleteRemote)(options, options.repoOwner);
|
|
39
41
|
await (0, git_1.addRemote)(options, options.repoOwner);
|
|
40
42
|
}
|
|
41
43
|
}
|
|
42
44
|
exports.maybeSetupRepo = maybeSetupRepo;
|
|
45
|
+
async function getIsRepoCloned(path) {
|
|
46
|
+
try {
|
|
47
|
+
const stats = await (0, promises_1.stat)(path);
|
|
48
|
+
return stats.isDirectory();
|
|
49
|
+
}
|
|
50
|
+
catch (e) {
|
|
51
|
+
if (e.code === 'ENOENT') {
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
throw e;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function maybe<T>(value: T): T | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PACKAGE_VERSION = "6.2.1";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function redact(stringToRedact: string, str: string): string;
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"branches",
|
|
15
15
|
"branching"
|
|
16
16
|
],
|
|
17
|
-
"version": "6.
|
|
17
|
+
"version": "6.3.0-beta",
|
|
18
18
|
"main": "./dist/entrypoint.module.js",
|
|
19
19
|
"types": "dist/entrypoint.module.d.ts",
|
|
20
20
|
"bin": {
|
|
@@ -22,14 +22,18 @@
|
|
|
22
22
|
},
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"scripts": {
|
|
25
|
-
"lint": "tsc --project ./tsconfig.test.json && eslint './**/*.{ts,js}'",
|
|
26
|
-
"prepare": "husky install",
|
|
27
25
|
"postinstall": "test -f ./dist/scripts/runPostinstall.js && node ./dist/scripts/runPostinstall.js || echo 'Dist folder missing'",
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
26
|
+
"postversion": "yarn extractPackageVersion && yarn build",
|
|
27
|
+
"prepare": "husky install",
|
|
28
|
+
"prepublishOnly": "yarn build",
|
|
29
|
+
"build": "tsc --project ./tsconfig.prod.json",
|
|
30
|
+
"extractPackageVersion": "node -p \"'export const PACKAGE_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" | prettier > src/utils/packageVersion.ts",
|
|
31
|
+
"lint": "tsc --project ./tsconfig.test.json && eslint './**/*.{ts,js}'",
|
|
32
|
+
"start": "ts-node --transpile-only ./src/entrypoint.cli.ts",
|
|
31
33
|
"test-all": "yarn lint && jest --config ./jest.config.all.js",
|
|
32
|
-
"
|
|
34
|
+
"test-mutation": "jest --config ./jest.config.mutation.js",
|
|
35
|
+
"test-private": "jest --config ./jest.config.private.js",
|
|
36
|
+
"test": "jest"
|
|
33
37
|
},
|
|
34
38
|
"lint-staged": {
|
|
35
39
|
"*.ts": [
|
|
@@ -59,7 +63,7 @@
|
|
|
59
63
|
},
|
|
60
64
|
"dependencies": {
|
|
61
65
|
"@octokit/rest": "^18.12.0",
|
|
62
|
-
"axios": "^0.
|
|
66
|
+
"axios": "^0.25.0",
|
|
63
67
|
"dedent": "^0.7.0",
|
|
64
68
|
"del": "^6.0.0",
|
|
65
69
|
"find-up": "^5.0.0",
|
|
@@ -71,38 +75,38 @@
|
|
|
71
75
|
"strip-json-comments": "^3.1.1",
|
|
72
76
|
"terminal-link": "^2.1.1",
|
|
73
77
|
"utility-types": "^3.10.0",
|
|
74
|
-
"winston": "^3.
|
|
78
|
+
"winston": "^3.5.1",
|
|
75
79
|
"yargs": "^17.3.1"
|
|
76
80
|
},
|
|
77
81
|
"devDependencies": {
|
|
78
82
|
"@types/core-js": "^2.5.5",
|
|
79
83
|
"@types/dedent": "^0.7.0",
|
|
80
|
-
"@types/inquirer": "^8.
|
|
84
|
+
"@types/inquirer": "^8.2.0",
|
|
81
85
|
"@types/jest": "^27.4.0",
|
|
82
86
|
"@types/lodash": "^4.14.178",
|
|
83
|
-
"@types/node": "^
|
|
87
|
+
"@types/node": "^17.0.8",
|
|
84
88
|
"@types/safe-json-stringify": "^1.1.2",
|
|
85
89
|
"@types/yargs": "^17.0.8",
|
|
86
90
|
"@types/yargs-parser": "^20.2.1",
|
|
87
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
88
|
-
"@typescript-eslint/parser": "^5.
|
|
89
|
-
"eslint": "^8.
|
|
91
|
+
"@typescript-eslint/eslint-plugin": "^5.10.2",
|
|
92
|
+
"@typescript-eslint/parser": "^5.10.2",
|
|
93
|
+
"eslint": "^8.8.0",
|
|
90
94
|
"eslint-config-prettier": "^8.3.0",
|
|
91
95
|
"eslint-plugin-import": "^2.25.4",
|
|
92
|
-
"eslint-plugin-jest": "^
|
|
96
|
+
"eslint-plugin-jest": "^26.0.0",
|
|
93
97
|
"eslint-plugin-prettier": "^4.0.0",
|
|
94
|
-
"graphql": "^16.
|
|
98
|
+
"graphql": "^16.3.0",
|
|
95
99
|
"graphql-config": "^4.1.0",
|
|
96
100
|
"graphql-tag": "^2.12.6",
|
|
97
101
|
"husky": "^7.0.4",
|
|
98
102
|
"jest": "^27.4.7",
|
|
99
103
|
"jest-snapshot-serializer-ansi": "^1.0.0",
|
|
100
|
-
"lint-staged": "^12.
|
|
101
|
-
"nock": "^13.2.
|
|
104
|
+
"lint-staged": "^12.3.3",
|
|
105
|
+
"nock": "^13.2.4",
|
|
102
106
|
"prettier": "^2.5.1",
|
|
103
107
|
"strip-ansi": "^6.0.1",
|
|
104
|
-
"ts-jest": "^27.1.
|
|
108
|
+
"ts-jest": "^27.1.3",
|
|
105
109
|
"ts-node": "^10.4.0",
|
|
106
|
-
"typescript": "^4.5.
|
|
110
|
+
"typescript": "^4.5.5"
|
|
107
111
|
}
|
|
108
112
|
}
|