backport 6.2.1 → 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 +13 -5
- package/dist/backportRun.d.ts +2 -2
- package/dist/backportRun.js +11 -7
- package/dist/entrypoint.cli.js +0 -0
- package/dist/entrypoint.module.js +1 -1
- package/dist/options/ConfigOptions.d.ts +2 -0
- package/dist/options/cliArgs.js +3 -2
- package/dist/options/config/config.d.ts +2 -0
- package/dist/options/config/config.js +2 -7
- package/dist/options/config/globalConfig.js +3 -3
- package/dist/options/config/readConfigFile.d.ts +2 -0
- package/dist/options/config/readConfigFile.js +2 -2
- package/dist/options/options.d.ts +4 -27
- package/dist/options/options.js +37 -29
- package/dist/runSequentially.d.ts +0 -1
- package/dist/runSequentially.js +0 -1
- 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/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 +8 -5
- package/dist/services/github/v3/createStatusComment.js +26 -15
- 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/getOptionsFromGithub/getOptionsFromGithub.d.ts +3 -1
- package/dist/services/github/v4/getOptionsFromGithub/getOptionsFromGithub.js +38 -32
- 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 +6 -3
- package/dist/services/logger.js +11 -7
- 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 +12 -13
- 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 +25 -5
- 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/package.json +22 -18
- package/yarn.lock +114 -147
- package/dist/entrypoint.api.d.ts +0 -22
- package/dist/entrypoint.api.js +0 -57
- package/dist/entrypoint.api.private.test.d.ts +0 -1
- package/dist/entrypoint.api.private.test.js +0 -37
- 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/main.d.ts +0 -14
- package/dist/main.js +0 -68
- 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 -48
- package/dist/options/config/getOptionsFromGit.d.ts +0 -4
- package/dist/options/config/getOptionsFromGit.js +0 -8
- package/dist/options/config/getProjectConfig.d.ts +0 -0
- package/dist/options/config/getProjectConfig.js +0 -1
- package/dist/options/config/globalConfig.test.d.ts +0 -1
- package/dist/options/config/globalConfig.test.js +0 -80
- package/dist/options/config/projectConfig.test.d.ts +0 -1
- package/dist/options/config/projectConfig.test.js +0 -128
- 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 -338
- 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/react-components/0-loadOptions.d.ts +0 -6
- package/dist/react-components/0-loadOptions.js +0 -45
- package/dist/react-components/1-loadCommit.d.ts +0 -8
- package/dist/react-components/1-loadCommit.js +0 -88
- package/dist/react-components/1a-loadCommit.d.ts +0 -5
- package/dist/react-components/1a-loadCommit.js +0 -76
- package/dist/react-components/1b-commitChoices.d.ts +0 -5
- package/dist/react-components/1b-commitChoices.js +0 -98
- package/dist/react-components/2-commitChoices.d.ts +0 -8
- package/dist/react-components/2-commitChoices.js +0 -96
- package/dist/react-components/2-commitsPrompt.d.ts +0 -8
- package/dist/react-components/2-commitsPrompt.js +0 -96
- package/dist/react-components/2-targetBranchChoices.d.ts +0 -9
- package/dist/react-components/2-targetBranchChoices.js +0 -109
- package/dist/react-components/3-cherrypick.d.ts +0 -1
- package/dist/react-components/3-cherrypick.js +0 -2
- package/dist/react-components/App.d.ts +0 -2
- package/dist/react-components/App.js +0 -35
- package/dist/react-components/BackportStateContext.d.ts +0 -33
- package/dist/react-components/BackportStateContext.js +0 -42
- package/dist/react-components/CommitPrompt/2-commitsPrompt.d.ts +0 -8
- package/dist/react-components/CommitPrompt/2-commitsPrompt.js +0 -96
- package/dist/react-components/CommitPrompt/CommitPrompt.d.ts +0 -8
- package/dist/react-components/CommitPrompt/CommitPrompt.js +0 -96
- package/dist/react-components/CommitPrompt/getCommits.d.ts +0 -2
- package/dist/react-components/CommitPrompt/getCommits.js +0 -27
- package/dist/react-components/CommitPrompt.d.ts +0 -8
- package/dist/react-components/CommitPrompt.js +0 -96
- package/dist/react-components/CustomMultiSelect.d.ts +0 -13
- package/dist/react-components/CustomMultiSelect.js +0 -21
- package/dist/react-components/CustomMultiSelectItem.d.ts +0 -5
- package/dist/react-components/CustomMultiSelectItem.js +0 -12
- package/dist/react-components/CustomSelect.d.ts +0 -14
- package/dist/react-components/CustomSelect.js +0 -34
- package/dist/react-components/ErrorBoundary.d.ts +0 -15
- package/dist/react-components/ErrorBoundary.js +0 -53
- package/dist/react-components/MultiSelect.d.ts +0 -7
- package/dist/react-components/MultiSelect.js +0 -16
- package/dist/react-components/hooks/useAsync.d.ts +0 -12
- package/dist/react-components/hooks/useAsync.js +0 -73
- package/dist/runSequentially.test.d.ts +0 -1
- package/dist/runSequentially.test.js +0 -195
- 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/backportRun/backportRun.ci.d.ts +0 -6
- package/dist/services/backportRun/backportRun.ci.js +0 -81
- package/dist/services/backportRun/backportRun.d.ts +0 -14
- package/dist/services/backportRun/backportRun.interactive.d.ts +0 -1
- package/dist/services/backportRun/backportRun.interactive.js +0 -4
- package/dist/services/backportRun/backportRun.js +0 -14
- package/dist/services/backportRun/backportState.d.ts +0 -4
- package/dist/services/backportRun/backportState.js +0 -28
- package/dist/services/backportRun/getCommits.d.ts +0 -2
- package/dist/services/backportRun/getCommits.js +0 -20
- package/dist/services/backportRun/runSequentially.d.ts +0 -20
- package/dist/services/backportRun/runSequentially.js +0 -41
- package/dist/services/backportRun/runSequentially.test.d.ts +0 -1
- package/dist/services/backportRun/runSequentially.test.js +0 -199
- package/dist/services/cherrypickAndCreateTargetPullRequest.d.ts +0 -12
- package/dist/services/cherrypickAndCreateTargetPullRequest.js +0 -206
- package/dist/services/cherrypickAndCreateTargetPullRequest.test.d.ts +0 -1
- package/dist/services/cherrypickAndCreateTargetPullRequest.test.js +0 -403
- package/dist/services/env.test.d.ts +0 -1
- package/dist/services/env.test.js +0 -21
- package/dist/services/fs-promisified.d.ts +0 -6
- package/dist/services/fs-promisified.js +0 -12
- package/dist/services/getCommits.d.ts +0 -2
- package/dist/services/getCommits.js +0 -38
- package/dist/services/getCommitsWithoutBackports.d.ts +0 -11
- package/dist/services/getCommitsWithoutBackports.js +0 -68
- package/dist/services/getCommitsWithoutBackports.test.d.ts +0 -1
- package/dist/services/getCommitsWithoutBackports.test.js +0 -259
- 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/getTargetBranches.d.ts +0 -5
- package/dist/services/getTargetBranches.js +0 -60
- package/dist/services/getTargetBranches.test.d.ts +0 -1
- package/dist/services/getTargetBranches.test.js +0 -180
- 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 -160
- package/dist/services/github/v3/createStatusComment.test.d.ts +0 -1
- package/dist/services/github/v3/createStatusComment.test.js +0 -326
- 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.d.ts +0 -8
- package/dist/services/github/v4/fetchProjectConfig.js +0 -56
- 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/fetchRemoteProjectConfig.private.test.d.ts +0 -1
- package/dist/services/github/v4/fetchRemoteProjectConfig.private.test.js +0 -52
- 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/maybeSetupRepo.d.ts +0 -2
- package/dist/services/maybeSetupRepo.js +0 -33
- package/dist/services/maybeSetupRepo.test.d.ts +0 -1
- package/dist/services/maybeSetupRepo.test.js +0 -78
- 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/backport-e2e.private.test.d.ts +0 -1
- package/dist/test/backport-e2e.private.test.js +0 -325
- package/dist/test/handleUnbackportedPullRequests.private.test.d.ts +0 -1
- package/dist/test/handleUnbackportedPullRequests.private.test.js +0 -43
- package/dist/test/inquirer.private.test.d.ts +0 -1
- package/dist/test/inquirer.private.test.js +0 -170
- 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/todo-delete.d.ts +0 -1
- package/dist/todo-delete.js +0 -17
- 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 -427
- 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 -78
- package/dist/utils/excludeUndefined.test.d.ts +0 -1
- package/dist/utils/excludeUndefined.test.js +0 -24
- package/dist/utils/sequentially.d.ts +0 -1
- package/dist/utils/sequentially.js +0 -10
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getCommitsByAuthorMock = void 0;
|
|
4
|
-
const getCommitsByAuthorMock = (repoName) => ({
|
|
5
|
-
repository: {
|
|
6
|
-
ref: {
|
|
7
|
-
target: {
|
|
8
|
-
history: {
|
|
9
|
-
edges: [
|
|
10
|
-
{
|
|
11
|
-
node: {
|
|
12
|
-
committedDate: '2021-12-13T22:46:29Z',
|
|
13
|
-
oid: '79cf18453ec32a4677009dcbab1c9c8c73fc14fe',
|
|
14
|
-
message: 'Add SF mention (#80)\n\n* Add SF mention\r\n\r\n* Add several emojis!',
|
|
15
|
-
associatedPullRequests: {
|
|
16
|
-
edges: [
|
|
17
|
-
{
|
|
18
|
-
node: {
|
|
19
|
-
baseRefName: 'master',
|
|
20
|
-
labels: {
|
|
21
|
-
nodes: [{ name: 'my-label-a' }],
|
|
22
|
-
},
|
|
23
|
-
mergeCommit: {
|
|
24
|
-
committedDate: '2021-12-13T22:46:29Z',
|
|
25
|
-
oid: '79cf18453ec32a4677009dcbab1c9c8c73fc14fe',
|
|
26
|
-
message: 'Add SF mention (#80)\n\n* Add SF mention\r\n\r\n* Add several emojis!',
|
|
27
|
-
},
|
|
28
|
-
repository: {
|
|
29
|
-
name: repoName,
|
|
30
|
-
owner: {
|
|
31
|
-
login: 'elastic',
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
number: 80,
|
|
35
|
-
timelineItems: {
|
|
36
|
-
edges: [
|
|
37
|
-
{
|
|
38
|
-
node: {
|
|
39
|
-
source: {
|
|
40
|
-
__typename: 'PullRequest',
|
|
41
|
-
number: 99,
|
|
42
|
-
title: 'some title',
|
|
43
|
-
state: 'MERGED',
|
|
44
|
-
baseRefName: '6.3',
|
|
45
|
-
commits: {
|
|
46
|
-
edges: [
|
|
47
|
-
{
|
|
48
|
-
node: {
|
|
49
|
-
commit: {
|
|
50
|
-
message: 'Add SF mention (#80)\n\n* Add SF mention\r\n\r\n* Add several emojis!',
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
],
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
],
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
],
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
],
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
});
|
|
73
|
-
exports.getCommitsByAuthorMock = getCommitsByAuthorMock;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { PullRequestNode } from '../../../../types/commitNode';
|
|
2
|
-
export declare function getPullRequestNodeMock({ sourcePullRequest, targetPullRequest, }: {
|
|
3
|
-
sourcePullRequest: {
|
|
4
|
-
commitMessage: string;
|
|
5
|
-
number: number;
|
|
6
|
-
};
|
|
7
|
-
targetPullRequest: {
|
|
8
|
-
title: string;
|
|
9
|
-
commitMessages: string[];
|
|
10
|
-
number: number;
|
|
11
|
-
};
|
|
12
|
-
}): PullRequestNode;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getPullRequestNodeMock = void 0;
|
|
4
|
-
function getPullRequestNodeMock({ sourcePullRequest, targetPullRequest, }) {
|
|
5
|
-
return {
|
|
6
|
-
labels: {
|
|
7
|
-
nodes: [{ name: 'my-label-a' }],
|
|
8
|
-
},
|
|
9
|
-
mergeCommit: {
|
|
10
|
-
committedDate: 'zzz',
|
|
11
|
-
oid: 'f3b618b9421fdecdb36862f907afbdd6344b361d',
|
|
12
|
-
message: sourcePullRequest.commitMessage,
|
|
13
|
-
},
|
|
14
|
-
repository: {
|
|
15
|
-
name: 'kibana',
|
|
16
|
-
owner: {
|
|
17
|
-
login: 'elastic',
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
baseRefName: 'master',
|
|
21
|
-
number: sourcePullRequest.number,
|
|
22
|
-
timelineItems: {
|
|
23
|
-
edges: [
|
|
24
|
-
{
|
|
25
|
-
node: {
|
|
26
|
-
source: {
|
|
27
|
-
__typename: 'PullRequest',
|
|
28
|
-
number: targetPullRequest.number,
|
|
29
|
-
title: targetPullRequest.title,
|
|
30
|
-
state: 'MERGED',
|
|
31
|
-
commits: {
|
|
32
|
-
edges: targetPullRequest.commitMessages.map((message) => ({
|
|
33
|
-
node: { commit: { message } },
|
|
34
|
-
})),
|
|
35
|
-
},
|
|
36
|
-
baseRefName: '7.x',
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
},
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
exports.getPullRequestNodeMock = getPullRequestNodeMock;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const throwOnInvalidAccessToken_1 = require("./throwOnInvalidAccessToken");
|
|
4
|
-
describe('throwOnInvalidAccessToken', () => {
|
|
5
|
-
describe('when status code is', () => {
|
|
6
|
-
it('should handle invalid access token', () => {
|
|
7
|
-
const error = {
|
|
8
|
-
response: {
|
|
9
|
-
status: 401,
|
|
10
|
-
headers: {},
|
|
11
|
-
},
|
|
12
|
-
};
|
|
13
|
-
return expect(() => (0, throwOnInvalidAccessToken_1.throwOnInvalidAccessToken)({
|
|
14
|
-
repoOwner: 'elastic',
|
|
15
|
-
repoName: 'kibana',
|
|
16
|
-
error,
|
|
17
|
-
})).toThrowError('Please check your access token and make sure it is valid');
|
|
18
|
-
});
|
|
19
|
-
it('should handle SSO error', () => {
|
|
20
|
-
const error = {
|
|
21
|
-
response: {
|
|
22
|
-
status: 200,
|
|
23
|
-
headers: { 'x-github-sso': 'required; url=https://ssourl.com' },
|
|
24
|
-
data: {
|
|
25
|
-
errors: [{ type: 'FORBIDDEN' }],
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
};
|
|
29
|
-
return expect(() => (0, throwOnInvalidAccessToken_1.throwOnInvalidAccessToken)({
|
|
30
|
-
repoOwner: 'elastic',
|
|
31
|
-
repoName: 'kibana',
|
|
32
|
-
error,
|
|
33
|
-
})).toThrowErrorMatchingSnapshot();
|
|
34
|
-
});
|
|
35
|
-
it('should handle non-existing repo', () => {
|
|
36
|
-
const error = {
|
|
37
|
-
response: {
|
|
38
|
-
status: 200,
|
|
39
|
-
headers: {
|
|
40
|
-
'x-oauth-scopes': 'a,b,c',
|
|
41
|
-
'x-accepted-oauth-scopes': 'a,b,c',
|
|
42
|
-
},
|
|
43
|
-
data: {
|
|
44
|
-
errors: [{ type: 'NOT_FOUND', path: ['repository'] }],
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
};
|
|
48
|
-
return expect(() => (0, throwOnInvalidAccessToken_1.throwOnInvalidAccessToken)({
|
|
49
|
-
repoOwner: 'elastic',
|
|
50
|
-
repoName: 'kibana',
|
|
51
|
-
error,
|
|
52
|
-
})).toThrowError(`The repository "elastic/kibana" doesn't exist`);
|
|
53
|
-
});
|
|
54
|
-
it('should handle insufficient permissions (oauth scopes)', () => {
|
|
55
|
-
const error = {
|
|
56
|
-
response: {
|
|
57
|
-
status: 200,
|
|
58
|
-
headers: {
|
|
59
|
-
'x-oauth-scopes': 'a,b',
|
|
60
|
-
'x-accepted-oauth-scopes': 'a,b,c',
|
|
61
|
-
},
|
|
62
|
-
data: {
|
|
63
|
-
errors: [{ type: 'NOT_FOUND', path: ['repository'] }],
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
};
|
|
67
|
-
return expect(() => (0, throwOnInvalidAccessToken_1.throwOnInvalidAccessToken)({
|
|
68
|
-
repoOwner: 'elastic',
|
|
69
|
-
repoName: 'kibana',
|
|
70
|
-
error,
|
|
71
|
-
})).toThrowErrorMatchingSnapshot();
|
|
72
|
-
});
|
|
73
|
-
it('should not handle unknown cases', () => {
|
|
74
|
-
const error = {
|
|
75
|
-
response: {
|
|
76
|
-
status: 500,
|
|
77
|
-
headers: {},
|
|
78
|
-
},
|
|
79
|
-
};
|
|
80
|
-
return expect((0, throwOnInvalidAccessToken_1.throwOnInvalidAccessToken)({
|
|
81
|
-
repoOwner: 'elastic',
|
|
82
|
-
repoName: 'kibana',
|
|
83
|
-
error,
|
|
84
|
-
})).toBe(undefined);
|
|
85
|
-
});
|
|
86
|
-
});
|
|
87
|
-
});
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.maybeSetupRepo = void 0;
|
|
4
|
-
const git_1 = require("../services/git");
|
|
5
|
-
async function maybeSetupRepo(options) {
|
|
6
|
-
const isAlreadyCloned = await (0, git_1.repoExists)(options);
|
|
7
|
-
// clone repo if folder does not already exists
|
|
8
|
-
if (!isAlreadyCloned) {
|
|
9
|
-
try {
|
|
10
|
-
const spinnerCloneText = 'Cloning repository (one-time operation)';
|
|
11
|
-
// spinner.text = `0% ${spinnerCloneText}`;
|
|
12
|
-
// await cloneRepo(options, (progress: string) => {
|
|
13
|
-
// spinner.text = `${progress}% ${spinnerCloneText}`;
|
|
14
|
-
// });
|
|
15
|
-
// spinner.succeed(`100% ${spinnerCloneText}`);
|
|
16
|
-
}
|
|
17
|
-
catch (e) {
|
|
18
|
-
await (0, git_1.deleteRepo)(options);
|
|
19
|
-
throw e;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
// delete default "origin" remote to avoid confusion
|
|
23
|
-
await (0, git_1.deleteRemote)(options, 'origin');
|
|
24
|
-
// ensure remote are setup with latest accessToken
|
|
25
|
-
await (0, git_1.deleteRemote)(options, options.authenticatedUsername);
|
|
26
|
-
await (0, git_1.addRemote)(options, options.authenticatedUsername);
|
|
27
|
-
// update remote for origin (if the above is a fork)
|
|
28
|
-
if (options.authenticatedUsername !== options.repoOwner) {
|
|
29
|
-
await (0, git_1.deleteRemote)(options, options.repoOwner);
|
|
30
|
-
await (0, git_1.addRemote)(options, options.repoOwner);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
exports.maybeSetupRepo = maybeSetupRepo;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
20
|
-
};
|
|
21
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
22
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
|
-
};
|
|
24
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
const os_1 = __importDefault(require("os"));
|
|
26
|
-
const del_1 = __importDefault(require("del"));
|
|
27
|
-
const childProcess = __importStar(require("../services/child-process-promisified"));
|
|
28
|
-
const fs = __importStar(require("../services/fs-promisified"));
|
|
29
|
-
const maybeSetupRepo_1 = require("./maybeSetupRepo");
|
|
30
|
-
describe('maybeSetupRepo', () => {
|
|
31
|
-
let execSpy;
|
|
32
|
-
beforeEach(() => {
|
|
33
|
-
jest.spyOn(os_1.default, 'homedir').mockReturnValue('/myHomeDir');
|
|
34
|
-
execSpy = jest
|
|
35
|
-
.spyOn(childProcess, 'exec')
|
|
36
|
-
.mockResolvedValue({ stderr: '', stdout: '' });
|
|
37
|
-
});
|
|
38
|
-
it('should delete repo if an error occurs', async () => {
|
|
39
|
-
expect.assertions(2);
|
|
40
|
-
execSpy = jest
|
|
41
|
-
.spyOn(childProcess, 'execAsCallback')
|
|
42
|
-
.mockImplementation((cmd) => {
|
|
43
|
-
if (cmd.startsWith('git clone')) {
|
|
44
|
-
throw new Error('Simulated git clone failure');
|
|
45
|
-
}
|
|
46
|
-
throw new Error('unknown error');
|
|
47
|
-
});
|
|
48
|
-
await expect((0, maybeSetupRepo_1.maybeSetupRepo)({
|
|
49
|
-
accessToken: 'myAccessToken',
|
|
50
|
-
gitHostname: 'github.com',
|
|
51
|
-
repoName: 'kibana',
|
|
52
|
-
repoOwner: 'elastic',
|
|
53
|
-
})).rejects.toThrowError('Simulated git clone failure');
|
|
54
|
-
expect(del_1.default).toHaveBeenCalledWith('/myHomeDir/.backport/repositories/elastic/kibana');
|
|
55
|
-
});
|
|
56
|
-
describe('if repo already exists', () => {
|
|
57
|
-
beforeEach(() => {
|
|
58
|
-
// @ts-expect-error
|
|
59
|
-
jest.spyOn(fs, 'stat').mockResolvedValue({ isDirectory: () => true });
|
|
60
|
-
});
|
|
61
|
-
it('should re-create remotes for both source repo and fork', async () => {
|
|
62
|
-
await (0, maybeSetupRepo_1.maybeSetupRepo)({
|
|
63
|
-
accessToken: 'myAccessToken',
|
|
64
|
-
authenticatedUsername: 'sqren_authenticated',
|
|
65
|
-
gitHostname: 'github.com',
|
|
66
|
-
repoName: 'kibana',
|
|
67
|
-
repoOwner: 'elastic',
|
|
68
|
-
});
|
|
69
|
-
expect(execSpy.mock.calls.map(([cmd]) => cmd)).toEqual([
|
|
70
|
-
'git remote rm origin',
|
|
71
|
-
'git remote rm sqren_authenticated',
|
|
72
|
-
'git remote add sqren_authenticated https://x-access-token:myAccessToken@github.com/sqren_authenticated/kibana.git',
|
|
73
|
-
'git remote rm elastic',
|
|
74
|
-
'git remote add elastic https://x-access-token:myAccessToken@github.com/elastic/kibana.git',
|
|
75
|
-
]);
|
|
76
|
-
});
|
|
77
|
-
});
|
|
78
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const strip_ansi_1 = __importDefault(require("strip-ansi"));
|
|
7
|
-
const prompts_1 = require("./prompts");
|
|
8
|
-
describe('prompt', () => {
|
|
9
|
-
describe('getChoicesForCommitPrompt', () => {
|
|
10
|
-
it('should display status badges via `expectedTargetPullRequests`', () => {
|
|
11
|
-
const commits = [
|
|
12
|
-
{
|
|
13
|
-
sha: 'ae9d51b7fe3ee6f30d0d196c782e0dcabb7ac5ff',
|
|
14
|
-
originalMessage: '[APM] Remove log-log descriptions from correlation charts (#119700)',
|
|
15
|
-
pullNumber: 119700,
|
|
16
|
-
expectedTargetPullRequests: [
|
|
17
|
-
{ number: 120178, branch: '8.0', state: 'MERGED' },
|
|
18
|
-
{ number: 120179, branch: '7.16', state: 'MERGED' },
|
|
19
|
-
{ number: 120179, branch: '7.15', state: 'MISSING' },
|
|
20
|
-
],
|
|
21
|
-
},
|
|
22
|
-
];
|
|
23
|
-
const choices = (0, prompts_1.getChoicesForCommitPrompt)(commits, false).map(({ name, short }) => ({ name: (0, strip_ansi_1.default)(name), short }));
|
|
24
|
-
expect(choices).toEqual([
|
|
25
|
-
{
|
|
26
|
-
name: '1. [APM] Remove log-log descriptions from correlation charts (#119700) 8.0, 7.16, 7.15',
|
|
27
|
-
short: '#119700 (ae9d51b7)',
|
|
28
|
-
},
|
|
29
|
-
]);
|
|
30
|
-
});
|
|
31
|
-
it('should list choices', () => {
|
|
32
|
-
const commits = [
|
|
33
|
-
{
|
|
34
|
-
committedDate: '',
|
|
35
|
-
sourceBranch: 'master',
|
|
36
|
-
sha: 'b1b491959dab47aeb83c88ee2accb2db46d23793',
|
|
37
|
-
originalMessage: '[APM] Prefer service.name for logs correlation (#120694)',
|
|
38
|
-
pullNumber: 120694,
|
|
39
|
-
expectedTargetPullRequests: [],
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
committedDate: '',
|
|
43
|
-
sourceBranch: 'master',
|
|
44
|
-
sha: 'b1bb4a93959f19a653b9cfb207a5c6acb6559482',
|
|
45
|
-
originalMessage: '[APM] Disable telemetry in agent config endpoint (#120106)',
|
|
46
|
-
pullNumber: 120106,
|
|
47
|
-
expectedTargetPullRequests: [],
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
committedDate: '',
|
|
51
|
-
sourceBranch: 'master',
|
|
52
|
-
sha: '434f6e6a88faf24dc1ea41f9f726db78e46355a7',
|
|
53
|
-
originalMessage: '[APM] Remove index_pattern.json and add custom field formatters (#119915)',
|
|
54
|
-
pullNumber: 119915,
|
|
55
|
-
expectedTargetPullRequests: [],
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
committedDate: '',
|
|
59
|
-
sourceBranch: 'master',
|
|
60
|
-
sha: 'ae9d51b7fe3ee6f30d0d196c782e0dcabb7ac5ff',
|
|
61
|
-
originalMessage: '[APM] Remove log-log descriptions from correlation charts (#119700)',
|
|
62
|
-
pullNumber: 119700,
|
|
63
|
-
expectedTargetPullRequests: [],
|
|
64
|
-
},
|
|
65
|
-
];
|
|
66
|
-
const choices = (0, prompts_1.getChoicesForCommitPrompt)(commits, false).map(({ name, short }) => ({ name: (0, strip_ansi_1.default)(name), short }));
|
|
67
|
-
expect(choices).toEqual([
|
|
68
|
-
{
|
|
69
|
-
name: '1. [APM] Prefer service.name for logs correlation (#120694) ',
|
|
70
|
-
short: '#120694 (b1b49195)',
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
name: '2. [APM] Disable telemetry in agent config endpoint (#120106) ',
|
|
74
|
-
short: '#120106 (b1bb4a93)',
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
name: '3. [APM] Remove index_pattern.json and add custom field formatters (#119915) ',
|
|
78
|
-
short: '#119915 (434f6e6a)',
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
name: '4. [APM] Remove log-log descriptions from correlation charts (#119700) ',
|
|
82
|
-
short: '#119700 (ae9d51b7)',
|
|
83
|
-
},
|
|
84
|
-
]);
|
|
85
|
-
});
|
|
86
|
-
});
|
|
87
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|