backport 6.2.1 → 6.3.0-beta-4

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.
Files changed (329) hide show
  1. package/README.md +13 -5
  2. package/dist/backportRun.d.ts +2 -2
  3. package/dist/backportRun.js +13 -8
  4. package/dist/{entrypoint.api.private.test.d.ts → entrypoint.cli.e2e.private.test.d.ts} +0 -0
  5. package/dist/entrypoint.cli.e2e.private.test.js +278 -0
  6. package/dist/{entrypoint.module.private.test.d.ts → entrypoint.cli.private.test.d.ts} +0 -0
  7. package/dist/{entrypoint.module.private.test.js → entrypoint.cli.private.test.js} +17 -8
  8. package/dist/entrypoint.module.js +1 -1
  9. package/dist/options/ConfigOptions.d.ts +5 -2
  10. package/dist/options/cliArgs.d.ts +1 -0
  11. package/dist/options/cliArgs.js +27 -6
  12. package/dist/options/cliArgs.test.js +28 -10
  13. package/dist/options/config/config.d.ts +4 -7
  14. package/dist/options/config/config.js +2 -7
  15. package/dist/options/config/config.test.js +5 -21
  16. package/dist/options/config/globalConfig.js +3 -3
  17. package/dist/options/config/globalConfig.test.js +10 -29
  18. package/dist/options/config/projectConfig.test.js +7 -26
  19. package/dist/options/config/readConfigFile.d.ts +4 -7
  20. package/dist/options/config/readConfigFile.js +2 -2
  21. package/dist/options/options.d.ts +6 -34
  22. package/dist/options/options.js +37 -29
  23. package/dist/options/options.test.js +53 -22
  24. package/dist/runSequentially.d.ts +0 -1
  25. package/dist/runSequentially.js +1 -1
  26. package/dist/runSequentially.test.js +35 -12
  27. package/dist/services/HandledError.d.ts +6 -4
  28. package/dist/services/HandledError.js +18 -3
  29. package/dist/services/child-process-promisified.d.ts +3 -1
  30. package/dist/services/env.test.js +2 -2
  31. package/dist/services/git.d.ts +22 -9
  32. package/dist/services/git.integration.test.js +123 -24
  33. package/dist/services/git.js +66 -54
  34. package/dist/services/git.test.js +35 -20
  35. package/dist/services/github/commitFormatters.d.ts +0 -1
  36. package/dist/services/github/commitFormatters.js +1 -8
  37. package/dist/services/github/v3/createPullRequest.js +8 -5
  38. package/dist/services/github/v3/createPullRequest.test.js +204 -39
  39. package/dist/services/github/v3/createStatusComment.js +26 -15
  40. package/dist/services/github/v3/createStatusComment.test.js +132 -72
  41. package/dist/services/github/v3/getGithubV3ErrorMessage.d.ts +2 -1
  42. package/dist/{options/getValidatedOptions.test.d.ts → services/github/v3/index.d.ts} +0 -0
  43. package/dist/services/github/v3/index.js +61 -0
  44. package/dist/services/github/v4/FetchPullRequestId.d.ts +0 -7
  45. package/dist/services/github/v4/apiRequestV4.d.ts +21 -17
  46. package/dist/services/github/v4/apiRequestV4.js +46 -28
  47. package/dist/services/github/v4/apiRequestV4.test.js +4 -4
  48. package/dist/services/github/v4/disablePullRequestAutoMerge.d.ts +0 -7
  49. package/dist/services/github/v4/enablePullRequestAutoMerge.d.ts +0 -7
  50. package/dist/services/github/v4/fetchAuthorId.private.test.js +2 -2
  51. package/dist/services/github/v4/fetchCommits/allFetchers.private.test.js +38 -20
  52. package/dist/services/github/v4/fetchCommits/fetchCommitByPullNumber.private.test.js +19 -10
  53. package/dist/services/github/v4/fetchCommits/fetchCommitBySha.js +3 -3
  54. package/dist/services/github/v4/fetchCommits/fetchCommitBySha.private.test.js +25 -16
  55. package/dist/services/github/v4/fetchCommits/fetchCommitsByAuthor.js +2 -2
  56. package/dist/services/github/v4/fetchCommits/fetchCommitsByAuthor.private.test.js +6 -6
  57. package/dist/services/github/v4/fetchCommits/fetchCommitsByAuthor.test.js +41 -19
  58. package/dist/services/github/v4/fetchCommits/fetchPullRequestBySearchQuery.d.ts +1 -8
  59. package/dist/services/github/v4/fetchCommits/fetchPullRequestBySearchQuery.private.test.js +33 -16
  60. package/dist/services/github/v4/fetchExistingPullRequest.d.ts +0 -4
  61. package/dist/services/github/v4/fetchExistingPullRequest.js +1 -2
  62. package/dist/services/github/v4/fetchExistingPullRequest.private.test.js +2 -2
  63. package/dist/services/github/v4/fetchPullRequestAutoMergeMethod.d.ts +0 -9
  64. package/dist/services/github/v4/fetchRemoteProjectConfig.private.test.js +2 -2
  65. package/dist/services/github/v4/getOptionsFromGithub/getOptionsFromGithub.d.ts +6 -8
  66. package/dist/services/github/v4/getOptionsFromGithub/getOptionsFromGithub.js +49 -41
  67. package/dist/services/github/v4/getOptionsFromGithub/getOptionsFromGithub.private.test.js +7 -1
  68. package/dist/services/github/v4/getOptionsFromGithub/query.d.ts +15 -23
  69. package/dist/services/github/v4/getOptionsFromGithub/query.js +17 -25
  70. package/dist/services/github/v4/getRepoOwnerAndNameFromGitRemotes.d.ts +29 -0
  71. package/dist/services/github/v4/getRepoOwnerAndNameFromGitRemotes.js +56 -0
  72. package/dist/{options/parseRequiredOptions.test.d.ts → services/github/v4/getRepoOwnerAndNameFromGitRemotes.private.test.d.ts} +0 -0
  73. package/dist/services/github/v4/getRepoOwnerAndNameFromGitRemotes.private.test.js +71 -0
  74. package/dist/services/github/v4/mocks/commitsByAuthorMock.js +11 -11
  75. package/dist/services/github/v4/throwOnInvalidAccessToken.d.ts +4 -5
  76. package/dist/services/github/v4/throwOnInvalidAccessToken.js +10 -7
  77. package/dist/services/github/v4/throwOnInvalidAccessToken.test.js +5 -5
  78. package/dist/services/logger.d.ts +9 -18
  79. package/dist/services/logger.js +20 -56
  80. package/dist/services/prompt.test.js +66 -19
  81. package/dist/services/prompts.js +12 -10
  82. package/dist/services/sourceCommit/getExpectedTargetPullRequests.js +1 -1
  83. package/dist/services/sourceCommit/getMockSourceCommit.js +6 -6
  84. package/dist/services/sourceCommit/parseSourceCommit.d.ts +18 -10
  85. package/dist/services/sourceCommit/parseSourceCommit.js +20 -14
  86. package/dist/services/sourceCommit/parseSourceCommit.test.js +18 -20
  87. package/dist/{runWithOptions.test.d.ts → test/backport-e2e.mutation.test.d.ts} +0 -0
  88. package/dist/test/{backport-e2e.private.test.js → backport-e2e.mutation.test.js} +134 -112
  89. package/dist/test/handleUnbackportedPullRequests.private.test.js +26 -12
  90. package/dist/test/mockConfigFiles.js +4 -20
  91. package/dist/test/mocks.d.ts +10 -0
  92. package/dist/test/mocks.js +23 -0
  93. package/dist/test/private/getDevAccessToken.d.ts +2 -1
  94. package/dist/test/private/getDevAccessToken.js +6 -18
  95. package/dist/test/sandbox.d.ts +5 -0
  96. package/dist/{react-components/0-loadOptions.js → test/sandbox.js} +18 -20
  97. package/dist/test/setupFiles/automatic-mocks.d.ts +1 -0
  98. package/dist/test/setupFiles/automatic-mocks.js +27 -11
  99. package/dist/ui/cherrypickAndCreateTargetPullRequest.d.ts +0 -1
  100. package/dist/ui/cherrypickAndCreateTargetPullRequest.js +12 -13
  101. package/dist/ui/cherrypickAndCreateTargetPullRequest.test.js +47 -19
  102. package/dist/ui/getCommits.js +8 -14
  103. package/dist/ui/getCommitsWithoutBackports.js +6 -6
  104. package/dist/ui/getCommitsWithoutBackports.test.js +91 -39
  105. package/dist/ui/getTargetBranches.js +1 -1
  106. package/dist/ui/getTargetBranches.test.js +26 -8
  107. package/dist/ui/maybeSetupRepo.js +25 -5
  108. package/dist/ui/maybeSetupRepo.test.js +144 -18
  109. package/dist/utils/maybe.d.ts +1 -0
  110. package/dist/utils/maybe.js +7 -0
  111. package/dist/utils/packageVersion.d.ts +1 -0
  112. package/dist/{types/PromiseReturnType.js → utils/packageVersion.js} +2 -0
  113. package/package.json +24 -19
  114. package/yarn.lock +119 -147
  115. package/dist/entrypoint.api.d.ts +0 -22
  116. package/dist/entrypoint.api.js +0 -57
  117. package/dist/entrypoint.api.private.test.js +0 -37
  118. package/dist/index.d.ts +0 -783
  119. package/dist/index.js +0 -8001
  120. package/dist/ink.d.ts +0 -1
  121. package/dist/ink.js +0 -49
  122. package/dist/main.d.ts +0 -14
  123. package/dist/main.js +0 -68
  124. package/dist/options/config/getOptionsFromGit.d.ts +0 -4
  125. package/dist/options/config/getOptionsFromGit.js +0 -8
  126. package/dist/options/config/getProjectConfig.d.ts +0 -0
  127. package/dist/options/config/getProjectConfig.js +0 -1
  128. package/dist/options/getValidatedOptions.d.ts +0 -49
  129. package/dist/options/getValidatedOptions.js +0 -45
  130. package/dist/options/getValidatedOptions.test.js +0 -97
  131. package/dist/options/parseRequiredOptions.d.ts +0 -71
  132. package/dist/options/parseRequiredOptions.js +0 -68
  133. package/dist/options/parseRequiredOptions.test.js +0 -122
  134. package/dist/react-components/0-loadOptions.d.ts +0 -6
  135. package/dist/react-components/1-loadCommit.d.ts +0 -8
  136. package/dist/react-components/1-loadCommit.js +0 -88
  137. package/dist/react-components/1a-loadCommit.d.ts +0 -5
  138. package/dist/react-components/1a-loadCommit.js +0 -76
  139. package/dist/react-components/1b-commitChoices.d.ts +0 -5
  140. package/dist/react-components/1b-commitChoices.js +0 -98
  141. package/dist/react-components/2-commitChoices.d.ts +0 -8
  142. package/dist/react-components/2-commitChoices.js +0 -96
  143. package/dist/react-components/2-commitsPrompt.d.ts +0 -8
  144. package/dist/react-components/2-commitsPrompt.js +0 -96
  145. package/dist/react-components/2-targetBranchChoices.d.ts +0 -9
  146. package/dist/react-components/2-targetBranchChoices.js +0 -109
  147. package/dist/react-components/3-cherrypick.d.ts +0 -1
  148. package/dist/react-components/3-cherrypick.js +0 -2
  149. package/dist/react-components/App.d.ts +0 -2
  150. package/dist/react-components/App.js +0 -35
  151. package/dist/react-components/BackportStateContext.d.ts +0 -33
  152. package/dist/react-components/BackportStateContext.js +0 -42
  153. package/dist/react-components/CommitPrompt/2-commitsPrompt.d.ts +0 -8
  154. package/dist/react-components/CommitPrompt/2-commitsPrompt.js +0 -96
  155. package/dist/react-components/CommitPrompt/CommitPrompt.d.ts +0 -8
  156. package/dist/react-components/CommitPrompt/CommitPrompt.js +0 -96
  157. package/dist/react-components/CommitPrompt/getCommits.d.ts +0 -2
  158. package/dist/react-components/CommitPrompt/getCommits.js +0 -27
  159. package/dist/react-components/CommitPrompt.d.ts +0 -8
  160. package/dist/react-components/CommitPrompt.js +0 -96
  161. package/dist/react-components/CustomMultiSelect.d.ts +0 -13
  162. package/dist/react-components/CustomMultiSelect.js +0 -21
  163. package/dist/react-components/CustomMultiSelectItem.d.ts +0 -5
  164. package/dist/react-components/CustomMultiSelectItem.js +0 -12
  165. package/dist/react-components/CustomSelect.d.ts +0 -14
  166. package/dist/react-components/CustomSelect.js +0 -34
  167. package/dist/react-components/ErrorBoundary.d.ts +0 -15
  168. package/dist/react-components/ErrorBoundary.js +0 -53
  169. package/dist/react-components/MultiSelect.d.ts +0 -7
  170. package/dist/react-components/MultiSelect.js +0 -16
  171. package/dist/react-components/hooks/useAsync.d.ts +0 -12
  172. package/dist/react-components/hooks/useAsync.js +0 -73
  173. package/dist/runWithOptions.d.ts +0 -9
  174. package/dist/runWithOptions.js +0 -43
  175. package/dist/runWithOptions.test.js +0 -304
  176. package/dist/scripts/generate-gql.d.ts +0 -1
  177. package/dist/scripts/generate-gql.js +0 -15
  178. package/dist/services/backportRun/backportRun.ci.d.ts +0 -6
  179. package/dist/services/backportRun/backportRun.ci.js +0 -81
  180. package/dist/services/backportRun/backportRun.d.ts +0 -14
  181. package/dist/services/backportRun/backportRun.interactive.d.ts +0 -1
  182. package/dist/services/backportRun/backportRun.interactive.js +0 -4
  183. package/dist/services/backportRun/backportRun.js +0 -14
  184. package/dist/services/backportRun/backportState.d.ts +0 -4
  185. package/dist/services/backportRun/backportState.js +0 -28
  186. package/dist/services/backportRun/getCommits.d.ts +0 -2
  187. package/dist/services/backportRun/getCommits.js +0 -20
  188. package/dist/services/backportRun/runSequentially.d.ts +0 -20
  189. package/dist/services/backportRun/runSequentially.js +0 -41
  190. package/dist/services/backportRun/runSequentially.test.d.ts +0 -1
  191. package/dist/services/backportRun/runSequentially.test.js +0 -199
  192. package/dist/services/cherrypickAndCreateTargetPullRequest.d.ts +0 -12
  193. package/dist/services/cherrypickAndCreateTargetPullRequest.js +0 -206
  194. package/dist/services/cherrypickAndCreateTargetPullRequest.test.d.ts +0 -1
  195. package/dist/services/cherrypickAndCreateTargetPullRequest.test.js +0 -403
  196. package/dist/services/fs-promisified.d.ts +0 -6
  197. package/dist/services/fs-promisified.js +0 -12
  198. package/dist/services/getCommits.d.ts +0 -2
  199. package/dist/services/getCommits.js +0 -38
  200. package/dist/services/getCommitsWithoutBackports.d.ts +0 -11
  201. package/dist/services/getCommitsWithoutBackports.js +0 -68
  202. package/dist/services/getCommitsWithoutBackports.test.d.ts +0 -1
  203. package/dist/services/getCommitsWithoutBackports.test.js +0 -259
  204. package/dist/services/getExpectedTarget.d.ts +0 -9
  205. package/dist/services/getExpectedTarget.js +0 -77
  206. package/dist/services/getExpectedTargetPullRequests.d.ts +0 -9
  207. package/dist/services/getExpectedTargetPullRequests.js +0 -77
  208. package/dist/services/getTargetBranches.d.ts +0 -5
  209. package/dist/services/getTargetBranches.js +0 -60
  210. package/dist/services/getTargetBranches.test.d.ts +0 -1
  211. package/dist/services/getTargetBranches.test.js +0 -180
  212. package/dist/services/github/v4/fetchCommitByPullNumber.d.ts +0 -5
  213. package/dist/services/github/v4/fetchCommitByPullNumber.js +0 -86
  214. package/dist/services/github/v4/fetchCommitByPullNumber.private.test.d.ts +0 -1
  215. package/dist/services/github/v4/fetchCommitByPullNumber.private.test.js +0 -57
  216. package/dist/services/github/v4/fetchCommitBySha.d.ts +0 -5
  217. package/dist/services/github/v4/fetchCommitBySha.js +0 -95
  218. package/dist/services/github/v4/fetchCommitBySha.private.test.d.ts +0 -1
  219. package/dist/services/github/v4/fetchCommitBySha.private.test.js +0 -50
  220. package/dist/services/github/v4/fetchCommits/fetchCommitsInDateRange.d.ts +0 -28
  221. package/dist/services/github/v4/fetchCommits/fetchCommitsInDateRange.js +0 -52
  222. package/dist/services/github/v4/fetchCommits/fetchProjectConfig.d.ts +0 -3
  223. package/dist/services/github/v4/fetchCommits/fetchProjectConfig.js +0 -55
  224. package/dist/services/github/v4/fetchCommits/fetchPullRequestBySearchQuery.test.d.ts +0 -1
  225. package/dist/services/github/v4/fetchCommits/fetchPullRequestBySearchQuery.test.js +0 -252
  226. package/dist/services/github/v4/fetchCommitsByAuthor.d.ts +0 -28
  227. package/dist/services/github/v4/fetchCommitsByAuthor.js +0 -161
  228. package/dist/services/github/v4/fetchCommitsByAuthor.private.test.d.ts +0 -1
  229. package/dist/services/github/v4/fetchCommitsByAuthor.private.test.js +0 -115
  230. package/dist/services/github/v4/fetchCommitsByAuthor.test.d.ts +0 -1
  231. package/dist/services/github/v4/fetchCommitsByAuthor.test.js +0 -272
  232. package/dist/services/github/v4/fetchDefaultBranch.d.ts +0 -9
  233. package/dist/services/github/v4/fetchDefaultBranch.js +0 -24
  234. package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks/fetchDefaultRepoBranchAndPerformStartupChecks.d.ts +0 -4
  235. package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks/fetchDefaultRepoBranchAndPerformStartupChecks.js +0 -52
  236. package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks/fetchDefaultRepoBranchAndPerformStartupChecks.private.test.d.ts +0 -1
  237. package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks/fetchDefaultRepoBranchAndPerformStartupChecks.private.test.js +0 -32
  238. package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks/index.d.ts +0 -4
  239. package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks/index.js +0 -72
  240. package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks/index.private.test.d.ts +0 -1
  241. package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks/index.private.test.js +0 -34
  242. package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks/query.d.ts +0 -40
  243. package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks/query.js +0 -72
  244. package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks.d.ts +0 -17
  245. package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks.js +0 -69
  246. package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks.private.test.d.ts +0 -1
  247. package/dist/services/github/v4/fetchDefaultRepoBranchAndPerformStartupChecks.private.test.js +0 -32
  248. package/dist/services/github/v4/fetchMergedPullRequests.d.ts +0 -37
  249. package/dist/services/github/v4/fetchMergedPullRequests.js +0 -37
  250. package/dist/services/github/v4/fetchMergedPullRequests.private.test.d.ts +0 -1
  251. package/dist/services/github/v4/fetchMergedPullRequests.private.test.js +0 -59
  252. package/dist/services/github/v4/fetchMergedPullRequests.test.d.ts +0 -1
  253. package/dist/services/github/v4/fetchMergedPullRequests.test.js +0 -22
  254. package/dist/services/github/v4/fetchProjectConfig.d.ts +0 -8
  255. package/dist/services/github/v4/fetchProjectConfig.js +0 -56
  256. package/dist/services/github/v4/fetchProjectConfig.private.test.d.ts +0 -1
  257. package/dist/services/github/v4/fetchProjectConfig.private.test.js +0 -52
  258. package/dist/services/github/v4/fetchProjectConfig.test.d.ts +0 -1
  259. package/dist/services/github/v4/fetchProjectConfig.test.js +0 -37
  260. package/dist/services/github/v4/fetchPullRequestBySearchQuery.d.ts +0 -9
  261. package/dist/services/github/v4/fetchPullRequestBySearchQuery.js +0 -92
  262. package/dist/services/github/v4/fetchPullRequestBySearchQuery.private.test.d.ts +0 -1
  263. package/dist/services/github/v4/fetchPullRequestBySearchQuery.private.test.js +0 -66
  264. package/dist/services/github/v4/fetchPullRequestBySearchQuery.test.d.ts +0 -1
  265. package/dist/services/github/v4/fetchPullRequestBySearchQuery.test.js +0 -242
  266. package/dist/services/github/v4/getExistingTargetPullRequests.d.ts +0 -7
  267. package/dist/services/github/v4/getExistingTargetPullRequests.js +0 -45
  268. package/dist/services/github/v4/getOptionsFromGithub/index.d.ts +0 -63
  269. package/dist/services/github/v4/getOptionsFromGithub/index.js +0 -139
  270. package/dist/services/github/v4/getOptionsFromGithub/index.private.test.d.ts +0 -1
  271. package/dist/services/github/v4/getOptionsFromGithub/index.private.test.js +0 -147
  272. package/dist/services/github/v4/getTargetBranchesFromLabels.d.ts +0 -5
  273. package/dist/services/github/v4/getTargetBranchesFromLabels.js +0 -20
  274. package/dist/services/github/v4/getTargetBranchesFromLabels.test.d.ts +0 -1
  275. package/dist/services/github/v4/getTargetBranchesFromLabels.test.js +0 -201
  276. package/dist/services/github/v4/mocks/fetchPullRequestBySearchQueryMock.d.ts +0 -2
  277. package/dist/services/github/v4/mocks/fetchPullRequestBySearchQueryMock.js +0 -843
  278. package/dist/services/github/v4/mocks/getCommitsByAuthorMock.d.ts +0 -2
  279. package/dist/services/github/v4/mocks/getCommitsByAuthorMock.js +0 -73
  280. package/dist/services/github/v4/mocks/getPullRequestNodeMock.d.ts +0 -12
  281. package/dist/services/github/v4/mocks/getPullRequestNodeMock.js +0 -44
  282. package/dist/services/maybeSetupRepo.d.ts +0 -2
  283. package/dist/services/maybeSetupRepo.js +0 -33
  284. package/dist/services/maybeSetupRepo.test.d.ts +0 -1
  285. package/dist/services/maybeSetupRepo.test.js +0 -78
  286. package/dist/services/sourceCommit/getTargetBranchesFromLabels.d.ts +0 -5
  287. package/dist/services/sourceCommit/getTargetBranchesFromLabels.js +0 -20
  288. package/dist/services/sourceCommit/getTargetBranchesFromLabels.test.d.ts +0 -1
  289. package/dist/services/sourceCommit/getTargetBranchesFromLabels.test.js +0 -201
  290. package/dist/services/sourceCommit/sourceCommit.d.ts +0 -78
  291. package/dist/services/sourceCommit/sourceCommit.js +0 -86
  292. package/dist/services/sourceCommit/sourceCommit.test.d.ts +0 -1
  293. package/dist/services/sourceCommit/sourceCommit.test.js +0 -287
  294. package/dist/services/sourceCommit.d.ts +0 -78
  295. package/dist/services/sourceCommit.js +0 -86
  296. package/dist/services/sourceCommit.test.d.ts +0 -1
  297. package/dist/services/sourceCommit.test.js +0 -280
  298. package/dist/test/backport-e2e.private.test.d.ts +0 -1
  299. package/dist/test/inquirer.private.test.d.ts +0 -1
  300. package/dist/test/inquirer.private.test.js +0 -170
  301. package/dist/test/integration/createSpies.d.ts +0 -17
  302. package/dist/test/integration/createSpies.js +0 -85
  303. package/dist/test/integration/envConstants.d.ts +0 -5
  304. package/dist/test/integration/envConstants.js +0 -9
  305. package/dist/test/integration/helpers.d.ts +0 -7
  306. package/dist/test/integration/helpers.js +0 -31
  307. package/dist/test/integration/integration.private.test.d.ts +0 -1
  308. package/dist/test/integration/integration.private.test.js +0 -327
  309. package/dist/test/integration/integration.test.d.ts +0 -1
  310. package/dist/test/integration/integration.test.js +0 -214
  311. package/dist/todo-delete.d.ts +0 -1
  312. package/dist/todo-delete.js +0 -17
  313. package/dist/types/Commit.d.ts +0 -85
  314. package/dist/types/Commit.js +0 -139
  315. package/dist/types/PromiseReturnType.d.ts +0 -1
  316. package/dist/types/commitNode.d.ts +0 -89
  317. package/dist/types/commitNode.js +0 -139
  318. package/dist/types/commitNode.test.d.ts +0 -1
  319. package/dist/types/commitNode.test.js +0 -255
  320. package/dist/types/commitWithAssociatedPullRequests.d.ts +0 -86
  321. package/dist/types/commitWithAssociatedPullRequests.js +0 -145
  322. package/dist/ui/cherrypickAndCreatePullRequest.test.d.ts +0 -1
  323. package/dist/ui/cherrypickAndCreatePullRequest.test.js +0 -617
  324. package/dist/ui/getTargetBranchesFromLabels.d.ts +0 -6
  325. package/dist/ui/getTargetBranchesFromLabels.js +0 -40
  326. package/dist/ui/getTargetBranchesFromLabels.test.d.ts +0 -1
  327. package/dist/ui/getTargetBranchesFromLabels.test.js +0 -288
  328. package/dist/utils/sequentially.d.ts +0 -1
  329. 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.1.3":
1073
- version "8.1.3"
1074
- resolved "https://registry.yarnpkg.com/@types/inquirer/-/inquirer-8.1.3.tgz#dfda4c97cdbe304e4dceb378a80f79448ea5c8fe"
1075
- integrity sha512-AayK4ZL5ssPzR1OtnOLGAwpT0Dda3Xi/h1G0l1oJDNrowp7T1423q4Zb8/emr7tzRlCy4ssEri0LWVexAqHyKQ==
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.9.1":
1193
- version "5.9.1"
1194
- resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.9.1.tgz#e5a86d7e1f9dc0b3df1e6d94feaf20dd838d066c"
1195
- integrity sha512-Xv9tkFlyD4MQGpJgTo6wqDqGvHIRmRgah/2Sjz1PUnJTawjHWIwBivUE9x0QtU2WVii9baYgavo/bHjrZJkqTw==
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/experimental-utils" "5.9.1"
1198
- "@typescript-eslint/scope-manager" "5.9.1"
1199
- "@typescript-eslint/type-utils" "5.9.1"
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/experimental-utils@5.9.1":
1208
- version "5.9.1"
1209
- resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-5.9.1.tgz#8c407c4dd5ffe522329df6e4c9c2b52206d5f7f1"
1210
- integrity sha512-cb1Njyss0mLL9kLXgS/eEY53SZQ9sT519wpX3i+U457l2UXRDuo87hgKfgRazmu9/tQb0x2sr3Y0yrU+Zz0y+w==
1211
- dependencies:
1212
- "@types/json-schema" "^7.0.9"
1213
- "@typescript-eslint/scope-manager" "5.9.1"
1214
- "@typescript-eslint/types" "5.9.1"
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==
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==
1235
1211
  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.6.0":
1242
- version "5.6.0"
1243
- resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.6.0.tgz#9dd7f007dc8f3a34cdff6f79f5eaab27ae05157e"
1244
- integrity sha512-1U1G77Hw2jsGWVsO2w6eVCbOg0HZ5WxL/cozVSTfqnL/eB9muhb8THsP0G3w+BB5xAHv9KptwdfYFAUfzcIh4A==
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==
1245
1221
  dependencies:
1246
- "@typescript-eslint/types" "5.6.0"
1247
- "@typescript-eslint/visitor-keys" "5.6.0"
1222
+ "@typescript-eslint/types" "5.10.2"
1223
+ "@typescript-eslint/visitor-keys" "5.10.2"
1248
1224
 
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==
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==
1253
1229
  dependencies:
1254
- "@typescript-eslint/types" "5.9.1"
1255
- "@typescript-eslint/visitor-keys" "5.9.1"
1256
-
1257
- "@typescript-eslint/type-utils@5.9.1":
1258
- version "5.9.1"
1259
- resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.9.1.tgz#c6832ffe655b9b1fec642d36db1a262d721193de"
1260
- integrity sha512-tRSpdBnPRssjlUh35rE9ug5HrUvaB9ntREy7gPXXKwmIx61TNN7+l5YKgi1hMKxo5NvqZCfYhA5FvyuJG6X6vg==
1261
- dependencies:
1262
- "@typescript-eslint/experimental-utils" "5.9.1"
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.6.0":
1267
- version "5.6.0"
1268
- resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.6.0.tgz#745cb1b59daadcc1f32f7be95f0f68accf38afdd"
1269
- integrity sha512-OIZffked7mXv4mXzWU5MgAEbCf9ecNJBKi+Si6/I9PpTaj+cf2x58h2oHW5/P/yTnPkKaayfjhLvx+crnl5ubA==
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==
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==
1275
1238
 
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==
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==
1280
1243
  dependencies:
1281
- "@typescript-eslint/types" "5.6.0"
1282
- "@typescript-eslint/visitor-keys" "5.6.0"
1244
+ "@typescript-eslint/types" "5.10.2"
1245
+ "@typescript-eslint/visitor-keys" "5.10.2"
1283
1246
  debug "^4.3.2"
1284
1247
  globby "^11.0.4"
1285
1248
  is-glob "^4.0.3"
1286
1249
  semver "^7.3.5"
1287
1250
  tsutils "^3.21.0"
1288
1251
 
1289
- "@typescript-eslint/typescript-estree@5.9.1":
1290
- version "5.9.1"
1291
- resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.9.1.tgz#d5b996f49476495070d2b8dd354861cf33c005d6"
1292
- integrity sha512-gL1sP6A/KG0HwrahVXI9fZyeVTxEYV//6PmcOn1tD0rw8VhUWYeZeuWHwwhnewnvEMcHjhnJLOBhA9rK4vmb8A==
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==
1293
1256
  dependencies:
1294
- "@typescript-eslint/types" "5.9.1"
1295
- "@typescript-eslint/visitor-keys" "5.9.1"
1296
- debug "^4.3.2"
1297
- globby "^11.0.4"
1298
- is-glob "^4.0.3"
1299
- semver "^7.3.5"
1300
- tsutils "^3.21.0"
1301
-
1302
- "@typescript-eslint/visitor-keys@5.6.0":
1303
- version "5.6.0"
1304
- resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.6.0.tgz#3e36509e103fe9713d8f035ac977235fd63cb6e6"
1305
- integrity sha512-1p7hDp5cpRFUyE3+lvA74egs+RWSgumrBpzBCDzfTFv0aQ7lIeay80yU0hIxgAhwQ6PcasW35kaOCyDOv6O/Ng==
1306
- dependencies:
1307
- "@typescript-eslint/types" "5.6.0"
1308
- eslint-visitor-keys "^3.0.0"
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.9.1":
1311
- version "5.9.1"
1312
- resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.9.1.tgz#f52206f38128dd4f675cf28070a41596eee985b7"
1313
- integrity sha512-Xh37pNz9e9ryW4TVdwiFzmr4hloty8cFj8GTWMXh3Z8swGwyQWeCcNgF0hm6t09iZd6eiZmIf4zHedQVP6TVtg==
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.9.1"
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.24.0:
1505
- version "0.24.0"
1506
- resolved "https://registry.yarnpkg.com/axios/-/axios-0.24.0.tgz#804e6fa1e4b9c5288501dd9dff56a7a0940d20d6"
1507
- integrity sha512-Q6cWsys88HoPgAaFAVUb0WpPk0O8iTeisR9IMqy9G8AbO4NlpVknrnQS03zzF9PGAWgO3cgletO3VjV/P7VztA==
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.4"
1463
+ follow-redirects "^1.14.7"
1510
1464
 
1511
1465
  babel-jest@^27.4.6:
1512
1466
  version "27.4.6"
@@ -2061,6 +2015,11 @@ domexception@^2.0.1:
2061
2015
  dependencies:
2062
2016
  webidl-conversions "^5.0.0"
2063
2017
 
2018
+ dotenv@^16.0.0:
2019
+ version "16.0.0"
2020
+ resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.0.0.tgz#c619001253be89ebb638d027b609c75c26e47411"
2021
+ integrity sha512-qD9WU0MPM4SWLPJy/r2Be+2WgQj8plChsyrCNQzW/0WjvcJQiKQJ9mH3ZgB3fxbUUxgc/11ZJ0Fi5KiimWGz2Q==
2022
+
2064
2023
  dset@^3.1.0:
2065
2024
  version "3.1.1"
2066
2025
  resolved "https://registry.yarnpkg.com/dset/-/dset-3.1.1.tgz#07de5af7a8d03eab337ad1a8ba77fe17bba61a8c"
@@ -2205,12 +2164,12 @@ eslint-plugin-import@^2.25.4:
2205
2164
  resolve "^1.20.0"
2206
2165
  tsconfig-paths "^3.12.0"
2207
2166
 
2208
- eslint-plugin-jest@^25.7.0:
2209
- version "25.7.0"
2210
- resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-25.7.0.tgz#ff4ac97520b53a96187bad9c9814e7d00de09a6a"
2211
- integrity sha512-PWLUEXeeF7C9QGKqvdSbzLOiLTx+bno7/HC9eefePfEb257QFHg7ye3dh80AZVkaa/RQsBB1Q/ORQvg2X7F0NQ==
2167
+ eslint-plugin-jest@^26.0.0:
2168
+ version "26.0.0"
2169
+ resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-26.0.0.tgz#f83a25a23ab90ce5b375b1d44389b8c391be5ce8"
2170
+ integrity sha512-Fvs0YgJ/nw9FTrnqTuMGVrkozkd07jkQzWm0ajqyHlfcsdkxGfAuv30fgfWHOnHiCr9+1YQ365CcDX7vrNhqQg==
2212
2171
  dependencies:
2213
- "@typescript-eslint/experimental-utils" "^5.0.0"
2172
+ "@typescript-eslint/utils" "^5.10.0"
2214
2173
 
2215
2174
  eslint-plugin-prettier@^4.0.0:
2216
2175
  version "4.0.0"
@@ -2257,10 +2216,10 @@ eslint-visitor-keys@^3.2.0:
2257
2216
  resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.2.0.tgz#6fbb166a6798ee5991358bc2daa1ba76cc1254a1"
2258
2217
  integrity sha512-IOzT0X126zn7ALX0dwFiUQEdsfzrm4+ISsQS8nukaJXwEyYKRSnEIIDULYg1mCtGp7UUXgfGl7BIolXREQK+XQ==
2259
2218
 
2260
- eslint@^8.7.0:
2261
- version "8.7.0"
2262
- resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.7.0.tgz#22e036842ee5b7cf87b03fe237731675b4d3633c"
2263
- integrity sha512-ifHYzkBGrzS2iDU7KjhCAVMGCvF6M3Xfs8X8b37cgrUlDt6bWRTpRh6T/gtSXv1HJ/BUGgmjvNvOEGu85Iif7w==
2219
+ eslint@^8.8.0:
2220
+ version "8.8.0"
2221
+ resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.8.0.tgz#9762b49abad0cb4952539ffdb0a046392e571a2d"
2222
+ integrity sha512-H3KXAzQGBH1plhYS3okDix2ZthuYJlQQEGE5k0IKuEqUSiyu4AmxxlJ2MtTYeJ3xB4jDhcYCwGOg2TXYdnDXlQ==
2264
2223
  dependencies:
2265
2224
  "@eslint/eslintrc" "^1.0.5"
2266
2225
  "@humanwhocodes/config-array" "^0.9.2"
@@ -2516,7 +2475,7 @@ fn.name@1.x.x:
2516
2475
  resolved "https://registry.yarnpkg.com/fn.name/-/fn.name-1.1.0.tgz#26cad8017967aea8731bc42961d04a3d5988accc"
2517
2476
  integrity sha512-GRnmB5gPyJpAhTQdSZTSp9uaPSvl09KoYcMQtsB9rQoOmzs9dH6ffeccH+Z+cv6P68Hu5bC6JjRh4Ah/mHSNRw==
2518
2477
 
2519
- follow-redirects@^1.14.4:
2478
+ follow-redirects@^1.14.7:
2520
2479
  version "1.14.7"
2521
2480
  resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.7.tgz#2004c02eb9436eee9a21446a6477debf17e81685"
2522
2481
  integrity sha512-+hbxoLbFMbRKDwohX8GkTataGqO6Jb7jGwpAlwgy2bIz25XtRm7KEzJM76R1WiNT5SwZkX4Y75SwBolkpmE7iQ==
@@ -2689,10 +2648,10 @@ graphql-ws@^5.4.1:
2689
2648
  resolved "https://registry.yarnpkg.com/graphql-ws/-/graphql-ws-5.5.5.tgz#f375486d3f196e2a2527b503644693ae3a8670a9"
2690
2649
  integrity sha512-hvyIS71vs4Tu/yUYHPvGXsTgo0t3arU820+lT5VjZS2go0ewp2LqyCgxEN56CzOG7Iys52eRhHBiD1gGRdiQtw==
2691
2650
 
2692
- graphql@^16.2.0:
2693
- version "16.2.0"
2694
- resolved "https://registry.yarnpkg.com/graphql/-/graphql-16.2.0.tgz#de3150e80f1fc009590b92a9d16ab1b46e12b656"
2695
- integrity sha512-MuQd7XXrdOcmfwuLwC2jNvx0n3rxIuNYOxUtiee5XOmfrWo613ar2U8pE7aHAKh8VwfpifubpD9IP+EdEAEOsA==
2651
+ graphql@^16.3.0:
2652
+ version "16.3.0"
2653
+ resolved "https://registry.yarnpkg.com/graphql/-/graphql-16.3.0.tgz#a91e24d10babf9e60c706919bb182b53ccdffc05"
2654
+ integrity sha512-xm+ANmA16BzCT5pLjuXySbQVFwH3oJctUVdy81w1sV0vBU0KgDdBGtxQOUd5zqOBk/JayAFeG8Dlmeq74rjm/A==
2696
2655
 
2697
2656
  has-ansi@^3.0.0:
2698
2657
  version "3.0.0"
@@ -3643,10 +3602,10 @@ lines-and-columns@^1.1.6:
3643
3602
  resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632"
3644
3603
  integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==
3645
3604
 
3646
- lint-staged@^12.1.7:
3647
- version "12.1.7"
3648
- resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-12.1.7.tgz#fe9137992ac18a456422bb8484dd30be0140629f"
3649
- integrity sha512-bltv/ejiLWtowExpjU+s5z8j1Byjg9AlmaAjMmqNbIicY69u6sYIwXGg0dCn0TlkrrY2CphtHIXAkbZ+1VoWQQ==
3605
+ lint-staged@^12.3.3:
3606
+ version "12.3.3"
3607
+ resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-12.3.3.tgz#0a465962fe53baa2b4b9da50801ead49a910e03b"
3608
+ integrity sha512-OqcLsqcPOqzvsfkxjeBpZylgJ3SRG1RYqc9LxC6tkt6tNsq1bNVkAixBwX09f6CobcHswzqVOCBpFR1Fck0+ag==
3650
3609
  dependencies:
3651
3610
  cli-truncate "^3.1.0"
3652
3611
  colorette "^2.0.16"
@@ -3654,25 +3613,25 @@ lint-staged@^12.1.7:
3654
3613
  debug "^4.3.3"
3655
3614
  execa "^5.1.1"
3656
3615
  lilconfig "2.0.4"
3657
- listr2 "^3.13.5"
3616
+ listr2 "^4.0.1"
3658
3617
  micromatch "^4.0.4"
3659
3618
  normalize-path "^3.0.0"
3660
- object-inspect "^1.11.1"
3619
+ object-inspect "^1.12.0"
3661
3620
  string-argv "^0.3.1"
3662
3621
  supports-color "^9.2.1"
3663
3622
  yaml "^1.10.2"
3664
3623
 
3665
- listr2@^3.13.5:
3666
- version "3.13.5"
3667
- resolved "https://registry.yarnpkg.com/listr2/-/listr2-3.13.5.tgz#105a813f2eb2329c4aae27373a281d610ee4985f"
3668
- integrity sha512-3n8heFQDSk+NcwBn3CgxEibZGaRzx+pC64n3YjpMD1qguV4nWus3Al+Oo3KooqFKTQEJ1v7MmnbnyyNspgx3NA==
3624
+ listr2@^4.0.1:
3625
+ version "4.0.2"
3626
+ resolved "https://registry.yarnpkg.com/listr2/-/listr2-4.0.2.tgz#04d66f8c8694a14920d7df08ebe01568948fb500"
3627
+ integrity sha512-YcgwfCWpvPbj9FLUGqvdFvd3hrFWKpOeuXznRgfWEJ7RNr8b/IKKIKZABHx3aU+4CWN/iSAFFSReziQG6vTeIA==
3669
3628
  dependencies:
3670
3629
  cli-truncate "^2.1.0"
3671
3630
  colorette "^2.0.16"
3672
3631
  log-update "^4.0.0"
3673
3632
  p-map "^4.0.0"
3674
3633
  rfdc "^1.3.0"
3675
- rxjs "^7.4.0"
3634
+ rxjs "^7.5.2"
3676
3635
  through "^2.3.8"
3677
3636
  wrap-ansi "^7.0.0"
3678
3637
 
@@ -3855,10 +3814,10 @@ natural-compare@^1.4.0:
3855
3814
  resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7"
3856
3815
  integrity sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=
3857
3816
 
3858
- nock@^13.2.2:
3859
- version "13.2.2"
3860
- resolved "https://registry.yarnpkg.com/nock/-/nock-13.2.2.tgz#29a6942250278209c2b3e7a38310f703581b21fa"
3861
- integrity sha512-PcBHuvl9i6zfaJ50A7LS55oU+nFLv8htXIhffJO+FxyfibdZ4jEvd9kTuvkrJireBFIGMZ+oUIRpMK5gU9h//g==
3817
+ nock@^13.2.4:
3818
+ version "13.2.4"
3819
+ resolved "https://registry.yarnpkg.com/nock/-/nock-13.2.4.tgz#43a309d93143ee5cdcca91358614e7bde56d20e1"
3820
+ integrity sha512-8GPznwxcPNCH/h8B+XZcKjYPXnUV5clOKCjAqyjsiqA++MpNx9E9+t8YPp0MbThO+KauRo7aZJ1WuIZmOrT2Ug==
3862
3821
  dependencies:
3863
3822
  debug "^4.1.0"
3864
3823
  json-stringify-safe "^5.0.1"
@@ -3871,9 +3830,9 @@ node-domexception@1.0.0:
3871
3830
  integrity sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==
3872
3831
 
3873
3832
  node-fetch@^2.6.1, node-fetch@^2.6.5:
3874
- version "2.6.6"
3875
- resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.6.tgz#1751a7c01834e8e1697758732e9efb6eeadfaf89"
3876
- integrity sha512-Z8/6vRlTUChSdIgMa51jxQ4lrw/Jy5SOW10ObaA47/RElsAN2c5Pn8bTgFGWn/ibwzXTE8qwr1Yzx28vsecXEA==
3833
+ version "2.6.7"
3834
+ resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.7.tgz#24de9fba827e3b4ae44dc8b20256a379160052ad"
3835
+ integrity sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==
3877
3836
  dependencies:
3878
3837
  whatwg-url "^5.0.0"
3879
3838
 
@@ -3916,7 +3875,7 @@ object-inspect@^1.11.0, object-inspect@^1.9.0:
3916
3875
  resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.11.1.tgz#d4bd7d7de54b9a75599f59a00bd698c1f1c6549b"
3917
3876
  integrity sha512-If7BjFlpkzzBeV1cqgT3OSWT3azyoxDGajR+iGnFBfVV2EWyDyWaZZW2ERDjUaY2QM8i5jI3Sj7mhsM4DDAqWA==
3918
3877
 
3919
- object-inspect@^1.11.1:
3878
+ object-inspect@^1.12.0:
3920
3879
  version "1.12.0"
3921
3880
  resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.12.0.tgz#6e2c120e868fd1fd18cb4f18c31741d0d6e776f0"
3922
3881
  integrity sha512-Ho2z80bVIvJloH+YzRmpZVQe87+qASmBUKZDWgx9cu+KDrX2ZDH/3tMy+gXbZETVGs2M8YdxObOh7XAtim9Y0g==
@@ -4308,13 +4267,20 @@ run-parallel@^1.1.9:
4308
4267
  dependencies:
4309
4268
  queue-microtask "^1.2.2"
4310
4269
 
4311
- rxjs@^7.2.0, rxjs@^7.4.0:
4270
+ rxjs@^7.2.0:
4312
4271
  version "7.4.0"
4313
4272
  resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.4.0.tgz#a12a44d7eebf016f5ff2441b87f28c9a51cebc68"
4314
4273
  integrity sha512-7SQDi7xeTMCJpqViXh8gL/lebcwlp3d831F05+9B44A4B0WfsEwUQHR64gsH1kvJ+Ep/J9K2+n1hVl1CsGN23w==
4315
4274
  dependencies:
4316
4275
  tslib "~2.1.0"
4317
4276
 
4277
+ rxjs@^7.5.2:
4278
+ version "7.5.2"
4279
+ resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.5.2.tgz#11e4a3a1dfad85dbf7fb6e33cbba17668497490b"
4280
+ integrity sha512-PwDt186XaL3QN5qXj/H9DGyHhP3/RYYgZZwqBv9Tv8rsAaiwFH1IsJJlcgD37J7UW5a6O67qX0KWKS3/pu0m4w==
4281
+ dependencies:
4282
+ tslib "^2.1.0"
4283
+
4318
4284
  safe-buffer@~5.1.1:
4319
4285
  version "5.1.2"
4320
4286
  resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d"
@@ -4335,6 +4301,11 @@ safe-stable-stringify@^1.1.0:
4335
4301
  resolved "https://registry.yarnpkg.com/safe-stable-stringify/-/safe-stable-stringify-1.1.1.tgz#c8a220ab525cd94e60ebf47ddc404d610dc5d84a"
4336
4302
  integrity sha512-ERq4hUjKDbJfE4+XtZLFPCDi8Vb1JqaxAPTxWFLBx8XcAlf9Bda/ZJdVezs/NAfsMQScyIlUMx+Yeu7P7rx5jw==
4337
4303
 
4304
+ safe-stable-stringify@^2.3.1:
4305
+ version "2.3.1"
4306
+ resolved "https://registry.yarnpkg.com/safe-stable-stringify/-/safe-stable-stringify-2.3.1.tgz#ab67cbe1fe7d40603ca641c5e765cb942d04fc73"
4307
+ integrity sha512-kYBSfT+troD9cDA85VDnHZ1rpHC50O0g1e6WlGHVCz/g+JS+9WKLj+XwFYyR8UbrZN8ll9HUpDAAddY58MGisg==
4308
+
4338
4309
  "safer-buffer@>= 2.1.2 < 3":
4339
4310
  version "2.1.2"
4340
4311
  resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a"
@@ -4830,10 +4801,10 @@ typedarray-to-buffer@^3.1.5:
4830
4801
  dependencies:
4831
4802
  is-typedarray "^1.0.0"
4832
4803
 
4833
- typescript@^4.5.4:
4834
- version "4.5.4"
4835
- resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.4.tgz#a17d3a0263bf5c8723b9c52f43c5084edf13c2e8"
4836
- integrity sha512-VgYs2A2QIRuGphtzFV7aQJduJ2gyfTljngLzjpfW9FoYZF6xuw1W0vW9ghCKLfcWrCFxK81CSGRAvS1pn4fIUg==
4804
+ typescript@^4.5.5:
4805
+ version "4.5.5"
4806
+ resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.5.tgz#d8c953832d28924a9e3d37c73d729c846c5896f3"
4807
+ integrity sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA==
4837
4808
 
4838
4809
  unbox-primitive@^1.0.1:
4839
4810
  version "1.0.1"
@@ -5012,10 +4983,10 @@ winston-transport@^4.4.2:
5012
4983
  readable-stream "^3.4.0"
5013
4984
  triple-beam "^1.2.0"
5014
4985
 
5015
- winston@^3.4.0:
5016
- version "3.4.0"
5017
- resolved "https://registry.yarnpkg.com/winston/-/winston-3.4.0.tgz#7080f24b02a0684f8a37f9d5c6afb1ac23e95b84"
5018
- integrity sha512-FqilVj+5HKwCfIHQzMxrrd5tBIH10JTS3koFGbLVWBODjiIYq7zir08rFyBT4rrTYG/eaTqDcfSIbcjSM78YSw==
4986
+ winston@^3.5.1:
4987
+ version "3.5.1"
4988
+ resolved "https://registry.yarnpkg.com/winston/-/winston-3.5.1.tgz#b25cc899d015836dbf8c583dec8c4c4483a0da2e"
4989
+ integrity sha512-tbRtVy+vsSSCLcZq/8nXZaOie/S2tPXPFt4be/Q3vI/WtYwm7rrwidxVw2GRa38FIXcJ1kUM6MOZ9Jmnk3F3UA==
5019
4990
  dependencies:
5020
4991
  "@dabh/diagnostics" "^2.0.2"
5021
4992
  async "^3.2.3"
@@ -5023,6 +4994,7 @@ winston@^3.4.0:
5023
4994
  logform "^2.3.2"
5024
4995
  one-time "^1.0.0"
5025
4996
  readable-stream "^3.4.0"
4997
+ safe-stable-stringify "^2.3.1"
5026
4998
  stack-trace "0.0.x"
5027
4999
  triple-beam "^1.3.0"
5028
5000
  winston-transport "^4.4.2"
@@ -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[]>;
@@ -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,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
- });