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
package/yarn.lock
CHANGED
|
@@ -1069,10 +1069,10 @@
|
|
|
1069
1069
|
dependencies:
|
|
1070
1070
|
"@types/node" "*"
|
|
1071
1071
|
|
|
1072
|
-
"@types/inquirer@^8.
|
|
1073
|
-
version "8.
|
|
1074
|
-
resolved "https://registry.yarnpkg.com/@types/inquirer/-/inquirer-8.
|
|
1075
|
-
integrity sha512-
|
|
1072
|
+
"@types/inquirer@^8.2.0":
|
|
1073
|
+
version "8.2.0"
|
|
1074
|
+
resolved "https://registry.yarnpkg.com/@types/inquirer/-/inquirer-8.2.0.tgz#b9566d048f5ff65159f2ed97aff45fe0f00b35ec"
|
|
1075
|
+
integrity sha512-BNoMetRf3gmkpAlV5we+kxyZTle7YibdOntIZbU5pyIfMdcwy784KfeZDAcuyMznkh5OLa17RVXZOGA5LTlkgQ==
|
|
1076
1076
|
dependencies:
|
|
1077
1077
|
"@types/through" "*"
|
|
1078
1078
|
rxjs "^7.2.0"
|
|
@@ -1189,14 +1189,14 @@
|
|
|
1189
1189
|
dependencies:
|
|
1190
1190
|
"@types/yargs-parser" "*"
|
|
1191
1191
|
|
|
1192
|
-
"@typescript-eslint/eslint-plugin@^5.
|
|
1193
|
-
version "5.
|
|
1194
|
-
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.
|
|
1195
|
-
integrity sha512-
|
|
1192
|
+
"@typescript-eslint/eslint-plugin@^5.10.2":
|
|
1193
|
+
version "5.10.2"
|
|
1194
|
+
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.10.2.tgz#f8c1d59fc37bd6d9d11c97267fdfe722c4777152"
|
|
1195
|
+
integrity sha512-4W/9lLuE+v27O/oe7hXJKjNtBLnZE8tQAFpapdxwSVHqtmIoPB1gph3+ahNwVuNL37BX7YQHyGF9Xv6XCnIX2Q==
|
|
1196
1196
|
dependencies:
|
|
1197
|
-
"@typescript-eslint/
|
|
1198
|
-
"@typescript-eslint/
|
|
1199
|
-
"@typescript-eslint/
|
|
1197
|
+
"@typescript-eslint/scope-manager" "5.10.2"
|
|
1198
|
+
"@typescript-eslint/type-utils" "5.10.2"
|
|
1199
|
+
"@typescript-eslint/utils" "5.10.2"
|
|
1200
1200
|
debug "^4.3.2"
|
|
1201
1201
|
functional-red-black-tree "^1.0.1"
|
|
1202
1202
|
ignore "^5.1.8"
|
|
@@ -1204,115 +1204,69 @@
|
|
|
1204
1204
|
semver "^7.3.5"
|
|
1205
1205
|
tsutils "^3.21.0"
|
|
1206
1206
|
|
|
1207
|
-
"@typescript-eslint/
|
|
1208
|
-
version "5.
|
|
1209
|
-
resolved "https://registry.yarnpkg.com/@typescript-eslint/
|
|
1210
|
-
integrity sha512-
|
|
1207
|
+
"@typescript-eslint/parser@^5.10.2":
|
|
1208
|
+
version "5.10.2"
|
|
1209
|
+
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.10.2.tgz#b6076d27cc5499ce3f2c625f5ccde946ecb7db9a"
|
|
1210
|
+
integrity sha512-JaNYGkaQVhP6HNF+lkdOr2cAs2wdSZBoalE22uYWq8IEv/OVH0RksSGydk+sW8cLoSeYmC+OHvRyv2i4AQ7Czg==
|
|
1211
1211
|
dependencies:
|
|
1212
|
-
"@
|
|
1213
|
-
"@typescript-eslint/
|
|
1214
|
-
"@typescript-eslint/
|
|
1215
|
-
"@typescript-eslint/typescript-estree" "5.9.1"
|
|
1216
|
-
eslint-scope "^5.1.1"
|
|
1217
|
-
eslint-utils "^3.0.0"
|
|
1218
|
-
|
|
1219
|
-
"@typescript-eslint/experimental-utils@^5.0.0":
|
|
1220
|
-
version "5.6.0"
|
|
1221
|
-
resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-5.6.0.tgz#f3a5960f2004abdcac7bb81412bafc1560841c23"
|
|
1222
|
-
integrity sha512-VDoRf3Qj7+W3sS/ZBXZh3LBzp0snDLEgvp6qj0vOAIiAPM07bd5ojQ3CTzF/QFl5AKh7Bh1ycgj6lFBJHUt/DA==
|
|
1223
|
-
dependencies:
|
|
1224
|
-
"@types/json-schema" "^7.0.9"
|
|
1225
|
-
"@typescript-eslint/scope-manager" "5.6.0"
|
|
1226
|
-
"@typescript-eslint/types" "5.6.0"
|
|
1227
|
-
"@typescript-eslint/typescript-estree" "5.6.0"
|
|
1228
|
-
eslint-scope "^5.1.1"
|
|
1229
|
-
eslint-utils "^3.0.0"
|
|
1230
|
-
|
|
1231
|
-
"@typescript-eslint/parser@^5.9.1":
|
|
1232
|
-
version "5.9.1"
|
|
1233
|
-
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.9.1.tgz#b114011010a87e17b3265ca715e16c76a9834cef"
|
|
1234
|
-
integrity sha512-PLYO0AmwD6s6n0ZQB5kqPgfvh73p0+VqopQQLuNfi7Lm0EpfKyDalchpVwkE+81k5HeiRrTV/9w1aNHzjD7C4g==
|
|
1235
|
-
dependencies:
|
|
1236
|
-
"@typescript-eslint/scope-manager" "5.9.1"
|
|
1237
|
-
"@typescript-eslint/types" "5.9.1"
|
|
1238
|
-
"@typescript-eslint/typescript-estree" "5.9.1"
|
|
1212
|
+
"@typescript-eslint/scope-manager" "5.10.2"
|
|
1213
|
+
"@typescript-eslint/types" "5.10.2"
|
|
1214
|
+
"@typescript-eslint/typescript-estree" "5.10.2"
|
|
1239
1215
|
debug "^4.3.2"
|
|
1240
1216
|
|
|
1241
|
-
"@typescript-eslint/scope-manager@5.
|
|
1242
|
-
version "5.
|
|
1243
|
-
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.
|
|
1244
|
-
integrity sha512-
|
|
1245
|
-
dependencies:
|
|
1246
|
-
"@typescript-eslint/types" "5.6.0"
|
|
1247
|
-
"@typescript-eslint/visitor-keys" "5.6.0"
|
|
1248
|
-
|
|
1249
|
-
"@typescript-eslint/scope-manager@5.9.1":
|
|
1250
|
-
version "5.9.1"
|
|
1251
|
-
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.9.1.tgz#6c27be89f1a9409f284d95dfa08ee3400166fe69"
|
|
1252
|
-
integrity sha512-8BwvWkho3B/UOtzRyW07ffJXPaLSUKFBjpq8aqsRvu6HdEuzCY57+ffT7QoV4QXJXWSU1+7g3wE4AlgImmQ9pQ==
|
|
1217
|
+
"@typescript-eslint/scope-manager@5.10.2":
|
|
1218
|
+
version "5.10.2"
|
|
1219
|
+
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.10.2.tgz#92c0bc935ec00f3d8638cdffb3d0e70c9b879639"
|
|
1220
|
+
integrity sha512-39Tm6f4RoZoVUWBYr3ekS75TYgpr5Y+X0xLZxXqcZNDWZdJdYbKd3q2IR4V9y5NxxiPu/jxJ8XP7EgHiEQtFnw==
|
|
1253
1221
|
dependencies:
|
|
1254
|
-
"@typescript-eslint/types" "5.
|
|
1255
|
-
"@typescript-eslint/visitor-keys" "5.
|
|
1222
|
+
"@typescript-eslint/types" "5.10.2"
|
|
1223
|
+
"@typescript-eslint/visitor-keys" "5.10.2"
|
|
1256
1224
|
|
|
1257
|
-
"@typescript-eslint/type-utils@5.
|
|
1258
|
-
version "5.
|
|
1259
|
-
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.
|
|
1260
|
-
integrity sha512-
|
|
1225
|
+
"@typescript-eslint/type-utils@5.10.2":
|
|
1226
|
+
version "5.10.2"
|
|
1227
|
+
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.10.2.tgz#ad5acdf98a7d2ab030bea81f17da457519101ceb"
|
|
1228
|
+
integrity sha512-uRKSvw/Ccs5FYEoXW04Z5VfzF2iiZcx8Fu7DGIB7RHozuP0VbKNzP1KfZkHBTM75pCpsWxIthEH1B33dmGBKHw==
|
|
1261
1229
|
dependencies:
|
|
1262
|
-
"@typescript-eslint/
|
|
1230
|
+
"@typescript-eslint/utils" "5.10.2"
|
|
1263
1231
|
debug "^4.3.2"
|
|
1264
1232
|
tsutils "^3.21.0"
|
|
1265
1233
|
|
|
1266
|
-
"@typescript-eslint/types@5.
|
|
1267
|
-
version "5.
|
|
1268
|
-
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.
|
|
1269
|
-
integrity sha512-
|
|
1270
|
-
|
|
1271
|
-
"@typescript-eslint/types@5.9.1":
|
|
1272
|
-
version "5.9.1"
|
|
1273
|
-
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.9.1.tgz#1bef8f238a2fb32ebc6ff6d75020d9f47a1593c6"
|
|
1274
|
-
integrity sha512-SsWegWudWpkZCwwYcKoDwuAjoZXnM1y2EbEerTHho19Hmm+bQ56QG4L4jrtCu0bI5STaRTvRTZmjprWlTw/5NQ==
|
|
1275
|
-
|
|
1276
|
-
"@typescript-eslint/typescript-estree@5.6.0":
|
|
1277
|
-
version "5.6.0"
|
|
1278
|
-
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.6.0.tgz#dfbb19c9307fdd81bd9c650c67e8397821d7faf0"
|
|
1279
|
-
integrity sha512-92vK5tQaE81rK7fOmuWMrSQtK1IMonESR+RJR2Tlc7w4o0MeEdjgidY/uO2Gobh7z4Q1hhS94Cr7r021fMVEeA==
|
|
1280
|
-
dependencies:
|
|
1281
|
-
"@typescript-eslint/types" "5.6.0"
|
|
1282
|
-
"@typescript-eslint/visitor-keys" "5.6.0"
|
|
1283
|
-
debug "^4.3.2"
|
|
1284
|
-
globby "^11.0.4"
|
|
1285
|
-
is-glob "^4.0.3"
|
|
1286
|
-
semver "^7.3.5"
|
|
1287
|
-
tsutils "^3.21.0"
|
|
1234
|
+
"@typescript-eslint/types@5.10.2":
|
|
1235
|
+
version "5.10.2"
|
|
1236
|
+
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.10.2.tgz#604d15d795c4601fffba6ecb4587ff9fdec68ce8"
|
|
1237
|
+
integrity sha512-Qfp0qk/5j2Rz3p3/WhWgu4S1JtMcPgFLnmAKAW061uXxKSa7VWKZsDXVaMXh2N60CX9h6YLaBoy9PJAfCOjk3w==
|
|
1288
1238
|
|
|
1289
|
-
"@typescript-eslint/typescript-estree@5.
|
|
1290
|
-
version "5.
|
|
1291
|
-
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.
|
|
1292
|
-
integrity sha512-
|
|
1239
|
+
"@typescript-eslint/typescript-estree@5.10.2":
|
|
1240
|
+
version "5.10.2"
|
|
1241
|
+
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.10.2.tgz#810906056cd3ddcb35aa333fdbbef3713b0fe4a7"
|
|
1242
|
+
integrity sha512-WHHw6a9vvZls6JkTgGljwCsMkv8wu8XU8WaYKeYhxhWXH/atZeiMW6uDFPLZOvzNOGmuSMvHtZKd6AuC8PrwKQ==
|
|
1293
1243
|
dependencies:
|
|
1294
|
-
"@typescript-eslint/types" "5.
|
|
1295
|
-
"@typescript-eslint/visitor-keys" "5.
|
|
1244
|
+
"@typescript-eslint/types" "5.10.2"
|
|
1245
|
+
"@typescript-eslint/visitor-keys" "5.10.2"
|
|
1296
1246
|
debug "^4.3.2"
|
|
1297
1247
|
globby "^11.0.4"
|
|
1298
1248
|
is-glob "^4.0.3"
|
|
1299
1249
|
semver "^7.3.5"
|
|
1300
1250
|
tsutils "^3.21.0"
|
|
1301
1251
|
|
|
1302
|
-
"@typescript-eslint/
|
|
1303
|
-
version "5.
|
|
1304
|
-
resolved "https://registry.yarnpkg.com/@typescript-eslint/
|
|
1305
|
-
integrity sha512-
|
|
1252
|
+
"@typescript-eslint/utils@5.10.2", "@typescript-eslint/utils@^5.10.0":
|
|
1253
|
+
version "5.10.2"
|
|
1254
|
+
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.10.2.tgz#1fcd37547c32c648ab11aea7173ec30060ee87a8"
|
|
1255
|
+
integrity sha512-vuJaBeig1NnBRkf7q9tgMLREiYD7zsMrsN1DA3wcoMDvr3BTFiIpKjGiYZoKPllfEwN7spUjv7ZqD+JhbVjEPg==
|
|
1306
1256
|
dependencies:
|
|
1307
|
-
"@
|
|
1308
|
-
eslint-
|
|
1257
|
+
"@types/json-schema" "^7.0.9"
|
|
1258
|
+
"@typescript-eslint/scope-manager" "5.10.2"
|
|
1259
|
+
"@typescript-eslint/types" "5.10.2"
|
|
1260
|
+
"@typescript-eslint/typescript-estree" "5.10.2"
|
|
1261
|
+
eslint-scope "^5.1.1"
|
|
1262
|
+
eslint-utils "^3.0.0"
|
|
1309
1263
|
|
|
1310
|
-
"@typescript-eslint/visitor-keys@5.
|
|
1311
|
-
version "5.
|
|
1312
|
-
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.
|
|
1313
|
-
integrity sha512-
|
|
1264
|
+
"@typescript-eslint/visitor-keys@5.10.2":
|
|
1265
|
+
version "5.10.2"
|
|
1266
|
+
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.10.2.tgz#fdbf272d8e61c045d865bd6c8b41bea73d222f3d"
|
|
1267
|
+
integrity sha512-zHIhYGGGrFJvvyfwHk5M08C5B5K4bewkm+rrvNTKk1/S15YHR+SA/QUF8ZWscXSfEaB8Nn2puZj+iHcoxVOD/Q==
|
|
1314
1268
|
dependencies:
|
|
1315
|
-
"@typescript-eslint/types" "5.
|
|
1269
|
+
"@typescript-eslint/types" "5.10.2"
|
|
1316
1270
|
eslint-visitor-keys "^3.0.0"
|
|
1317
1271
|
|
|
1318
1272
|
abab@^2.0.3, abab@^2.0.5:
|
|
@@ -1501,12 +1455,12 @@ asynckit@^0.4.0:
|
|
|
1501
1455
|
resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79"
|
|
1502
1456
|
integrity sha1-x57Zf380y48robyXkLzDZkdLS3k=
|
|
1503
1457
|
|
|
1504
|
-
axios@^0.
|
|
1505
|
-
version "0.
|
|
1506
|
-
resolved "https://registry.yarnpkg.com/axios/-/axios-0.
|
|
1507
|
-
integrity sha512-
|
|
1458
|
+
axios@^0.25.0:
|
|
1459
|
+
version "0.25.0"
|
|
1460
|
+
resolved "https://registry.yarnpkg.com/axios/-/axios-0.25.0.tgz#349cfbb31331a9b4453190791760a8d35b093e0a"
|
|
1461
|
+
integrity sha512-cD8FOb0tRH3uuEe6+evtAbgJtfxr7ly3fQjYcMcuPlgkwVS9xboaVIpcDV+cYQe+yGykgwZCs1pzjntcGa6l5g==
|
|
1508
1462
|
dependencies:
|
|
1509
|
-
follow-redirects "^1.14.
|
|
1463
|
+
follow-redirects "^1.14.7"
|
|
1510
1464
|
|
|
1511
1465
|
babel-jest@^27.4.6:
|
|
1512
1466
|
version "27.4.6"
|
|
@@ -2205,12 +2159,12 @@ eslint-plugin-import@^2.25.4:
|
|
|
2205
2159
|
resolve "^1.20.0"
|
|
2206
2160
|
tsconfig-paths "^3.12.0"
|
|
2207
2161
|
|
|
2208
|
-
eslint-plugin-jest@^
|
|
2209
|
-
version "
|
|
2210
|
-
resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-
|
|
2211
|
-
integrity sha512-
|
|
2162
|
+
eslint-plugin-jest@^26.0.0:
|
|
2163
|
+
version "26.0.0"
|
|
2164
|
+
resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-26.0.0.tgz#f83a25a23ab90ce5b375b1d44389b8c391be5ce8"
|
|
2165
|
+
integrity sha512-Fvs0YgJ/nw9FTrnqTuMGVrkozkd07jkQzWm0ajqyHlfcsdkxGfAuv30fgfWHOnHiCr9+1YQ365CcDX7vrNhqQg==
|
|
2212
2166
|
dependencies:
|
|
2213
|
-
"@typescript-eslint/
|
|
2167
|
+
"@typescript-eslint/utils" "^5.10.0"
|
|
2214
2168
|
|
|
2215
2169
|
eslint-plugin-prettier@^4.0.0:
|
|
2216
2170
|
version "4.0.0"
|
|
@@ -2257,10 +2211,10 @@ eslint-visitor-keys@^3.2.0:
|
|
|
2257
2211
|
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.2.0.tgz#6fbb166a6798ee5991358bc2daa1ba76cc1254a1"
|
|
2258
2212
|
integrity sha512-IOzT0X126zn7ALX0dwFiUQEdsfzrm4+ISsQS8nukaJXwEyYKRSnEIIDULYg1mCtGp7UUXgfGl7BIolXREQK+XQ==
|
|
2259
2213
|
|
|
2260
|
-
eslint@^8.
|
|
2261
|
-
version "8.
|
|
2262
|
-
resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.
|
|
2263
|
-
integrity sha512-
|
|
2214
|
+
eslint@^8.8.0:
|
|
2215
|
+
version "8.8.0"
|
|
2216
|
+
resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.8.0.tgz#9762b49abad0cb4952539ffdb0a046392e571a2d"
|
|
2217
|
+
integrity sha512-H3KXAzQGBH1plhYS3okDix2ZthuYJlQQEGE5k0IKuEqUSiyu4AmxxlJ2MtTYeJ3xB4jDhcYCwGOg2TXYdnDXlQ==
|
|
2264
2218
|
dependencies:
|
|
2265
2219
|
"@eslint/eslintrc" "^1.0.5"
|
|
2266
2220
|
"@humanwhocodes/config-array" "^0.9.2"
|
|
@@ -2516,7 +2470,7 @@ fn.name@1.x.x:
|
|
|
2516
2470
|
resolved "https://registry.yarnpkg.com/fn.name/-/fn.name-1.1.0.tgz#26cad8017967aea8731bc42961d04a3d5988accc"
|
|
2517
2471
|
integrity sha512-GRnmB5gPyJpAhTQdSZTSp9uaPSvl09KoYcMQtsB9rQoOmzs9dH6ffeccH+Z+cv6P68Hu5bC6JjRh4Ah/mHSNRw==
|
|
2518
2472
|
|
|
2519
|
-
follow-redirects@^1.14.
|
|
2473
|
+
follow-redirects@^1.14.7:
|
|
2520
2474
|
version "1.14.7"
|
|
2521
2475
|
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.7.tgz#2004c02eb9436eee9a21446a6477debf17e81685"
|
|
2522
2476
|
integrity sha512-+hbxoLbFMbRKDwohX8GkTataGqO6Jb7jGwpAlwgy2bIz25XtRm7KEzJM76R1WiNT5SwZkX4Y75SwBolkpmE7iQ==
|
|
@@ -2689,10 +2643,10 @@ graphql-ws@^5.4.1:
|
|
|
2689
2643
|
resolved "https://registry.yarnpkg.com/graphql-ws/-/graphql-ws-5.5.5.tgz#f375486d3f196e2a2527b503644693ae3a8670a9"
|
|
2690
2644
|
integrity sha512-hvyIS71vs4Tu/yUYHPvGXsTgo0t3arU820+lT5VjZS2go0ewp2LqyCgxEN56CzOG7Iys52eRhHBiD1gGRdiQtw==
|
|
2691
2645
|
|
|
2692
|
-
graphql@^16.
|
|
2693
|
-
version "16.
|
|
2694
|
-
resolved "https://registry.yarnpkg.com/graphql/-/graphql-16.
|
|
2695
|
-
integrity sha512-
|
|
2646
|
+
graphql@^16.3.0:
|
|
2647
|
+
version "16.3.0"
|
|
2648
|
+
resolved "https://registry.yarnpkg.com/graphql/-/graphql-16.3.0.tgz#a91e24d10babf9e60c706919bb182b53ccdffc05"
|
|
2649
|
+
integrity sha512-xm+ANmA16BzCT5pLjuXySbQVFwH3oJctUVdy81w1sV0vBU0KgDdBGtxQOUd5zqOBk/JayAFeG8Dlmeq74rjm/A==
|
|
2696
2650
|
|
|
2697
2651
|
has-ansi@^3.0.0:
|
|
2698
2652
|
version "3.0.0"
|
|
@@ -3643,10 +3597,10 @@ lines-and-columns@^1.1.6:
|
|
|
3643
3597
|
resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632"
|
|
3644
3598
|
integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==
|
|
3645
3599
|
|
|
3646
|
-
lint-staged@^12.
|
|
3647
|
-
version "12.
|
|
3648
|
-
resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-12.
|
|
3649
|
-
integrity sha512-
|
|
3600
|
+
lint-staged@^12.3.3:
|
|
3601
|
+
version "12.3.3"
|
|
3602
|
+
resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-12.3.3.tgz#0a465962fe53baa2b4b9da50801ead49a910e03b"
|
|
3603
|
+
integrity sha512-OqcLsqcPOqzvsfkxjeBpZylgJ3SRG1RYqc9LxC6tkt6tNsq1bNVkAixBwX09f6CobcHswzqVOCBpFR1Fck0+ag==
|
|
3650
3604
|
dependencies:
|
|
3651
3605
|
cli-truncate "^3.1.0"
|
|
3652
3606
|
colorette "^2.0.16"
|
|
@@ -3654,25 +3608,25 @@ lint-staged@^12.1.7:
|
|
|
3654
3608
|
debug "^4.3.3"
|
|
3655
3609
|
execa "^5.1.1"
|
|
3656
3610
|
lilconfig "2.0.4"
|
|
3657
|
-
listr2 "^
|
|
3611
|
+
listr2 "^4.0.1"
|
|
3658
3612
|
micromatch "^4.0.4"
|
|
3659
3613
|
normalize-path "^3.0.0"
|
|
3660
|
-
object-inspect "^1.
|
|
3614
|
+
object-inspect "^1.12.0"
|
|
3661
3615
|
string-argv "^0.3.1"
|
|
3662
3616
|
supports-color "^9.2.1"
|
|
3663
3617
|
yaml "^1.10.2"
|
|
3664
3618
|
|
|
3665
|
-
listr2@^
|
|
3666
|
-
version "
|
|
3667
|
-
resolved "https://registry.yarnpkg.com/listr2/-/listr2-
|
|
3668
|
-
integrity sha512-
|
|
3619
|
+
listr2@^4.0.1:
|
|
3620
|
+
version "4.0.2"
|
|
3621
|
+
resolved "https://registry.yarnpkg.com/listr2/-/listr2-4.0.2.tgz#04d66f8c8694a14920d7df08ebe01568948fb500"
|
|
3622
|
+
integrity sha512-YcgwfCWpvPbj9FLUGqvdFvd3hrFWKpOeuXznRgfWEJ7RNr8b/IKKIKZABHx3aU+4CWN/iSAFFSReziQG6vTeIA==
|
|
3669
3623
|
dependencies:
|
|
3670
3624
|
cli-truncate "^2.1.0"
|
|
3671
3625
|
colorette "^2.0.16"
|
|
3672
3626
|
log-update "^4.0.0"
|
|
3673
3627
|
p-map "^4.0.0"
|
|
3674
3628
|
rfdc "^1.3.0"
|
|
3675
|
-
rxjs "^7.
|
|
3629
|
+
rxjs "^7.5.2"
|
|
3676
3630
|
through "^2.3.8"
|
|
3677
3631
|
wrap-ansi "^7.0.0"
|
|
3678
3632
|
|
|
@@ -3855,10 +3809,10 @@ natural-compare@^1.4.0:
|
|
|
3855
3809
|
resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7"
|
|
3856
3810
|
integrity sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=
|
|
3857
3811
|
|
|
3858
|
-
nock@^13.2.
|
|
3859
|
-
version "13.2.
|
|
3860
|
-
resolved "https://registry.yarnpkg.com/nock/-/nock-13.2.
|
|
3861
|
-
integrity sha512-
|
|
3812
|
+
nock@^13.2.4:
|
|
3813
|
+
version "13.2.4"
|
|
3814
|
+
resolved "https://registry.yarnpkg.com/nock/-/nock-13.2.4.tgz#43a309d93143ee5cdcca91358614e7bde56d20e1"
|
|
3815
|
+
integrity sha512-8GPznwxcPNCH/h8B+XZcKjYPXnUV5clOKCjAqyjsiqA++MpNx9E9+t8YPp0MbThO+KauRo7aZJ1WuIZmOrT2Ug==
|
|
3862
3816
|
dependencies:
|
|
3863
3817
|
debug "^4.1.0"
|
|
3864
3818
|
json-stringify-safe "^5.0.1"
|
|
@@ -3871,9 +3825,9 @@ node-domexception@1.0.0:
|
|
|
3871
3825
|
integrity sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==
|
|
3872
3826
|
|
|
3873
3827
|
node-fetch@^2.6.1, node-fetch@^2.6.5:
|
|
3874
|
-
version "2.6.
|
|
3875
|
-
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.
|
|
3876
|
-
integrity sha512-
|
|
3828
|
+
version "2.6.7"
|
|
3829
|
+
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.7.tgz#24de9fba827e3b4ae44dc8b20256a379160052ad"
|
|
3830
|
+
integrity sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==
|
|
3877
3831
|
dependencies:
|
|
3878
3832
|
whatwg-url "^5.0.0"
|
|
3879
3833
|
|
|
@@ -3916,7 +3870,7 @@ object-inspect@^1.11.0, object-inspect@^1.9.0:
|
|
|
3916
3870
|
resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.11.1.tgz#d4bd7d7de54b9a75599f59a00bd698c1f1c6549b"
|
|
3917
3871
|
integrity sha512-If7BjFlpkzzBeV1cqgT3OSWT3azyoxDGajR+iGnFBfVV2EWyDyWaZZW2ERDjUaY2QM8i5jI3Sj7mhsM4DDAqWA==
|
|
3918
3872
|
|
|
3919
|
-
object-inspect@^1.
|
|
3873
|
+
object-inspect@^1.12.0:
|
|
3920
3874
|
version "1.12.0"
|
|
3921
3875
|
resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.12.0.tgz#6e2c120e868fd1fd18cb4f18c31741d0d6e776f0"
|
|
3922
3876
|
integrity sha512-Ho2z80bVIvJloH+YzRmpZVQe87+qASmBUKZDWgx9cu+KDrX2ZDH/3tMy+gXbZETVGs2M8YdxObOh7XAtim9Y0g==
|
|
@@ -4308,13 +4262,20 @@ run-parallel@^1.1.9:
|
|
|
4308
4262
|
dependencies:
|
|
4309
4263
|
queue-microtask "^1.2.2"
|
|
4310
4264
|
|
|
4311
|
-
rxjs@^7.2.0
|
|
4265
|
+
rxjs@^7.2.0:
|
|
4312
4266
|
version "7.4.0"
|
|
4313
4267
|
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.4.0.tgz#a12a44d7eebf016f5ff2441b87f28c9a51cebc68"
|
|
4314
4268
|
integrity sha512-7SQDi7xeTMCJpqViXh8gL/lebcwlp3d831F05+9B44A4B0WfsEwUQHR64gsH1kvJ+Ep/J9K2+n1hVl1CsGN23w==
|
|
4315
4269
|
dependencies:
|
|
4316
4270
|
tslib "~2.1.0"
|
|
4317
4271
|
|
|
4272
|
+
rxjs@^7.5.2:
|
|
4273
|
+
version "7.5.2"
|
|
4274
|
+
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.5.2.tgz#11e4a3a1dfad85dbf7fb6e33cbba17668497490b"
|
|
4275
|
+
integrity sha512-PwDt186XaL3QN5qXj/H9DGyHhP3/RYYgZZwqBv9Tv8rsAaiwFH1IsJJlcgD37J7UW5a6O67qX0KWKS3/pu0m4w==
|
|
4276
|
+
dependencies:
|
|
4277
|
+
tslib "^2.1.0"
|
|
4278
|
+
|
|
4318
4279
|
safe-buffer@~5.1.1:
|
|
4319
4280
|
version "5.1.2"
|
|
4320
4281
|
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d"
|
|
@@ -4335,6 +4296,11 @@ safe-stable-stringify@^1.1.0:
|
|
|
4335
4296
|
resolved "https://registry.yarnpkg.com/safe-stable-stringify/-/safe-stable-stringify-1.1.1.tgz#c8a220ab525cd94e60ebf47ddc404d610dc5d84a"
|
|
4336
4297
|
integrity sha512-ERq4hUjKDbJfE4+XtZLFPCDi8Vb1JqaxAPTxWFLBx8XcAlf9Bda/ZJdVezs/NAfsMQScyIlUMx+Yeu7P7rx5jw==
|
|
4337
4298
|
|
|
4299
|
+
safe-stable-stringify@^2.3.1:
|
|
4300
|
+
version "2.3.1"
|
|
4301
|
+
resolved "https://registry.yarnpkg.com/safe-stable-stringify/-/safe-stable-stringify-2.3.1.tgz#ab67cbe1fe7d40603ca641c5e765cb942d04fc73"
|
|
4302
|
+
integrity sha512-kYBSfT+troD9cDA85VDnHZ1rpHC50O0g1e6WlGHVCz/g+JS+9WKLj+XwFYyR8UbrZN8ll9HUpDAAddY58MGisg==
|
|
4303
|
+
|
|
4338
4304
|
"safer-buffer@>= 2.1.2 < 3":
|
|
4339
4305
|
version "2.1.2"
|
|
4340
4306
|
resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a"
|
|
@@ -4830,10 +4796,10 @@ typedarray-to-buffer@^3.1.5:
|
|
|
4830
4796
|
dependencies:
|
|
4831
4797
|
is-typedarray "^1.0.0"
|
|
4832
4798
|
|
|
4833
|
-
typescript@^4.5.
|
|
4834
|
-
version "4.5.
|
|
4835
|
-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.
|
|
4836
|
-
integrity sha512-
|
|
4799
|
+
typescript@^4.5.5:
|
|
4800
|
+
version "4.5.5"
|
|
4801
|
+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.5.tgz#d8c953832d28924a9e3d37c73d729c846c5896f3"
|
|
4802
|
+
integrity sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA==
|
|
4837
4803
|
|
|
4838
4804
|
unbox-primitive@^1.0.1:
|
|
4839
4805
|
version "1.0.1"
|
|
@@ -5012,10 +4978,10 @@ winston-transport@^4.4.2:
|
|
|
5012
4978
|
readable-stream "^3.4.0"
|
|
5013
4979
|
triple-beam "^1.2.0"
|
|
5014
4980
|
|
|
5015
|
-
winston@^3.
|
|
5016
|
-
version "3.
|
|
5017
|
-
resolved "https://registry.yarnpkg.com/winston/-/winston-3.
|
|
5018
|
-
integrity sha512-
|
|
4981
|
+
winston@^3.5.1:
|
|
4982
|
+
version "3.5.1"
|
|
4983
|
+
resolved "https://registry.yarnpkg.com/winston/-/winston-3.5.1.tgz#b25cc899d015836dbf8c583dec8c4c4483a0da2e"
|
|
4984
|
+
integrity sha512-tbRtVy+vsSSCLcZq/8nXZaOie/S2tPXPFt4be/Q3vI/WtYwm7rrwidxVw2GRa38FIXcJ1kUM6MOZ9Jmnk3F3UA==
|
|
5019
4985
|
dependencies:
|
|
5020
4986
|
"@dabh/diagnostics" "^2.0.2"
|
|
5021
4987
|
async "^3.2.3"
|
|
@@ -5023,6 +4989,7 @@ winston@^3.4.0:
|
|
|
5023
4989
|
logform "^2.3.2"
|
|
5024
4990
|
one-time "^1.0.0"
|
|
5025
4991
|
readable-stream "^3.4.0"
|
|
4992
|
+
safe-stable-stringify "^2.3.1"
|
|
5026
4993
|
stack-trace "0.0.x"
|
|
5027
4994
|
triple-beam "^1.3.0"
|
|
5028
4995
|
winston-transport "^4.4.2"
|
package/dist/entrypoint.api.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ConfigFileOptions } from './options/ConfigOptions';
|
|
2
|
-
import { ValidConfigOptions } from './options/options';
|
|
3
|
-
export { BackportResponse } from './services/backportRun/backportRun';
|
|
4
|
-
export { ConfigFileOptions } from './options/ConfigOptions';
|
|
5
|
-
export { Commit } from './services/sourceCommit/parseSourceCommit';
|
|
6
|
-
export { fetchRemoteProjectConfig as getRemoteProjectConfig } from './services/github/v4/fetchRemoteProjectConfig';
|
|
7
|
-
export { getGlobalConfig as getLocalGlobalConfig } from './options/config/globalConfig';
|
|
8
|
-
export declare function backportRun(options: ConfigFileOptions, args?: string[]): Promise<import("./services/backportRun/backportRun").BackportResponse | undefined>;
|
|
9
|
-
export declare function getCommits(options: {
|
|
10
|
-
accessToken: string;
|
|
11
|
-
repoName: string;
|
|
12
|
-
repoOwner: string;
|
|
13
|
-
author?: string;
|
|
14
|
-
branchLabelMapping?: ValidConfigOptions['branchLabelMapping'];
|
|
15
|
-
githubApiBaseUrlV4?: string;
|
|
16
|
-
pullNumber?: number;
|
|
17
|
-
sha?: string;
|
|
18
|
-
skipRemoteConfig?: boolean;
|
|
19
|
-
sourceBranch?: string;
|
|
20
|
-
dateUntil?: string;
|
|
21
|
-
dateSince?: string;
|
|
22
|
-
}): Promise<import("./services/sourceCommit/parseSourceCommit").Commit[]>;
|
package/dist/entrypoint.api.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getCommits = exports.backportRun = exports.getLocalGlobalConfig = exports.getRemoteProjectConfig = void 0;
|
|
4
|
-
const backportRun_1 = require("./services/backportRun/backportRun");
|
|
5
|
-
const fetchCommitByPullNumber_1 = require("./services/github/v4/fetchCommits/fetchCommitByPullNumber");
|
|
6
|
-
const fetchCommitBySha_1 = require("./services/github/v4/fetchCommits/fetchCommitBySha");
|
|
7
|
-
const fetchCommitsByAuthor_1 = require("./services/github/v4/fetchCommits/fetchCommitsByAuthor");
|
|
8
|
-
const getOptionsFromGithub_1 = require("./services/github/v4/getOptionsFromGithub/getOptionsFromGithub");
|
|
9
|
-
const logger_1 = require("./services/logger");
|
|
10
|
-
const excludeUndefined_1 = require("./utils/excludeUndefined");
|
|
11
|
-
(0, logger_1.initLogger)();
|
|
12
|
-
var fetchRemoteProjectConfig_1 = require("./services/github/v4/fetchRemoteProjectConfig");
|
|
13
|
-
Object.defineProperty(exports, "getRemoteProjectConfig", { enumerable: true, get: function () { return fetchRemoteProjectConfig_1.fetchRemoteProjectConfig; } });
|
|
14
|
-
var globalConfig_1 = require("./options/config/globalConfig");
|
|
15
|
-
Object.defineProperty(exports, "getLocalGlobalConfig", { enumerable: true, get: function () { return globalConfig_1.getGlobalConfig; } });
|
|
16
|
-
function backportRun(options,
|
|
17
|
-
// cli args will not automatically be forwarded when it is consumed as a module
|
|
18
|
-
// It is simple to forward args manually via `process.argv`:
|
|
19
|
-
//
|
|
20
|
-
// import { backportRun } from `backport
|
|
21
|
-
// const args = process.argv.slice(2);
|
|
22
|
-
// backportRun(options, args)
|
|
23
|
-
//
|
|
24
|
-
args = []) {
|
|
25
|
-
return (0, backportRun_1.backportRun)(args, (0, excludeUndefined_1.excludeUndefined)(options));
|
|
26
|
-
}
|
|
27
|
-
exports.backportRun = backportRun;
|
|
28
|
-
async function getCommits(options) {
|
|
29
|
-
const optionsFromGithub = await (0, getOptionsFromGithub_1.getOptionsFromGithub)(options);
|
|
30
|
-
if (options.pullNumber) {
|
|
31
|
-
return [
|
|
32
|
-
await (0, fetchCommitByPullNumber_1.fetchCommitByPullNumber)({
|
|
33
|
-
...optionsFromGithub,
|
|
34
|
-
...options,
|
|
35
|
-
pullNumber: options.pullNumber,
|
|
36
|
-
}),
|
|
37
|
-
];
|
|
38
|
-
}
|
|
39
|
-
if (options.sha) {
|
|
40
|
-
return [
|
|
41
|
-
await (0, fetchCommitBySha_1.fetchCommitBySha)({
|
|
42
|
-
...optionsFromGithub,
|
|
43
|
-
...options,
|
|
44
|
-
sha: options.sha,
|
|
45
|
-
}),
|
|
46
|
-
];
|
|
47
|
-
}
|
|
48
|
-
return (0, fetchCommitsByAuthor_1.fetchCommitsByAuthor)({
|
|
49
|
-
...optionsFromGithub,
|
|
50
|
-
...options,
|
|
51
|
-
// filters
|
|
52
|
-
author: options.author ?? null,
|
|
53
|
-
dateSince: options.dateSince ?? null,
|
|
54
|
-
dateUntil: options.dateUntil ?? null,
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
exports.getCommits = getCommits;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const entrypoint_api_1 = require("./entrypoint.api");
|
|
4
|
-
const getDevAccessToken_1 = require("./test/private/getDevAccessToken");
|
|
5
|
-
describe('entrypoint.api', () => {
|
|
6
|
-
it('getCommits', async () => {
|
|
7
|
-
const accessToken = await (0, getDevAccessToken_1.getDevAccessToken)();
|
|
8
|
-
const commits = await (0, entrypoint_api_1.getCommits)({
|
|
9
|
-
accessToken: accessToken,
|
|
10
|
-
repoName: 'backport-e2e',
|
|
11
|
-
repoOwner: 'backport-org',
|
|
12
|
-
pullNumber: 2,
|
|
13
|
-
});
|
|
14
|
-
expect(commits).toEqual([
|
|
15
|
-
{
|
|
16
|
-
committedDate: '2020-08-15T10:44:04Z',
|
|
17
|
-
expectedTargetPullRequests: [
|
|
18
|
-
{
|
|
19
|
-
branch: '7.x',
|
|
20
|
-
number: 4,
|
|
21
|
-
state: 'MERGED',
|
|
22
|
-
url: 'https://github.com/backport-org/backport-e2e/pull/4',
|
|
23
|
-
mergeCommit: {
|
|
24
|
-
message: 'Add family emoji (#2) (#4)',
|
|
25
|
-
sha: 'f8b4f6ae7ffaf2732fa5e33e98b3ea772bdfff1d',
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
],
|
|
29
|
-
originalMessage: 'Add family emoji (#2)',
|
|
30
|
-
pullNumber: 2,
|
|
31
|
-
pullUrl: 'https://github.com/backport-org/backport-e2e/pull/2',
|
|
32
|
-
sha: '59d6ff1ca90a4ce210c0a4f0e159214875c19d60',
|
|
33
|
-
sourceBranch: 'master',
|
|
34
|
-
},
|
|
35
|
-
]);
|
|
36
|
-
});
|
|
37
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const entrypoint_module_1 = require("./entrypoint.module");
|
|
4
|
-
const getDevAccessToken_1 = require("./test/private/getDevAccessToken");
|
|
5
|
-
describe('entrypoint.module', () => {
|
|
6
|
-
it('getCommits', async () => {
|
|
7
|
-
const accessToken = await (0, getDevAccessToken_1.getDevAccessToken)();
|
|
8
|
-
const commits = await (0, entrypoint_module_1.getCommits)({
|
|
9
|
-
accessToken: accessToken,
|
|
10
|
-
repoName: 'backport-e2e',
|
|
11
|
-
repoOwner: 'backport-org',
|
|
12
|
-
pullNumber: 2,
|
|
13
|
-
});
|
|
14
|
-
expect(commits).toEqual([
|
|
15
|
-
{
|
|
16
|
-
committedDate: '2020-08-15T10:44:04Z',
|
|
17
|
-
expectedTargetPullRequests: [
|
|
18
|
-
{
|
|
19
|
-
branch: '7.x',
|
|
20
|
-
number: 4,
|
|
21
|
-
state: 'MERGED',
|
|
22
|
-
url: 'https://github.com/backport-org/backport-e2e/pull/4',
|
|
23
|
-
mergeCommit: {
|
|
24
|
-
message: 'Add family emoji (#2) (#4)',
|
|
25
|
-
sha: 'f8b4f6ae7ffaf2732fa5e33e98b3ea772bdfff1d',
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
],
|
|
29
|
-
originalMessage: 'Add family emoji (#2)',
|
|
30
|
-
pullNumber: 2,
|
|
31
|
-
pullUrl: 'https://github.com/backport-org/backport-e2e/pull/2',
|
|
32
|
-
sha: '59d6ff1ca90a4ce210c0a4f0e159214875c19d60',
|
|
33
|
-
sourceBranch: 'master',
|
|
34
|
-
},
|
|
35
|
-
]);
|
|
36
|
-
});
|
|
37
|
-
});
|