backport 8.1.0 → 8.3.0

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 (47) hide show
  1. package/dist/backportRun.js +7 -12
  2. package/dist/entrypoint.cli.js +1 -1
  3. package/dist/entrypoint.module.private.test.js +21 -0
  4. package/dist/lib/cherrypickAndCreateTargetPullRequest.d.ts +1 -3
  5. package/dist/lib/cherrypickAndCreateTargetPullRequest.js +6 -2
  6. package/dist/lib/child-process-promisified.js +5 -3
  7. package/dist/lib/env.d.ts +3 -1
  8. package/dist/lib/env.js +2 -2
  9. package/dist/lib/getTargetBranches.d.ts +1 -1
  10. package/dist/lib/getTargetBranches.js +1 -1
  11. package/dist/lib/getTargetBranches.test.js +11 -7
  12. package/dist/lib/git.js +1 -1
  13. package/dist/lib/github/v3/addLabelsToPullRequest.js +1 -1
  14. package/dist/lib/github/v3/addReviewersToPullRequest.js +1 -1
  15. package/dist/lib/github/v3/createPullRequest.js +6 -6
  16. package/dist/lib/github/v3/createStatusComment.js +6 -4
  17. package/dist/lib/github/v3/createStatusComment.test.js +108 -3
  18. package/dist/lib/github/v4/apiRequestV4.js +7 -7
  19. package/dist/lib/github/v4/validateTargetBranches.d.ts +9 -0
  20. package/dist/lib/github/v4/validateTargetBranches.js +46 -0
  21. package/dist/lib/github/v4/validateTargetBranches.private.test.d.ts +1 -0
  22. package/dist/lib/github/v4/validateTargetBranches.private.test.js +51 -0
  23. package/dist/lib/logger.d.ts +2 -0
  24. package/dist/lib/logger.js +20 -14
  25. package/dist/options/cliArgs.d.ts +6 -6
  26. package/dist/options/cliArgs.js +3 -3
  27. package/dist/options/cliArgs.test.js +10 -10
  28. package/dist/options/config/readConfigFile.d.ts +5 -5
  29. package/dist/options/options.d.ts +4 -4
  30. package/dist/runSequentially.d.ts +1 -3
  31. package/dist/runSequentially.js +2 -3
  32. package/dist/test/e2e/cli/different-merge-strategies.private.test.js +1 -1
  33. package/dist/test/e2e/cli/entrypoint.cli.private.test.js +7 -260
  34. package/dist/test/e2e/cli/error-handling-interactive-mode.private.test.d.ts +1 -0
  35. package/dist/test/e2e/cli/error-handling-interactive-mode.private.test.js +80 -0
  36. package/dist/test/e2e/cli/error-handling-non-interactive-mode.private.test.d.ts +1 -0
  37. package/dist/test/e2e/cli/error-handling-non-interactive-mode.private.test.js +199 -0
  38. package/dist/test/e2e/cli/interactive-error-handling.private.test.d.ts +1 -0
  39. package/dist/test/e2e/cli/interactive-error-handling.private.test.js +80 -0
  40. package/dist/test/e2e/cli/non-interactive-error-handling.private.test.d.ts +1 -0
  41. package/dist/test/e2e/cli/non-interactive-error-handling.private.test.js +198 -0
  42. package/dist/test/e2e/cli/repo-with-backportrc-removed.private.test.js +1 -1
  43. package/dist/test/e2e/cli/runBackportViaCli.js +1 -1
  44. package/dist/utils/packageVersion.d.ts +1 -1
  45. package/dist/utils/packageVersion.js +1 -1
  46. package/package.json +5 -5
  47. package/yarn.lock +60 -55
package/yarn.lock CHANGED
@@ -956,11 +956,16 @@
956
956
  resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.180.tgz#4ab7c9ddfc92ec4a887886483bc14c79fb380670"
957
957
  integrity sha512-XOKXa1KIxtNXgASAnwj7cnttJxS4fksBRywK/9LzRV5YxrF80BXZIGeQSuoESQ/VkUj30Ae0+YcuHc15wJCB2g==
958
958
 
959
- "@types/node@*", "@types/node@^17.0.21":
959
+ "@types/node@*":
960
960
  version "17.0.21"
961
961
  resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.21.tgz#864b987c0c68d07b4345845c3e63b75edd143644"
962
962
  integrity sha512-DBZCJbhII3r90XbQxI8Y9IjjiiOGlZ0Hr32omXIZvwwZ7p4DMMXGrKXVyPfuoBOri9XNtL0UK69jYIBIsRX3QQ==
963
963
 
964
+ "@types/node@^17.0.23":
965
+ version "17.0.23"
966
+ resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.23.tgz#3b41a6e643589ac6442bdbd7a4a3ded62f33f7da"
967
+ integrity sha512-UxDxWn7dl97rKVeVS61vErvw086aCYhDLyvRQZ5Rk65rZKepaFdm53GeqXaKBuOhED4e9uWq34IC3TdSdJJ2Gw==
968
+
964
969
  "@types/parse-json@^4.0.0":
965
970
  version "4.0.0"
966
971
  resolved "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.0.tgz#2f8bb441434d163b35fb8ffdccd7138927ffb8c0"
@@ -1021,14 +1026,14 @@
1021
1026
  dependencies:
1022
1027
  "@types/yargs-parser" "*"
1023
1028
 
1024
- "@typescript-eslint/eslint-plugin@^5.15.0":
1025
- version "5.15.0"
1026
- resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.15.0.tgz#c28ef7f2e688066db0b6a9d95fb74185c114fb9a"
1027
- integrity sha512-u6Db5JfF0Esn3tiAKELvoU5TpXVSkOpZ78cEGn/wXtT2RVqs2vkt4ge6N8cRCyw7YVKhmmLDbwI2pg92mlv7cA==
1029
+ "@typescript-eslint/eslint-plugin@^5.16.0":
1030
+ version "5.16.0"
1031
+ resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.16.0.tgz#78f246dd8d1b528fc5bfca99a8a64d4023a3d86d"
1032
+ integrity sha512-SJoba1edXvQRMmNI505Uo4XmGbxCK9ARQpkvOd00anxzri9RNQk0DDCxD+LIl+jYhkzOJiOMMKYEHnHEODjdCw==
1028
1033
  dependencies:
1029
- "@typescript-eslint/scope-manager" "5.15.0"
1030
- "@typescript-eslint/type-utils" "5.15.0"
1031
- "@typescript-eslint/utils" "5.15.0"
1034
+ "@typescript-eslint/scope-manager" "5.16.0"
1035
+ "@typescript-eslint/type-utils" "5.16.0"
1036
+ "@typescript-eslint/utils" "5.16.0"
1032
1037
  debug "^4.3.2"
1033
1038
  functional-red-black-tree "^1.0.1"
1034
1039
  ignore "^5.1.8"
@@ -1036,14 +1041,14 @@
1036
1041
  semver "^7.3.5"
1037
1042
  tsutils "^3.21.0"
1038
1043
 
1039
- "@typescript-eslint/parser@^5.15.0":
1040
- version "5.15.0"
1041
- resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.15.0.tgz#95f603f8fe6eca7952a99bfeef9b85992972e728"
1042
- integrity sha512-NGAYP/+RDM2sVfmKiKOCgJYPstAO40vPAgACoWPO/+yoYKSgAXIFaBKsV8P0Cc7fwKgvj27SjRNX4L7f4/jCKQ==
1044
+ "@typescript-eslint/parser@^5.16.0":
1045
+ version "5.16.0"
1046
+ resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.16.0.tgz#e4de1bde4b4dad5b6124d3da227347616ed55508"
1047
+ integrity sha512-fkDq86F0zl8FicnJtdXakFs4lnuebH6ZADDw6CYQv0UZeIjHvmEw87m9/29nk2Dv5Lmdp0zQ3zDQhiMWQf/GbA==
1043
1048
  dependencies:
1044
- "@typescript-eslint/scope-manager" "5.15.0"
1045
- "@typescript-eslint/types" "5.15.0"
1046
- "@typescript-eslint/typescript-estree" "5.15.0"
1049
+ "@typescript-eslint/scope-manager" "5.16.0"
1050
+ "@typescript-eslint/types" "5.16.0"
1051
+ "@typescript-eslint/typescript-estree" "5.16.0"
1047
1052
  debug "^4.3.2"
1048
1053
 
1049
1054
  "@typescript-eslint/scope-manager@5.14.0":
@@ -1054,20 +1059,20 @@
1054
1059
  "@typescript-eslint/types" "5.14.0"
1055
1060
  "@typescript-eslint/visitor-keys" "5.14.0"
1056
1061
 
1057
- "@typescript-eslint/scope-manager@5.15.0":
1058
- version "5.15.0"
1059
- resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.15.0.tgz#d97afab5e0abf4018d1289bd711be21676cdd0ee"
1060
- integrity sha512-EFiZcSKrHh4kWk0pZaa+YNJosvKE50EnmN4IfgjkA3bTHElPtYcd2U37QQkNTqwMCS7LXeDeZzEqnsOH8chjSg==
1062
+ "@typescript-eslint/scope-manager@5.16.0":
1063
+ version "5.16.0"
1064
+ resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.16.0.tgz#7e7909d64bd0c4d8aef629cdc764b9d3e1d3a69a"
1065
+ integrity sha512-P+Yab2Hovg8NekLIR/mOElCDPyGgFZKhGoZA901Yax6WR6HVeGLbsqJkZ+Cvk5nts/dAlFKm8PfL43UZnWdpIQ==
1061
1066
  dependencies:
1062
- "@typescript-eslint/types" "5.15.0"
1063
- "@typescript-eslint/visitor-keys" "5.15.0"
1067
+ "@typescript-eslint/types" "5.16.0"
1068
+ "@typescript-eslint/visitor-keys" "5.16.0"
1064
1069
 
1065
- "@typescript-eslint/type-utils@5.15.0":
1066
- version "5.15.0"
1067
- resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.15.0.tgz#d2c02eb2bdf54d0a645ba3a173ceda78346cf248"
1068
- integrity sha512-KGeDoEQ7gHieLydujGEFLyLofipe9PIzfvA/41urz4hv+xVxPEbmMQonKSynZ0Ks2xDhJQ4VYjB3DnRiywvKDA==
1070
+ "@typescript-eslint/type-utils@5.16.0":
1071
+ version "5.16.0"
1072
+ resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.16.0.tgz#b482bdde1d7d7c0c7080f7f2f67ea9580b9e0692"
1073
+ integrity sha512-SKygICv54CCRl1Vq5ewwQUJV/8padIWvPgCxlWPGO/OgQLCijY9G7lDu6H+mqfQtbzDNlVjzVWQmeqbLMBLEwQ==
1069
1074
  dependencies:
1070
- "@typescript-eslint/utils" "5.15.0"
1075
+ "@typescript-eslint/utils" "5.16.0"
1071
1076
  debug "^4.3.2"
1072
1077
  tsutils "^3.21.0"
1073
1078
 
@@ -1076,10 +1081,10 @@
1076
1081
  resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.14.0.tgz#96317cf116cea4befabc0defef371a1013f8ab11"
1077
1082
  integrity sha512-BR6Y9eE9360LNnW3eEUqAg6HxS9Q35kSIs4rp4vNHRdfg0s+/PgHgskvu5DFTM7G5VKAVjuyaN476LCPrdA7Mw==
1078
1083
 
1079
- "@typescript-eslint/types@5.15.0":
1080
- version "5.15.0"
1081
- resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.15.0.tgz#c7bdd103843b1abae97b5518219d3e2a0d79a501"
1082
- integrity sha512-yEiTN4MDy23vvsIksrShjNwQl2vl6kJeG9YkVJXjXZnkJElzVK8nfPsWKYxcsGWG8GhurYXP4/KGj3aZAxbeOA==
1084
+ "@typescript-eslint/types@5.16.0":
1085
+ version "5.16.0"
1086
+ resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.16.0.tgz#5827b011982950ed350f075eaecb7f47d3c643ee"
1087
+ integrity sha512-oUorOwLj/3/3p/HFwrp6m/J2VfbLC8gjW5X3awpQJ/bSG+YRGFS4dpsvtQ8T2VNveV+LflQHjlLvB6v0R87z4g==
1083
1088
 
1084
1089
  "@typescript-eslint/typescript-estree@5.14.0":
1085
1090
  version "5.14.0"
@@ -1094,28 +1099,28 @@
1094
1099
  semver "^7.3.5"
1095
1100
  tsutils "^3.21.0"
1096
1101
 
1097
- "@typescript-eslint/typescript-estree@5.15.0":
1098
- version "5.15.0"
1099
- resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.15.0.tgz#81513a742a9c657587ad1ddbca88e76c6efb0aac"
1100
- integrity sha512-Hb0e3dGc35b75xLzixM3cSbG1sSbrTBQDfIScqdyvrfJZVEi4XWAT+UL/HMxEdrJNB8Yk28SKxPLtAhfCbBInA==
1102
+ "@typescript-eslint/typescript-estree@5.16.0":
1103
+ version "5.16.0"
1104
+ resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.16.0.tgz#32259459ec62f5feddca66adc695342f30101f61"
1105
+ integrity sha512-SE4VfbLWUZl9MR+ngLSARptUv2E8brY0luCdgmUevU6arZRY/KxYoLI/3V/yxaURR8tLRN7bmZtJdgmzLHI6pQ==
1101
1106
  dependencies:
1102
- "@typescript-eslint/types" "5.15.0"
1103
- "@typescript-eslint/visitor-keys" "5.15.0"
1107
+ "@typescript-eslint/types" "5.16.0"
1108
+ "@typescript-eslint/visitor-keys" "5.16.0"
1104
1109
  debug "^4.3.2"
1105
1110
  globby "^11.0.4"
1106
1111
  is-glob "^4.0.3"
1107
1112
  semver "^7.3.5"
1108
1113
  tsutils "^3.21.0"
1109
1114
 
1110
- "@typescript-eslint/utils@5.15.0":
1111
- version "5.15.0"
1112
- resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.15.0.tgz#468510a0974d3ced8342f37e6c662778c277f136"
1113
- integrity sha512-081rWu2IPKOgTOhHUk/QfxuFog8m4wxW43sXNOMSCdh578tGJ1PAaWPsj42LOa7pguh173tNlMigsbrHvh/mtA==
1115
+ "@typescript-eslint/utils@5.16.0":
1116
+ version "5.16.0"
1117
+ resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.16.0.tgz#42218b459d6d66418a4eb199a382bdc261650679"
1118
+ integrity sha512-iYej2ER6AwmejLWMWzJIHy3nPJeGDuCqf8Jnb+jAQVoPpmWzwQOfa9hWVB8GIQE5gsCv/rfN4T+AYb/V06WseQ==
1114
1119
  dependencies:
1115
1120
  "@types/json-schema" "^7.0.9"
1116
- "@typescript-eslint/scope-manager" "5.15.0"
1117
- "@typescript-eslint/types" "5.15.0"
1118
- "@typescript-eslint/typescript-estree" "5.15.0"
1121
+ "@typescript-eslint/scope-manager" "5.16.0"
1122
+ "@typescript-eslint/types" "5.16.0"
1123
+ "@typescript-eslint/typescript-estree" "5.16.0"
1119
1124
  eslint-scope "^5.1.1"
1120
1125
  eslint-utils "^3.0.0"
1121
1126
 
@@ -1139,12 +1144,12 @@
1139
1144
  "@typescript-eslint/types" "5.14.0"
1140
1145
  eslint-visitor-keys "^3.0.0"
1141
1146
 
1142
- "@typescript-eslint/visitor-keys@5.15.0":
1143
- version "5.15.0"
1144
- resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.15.0.tgz#5669739fbf516df060f978be6a6dce75855a8027"
1145
- integrity sha512-+vX5FKtgvyHbmIJdxMJ2jKm9z2BIlXJiuewI8dsDYMp5LzPUcuTT78Ya5iwvQg3VqSVdmxyM8Anj1Jeq7733ZQ==
1147
+ "@typescript-eslint/visitor-keys@5.16.0":
1148
+ version "5.16.0"
1149
+ resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.16.0.tgz#f27dc3b943e6317264c7492e390c6844cd4efbbb"
1150
+ integrity sha512-jqxO8msp5vZDhikTwq9ubyMHqZ67UIvawohr4qF3KhlpL7gzSjOd+8471H3nh5LyABkaI85laEKKU8SnGUK5/g==
1146
1151
  dependencies:
1147
- "@typescript-eslint/types" "5.15.0"
1152
+ "@typescript-eslint/types" "5.16.0"
1148
1153
  eslint-visitor-keys "^3.0.0"
1149
1154
 
1150
1155
  abab@^2.0.3, abab@^2.0.5:
@@ -2038,10 +2043,10 @@ eslint-plugin-import@^2.25.4:
2038
2043
  resolve "^1.20.0"
2039
2044
  tsconfig-paths "^3.12.0"
2040
2045
 
2041
- eslint-plugin-jest@^26.1.1:
2042
- version "26.1.1"
2043
- resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-26.1.1.tgz#7176dd745ef8bca3070263f62cdf112f2dfc9aa1"
2044
- integrity sha512-HRKOuPi5ADhza4ZBK5ufyNXy28bXXkib87w+pQqdvBhSTsamndh6sIAKPAUl8y0/n9jSWBdTPslrwtKWqkp8dA==
2046
+ eslint-plugin-jest@^26.1.2:
2047
+ version "26.1.2"
2048
+ resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-26.1.2.tgz#0f1a15c62889fffc3f78a773749d672f1bedb15f"
2049
+ integrity sha512-1bXCoRODPkGN06n9KAMls4Jm0eyS+0Q/LWcIxhqWR2ycV0Z7lnx2c10idk4dtFIJY5xStgiIr5snC6/rxcXpbw==
2045
2050
  dependencies:
2046
2051
  "@typescript-eslint/utils" "^5.10.0"
2047
2052
 
@@ -3639,9 +3644,9 @@ minimatch@^3.0.4:
3639
3644
  brace-expansion "^1.1.7"
3640
3645
 
3641
3646
  minimist@^1.2.0, minimist@^1.2.5:
3642
- version "1.2.5"
3643
- resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602"
3644
- integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==
3647
+ version "1.2.6"
3648
+ resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.6.tgz#8637a5b759ea0d6e98702cfb3a9283323c93af44"
3649
+ integrity sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==
3645
3650
 
3646
3651
  ms@2.0.0:
3647
3652
  version "2.0.0"