backport 7.1.0 → 7.2.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.
- package/dist/entrypoint.cli.js +0 -0
- package/dist/entrypoint.module.d.ts +4 -3
- package/dist/entrypoint.module.js +2 -7
- package/dist/options/ConfigOptions.d.ts +1 -1
- package/dist/options/cliArgs.d.ts +1 -0
- package/dist/options/cliArgs.js +4 -0
- package/dist/options/config/config.d.ts +1 -1
- package/dist/options/config/readConfigFile.d.ts +1 -1
- package/dist/options/options.d.ts +2 -1
- package/dist/runSequentially.js +1 -0
- package/dist/runSequentially.test.js +55 -29
- package/dist/services/git.d.ts +3 -3
- package/dist/services/git.integration.test.js +66 -13
- package/dist/services/git.js +47 -5
- package/dist/services/git.test.js +15 -1
- package/dist/services/github/v3/createStatusComment.js +1 -1
- package/dist/services/github/v4/apiRequestV4.d.ts +4 -3
- package/dist/services/github/v4/apiRequestV4.js +15 -14
- package/dist/services/github/v4/fetchCommits/fetchCommitByPullNumber.js +19 -12
- package/dist/services/github/v4/fetchCommits/fetchCommitBySha.js +19 -12
- package/dist/services/github/v4/fetchCommits/fetchCommitsByAuthor.js +15 -9
- package/dist/services/github/v4/fetchCommits/fetchPullRequestBySearchQuery.js +15 -8
- package/dist/services/github/v4/fetchRemoteProjectConfig.js +1 -1
- package/dist/services/github/v4/getOptionsFromGithub/getOptionsFromGithub.d.ts +1 -1
- package/dist/services/github/v4/getOptionsFromGithub/getOptionsFromGithub.js +2 -15
- package/dist/services/github/v4/getOptionsFromGithub/query.js +1 -1
- package/dist/services/github/v4/mocks/commitsByAuthorMock.js +2 -5
- package/dist/services/github/v4/throwOnInvalidAccessToken.js +6 -6
- package/dist/services/github/v4/throwOnInvalidAccessToken.test.js +5 -5
- package/dist/services/remoteConfig.d.ts +2 -0
- package/dist/services/remoteConfig.js +15 -2
- package/dist/services/sourceCommit/getExpectedTargetPullRequests.d.ts +4 -1
- package/dist/services/sourceCommit/getExpectedTargetPullRequests.js +5 -1
- package/dist/services/sourceCommit/getExpectedTargetPullRequests.test.js +73 -39
- package/dist/services/sourceCommit/getMockSourceCommit.js +19 -18
- package/dist/services/sourceCommit/parseSourceCommit.d.ts +2 -2
- package/dist/services/sourceCommit/parseSourceCommit.js +9 -15
- package/dist/{entrypoint.cli.e2e.private.test.d.ts → test/e2e/cli.e2e.private.test.d.ts} +0 -0
- package/dist/{entrypoint.cli.e2e.private.test.js → test/e2e/cli.e2e.private.test.js} +153 -39
- package/dist/{services/github/v3/index.d.ts → test/e2e/module.e2e.private.test.d.ts} +0 -0
- package/dist/test/e2e/module.e2e.private.test.js +363 -0
- package/dist/test/handleUnbackportedPullRequests.private.test.js +0 -2
- package/dist/ui/cherrypickAndCreateTargetPullRequest.js +12 -18
- package/dist/ui/cherrypickAndCreateTargetPullRequest.test.js +6 -2
- package/dist/ui/getCommits.js +6 -4
- package/dist/ui/maybeSetupRepo.js +13 -16
- package/dist/ui/maybeSetupRepo.test.js +50 -16
- package/dist/ui/ora.d.ts +1 -1
- package/dist/ui/ora.js +2 -2
- package/dist/utils/packageVersion.d.ts +1 -1
- package/dist/utils/packageVersion.js +1 -1
- package/package.json +10 -10
- package/yarn.lock +121 -114
- package/dist/services/github/v3/index.js +0 -61
- package/dist/test/backport-e2e.mutation.test.d.ts +0 -1
- package/dist/test/backport-e2e.mutation.test.js +0 -347
package/yarn.lock
CHANGED
|
@@ -480,6 +480,11 @@
|
|
|
480
480
|
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
|
|
481
481
|
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==
|
|
482
482
|
|
|
483
|
+
"@colors/colors@1.5.0":
|
|
484
|
+
version "1.5.0"
|
|
485
|
+
resolved "https://registry.yarnpkg.com/@colors/colors/-/colors-1.5.0.tgz#bb504579c1cae923e6576a4f5da43d25f97bdbd9"
|
|
486
|
+
integrity sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==
|
|
487
|
+
|
|
483
488
|
"@cspotcode/source-map-consumer@0.8.0":
|
|
484
489
|
version "0.8.0"
|
|
485
490
|
resolved "https://registry.yarnpkg.com/@cspotcode/source-map-consumer/-/source-map-consumer-0.8.0.tgz#33bf4b7b39c178821606f669bbc447a6a629786b"
|
|
@@ -511,14 +516,14 @@
|
|
|
511
516
|
ts-node "^9"
|
|
512
517
|
tslib "^2"
|
|
513
518
|
|
|
514
|
-
"@eslint/eslintrc@^1.0
|
|
515
|
-
version "1.0
|
|
516
|
-
resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-1.0.
|
|
517
|
-
integrity sha512-
|
|
519
|
+
"@eslint/eslintrc@^1.1.0":
|
|
520
|
+
version "1.1.0"
|
|
521
|
+
resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-1.1.0.tgz#583d12dbec5d4f22f333f9669f7d0b7c7815b4d3"
|
|
522
|
+
integrity sha512-C1DfL7XX4nPqGd6jcP01W9pVM1HYCuUkFk1432D7F0v3JSlUIeOYn9oCoi3eoLZ+iwBSb29BMFxxny0YrrEZqg==
|
|
518
523
|
dependencies:
|
|
519
524
|
ajv "^6.12.4"
|
|
520
525
|
debug "^4.3.2"
|
|
521
|
-
espree "^9.
|
|
526
|
+
espree "^9.3.1"
|
|
522
527
|
globals "^13.9.0"
|
|
523
528
|
ignore "^4.0.6"
|
|
524
529
|
import-fresh "^3.2.1"
|
|
@@ -1135,10 +1140,10 @@
|
|
|
1135
1140
|
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.12.tgz#ac7fb693ac587ee182c3780c26eb65546a1a3c10"
|
|
1136
1141
|
integrity sha512-+2Iggwg7PxoO5Kyhvsq9VarmPbIelXP070HMImEpbtGCoyWNINQj4wzjbQCXzdHTRXnqufutJb5KAURZANNBAw==
|
|
1137
1142
|
|
|
1138
|
-
"@types/node@^17.0.
|
|
1139
|
-
version "17.0.
|
|
1140
|
-
resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.
|
|
1141
|
-
integrity sha512-
|
|
1143
|
+
"@types/node@^17.0.18":
|
|
1144
|
+
version "17.0.18"
|
|
1145
|
+
resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.18.tgz#3b4fed5cfb58010e3a2be4b6e74615e4847f1074"
|
|
1146
|
+
integrity sha512-eKj4f/BsN/qcculZiRSujogjvp5O/k4lOW5m35NopjZM/QwLOR075a8pJW5hD+Rtdm2DaCVPENS6KtSQnUD6BA==
|
|
1142
1147
|
|
|
1143
1148
|
"@types/parse-json@^4.0.0":
|
|
1144
1149
|
version "4.0.0"
|
|
@@ -1200,14 +1205,14 @@
|
|
|
1200
1205
|
dependencies:
|
|
1201
1206
|
"@types/yargs-parser" "*"
|
|
1202
1207
|
|
|
1203
|
-
"@typescript-eslint/eslint-plugin@^5.
|
|
1204
|
-
version "5.
|
|
1205
|
-
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.
|
|
1206
|
-
integrity sha512-
|
|
1208
|
+
"@typescript-eslint/eslint-plugin@^5.12.0":
|
|
1209
|
+
version "5.12.0"
|
|
1210
|
+
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.12.0.tgz#bb46dd7ce7015c0928b98af1e602118e97df6c70"
|
|
1211
|
+
integrity sha512-fwCMkDimwHVeIOKeBHiZhRUfJXU8n6xW1FL9diDxAyGAFvKcH4csy0v7twivOQdQdA0KC8TDr7GGRd3L4Lv0rQ==
|
|
1207
1212
|
dependencies:
|
|
1208
|
-
"@typescript-eslint/scope-manager" "5.
|
|
1209
|
-
"@typescript-eslint/type-utils" "5.
|
|
1210
|
-
"@typescript-eslint/utils" "5.
|
|
1213
|
+
"@typescript-eslint/scope-manager" "5.12.0"
|
|
1214
|
+
"@typescript-eslint/type-utils" "5.12.0"
|
|
1215
|
+
"@typescript-eslint/utils" "5.12.0"
|
|
1211
1216
|
debug "^4.3.2"
|
|
1212
1217
|
functional-red-black-tree "^1.0.1"
|
|
1213
1218
|
ignore "^5.1.8"
|
|
@@ -1215,14 +1220,14 @@
|
|
|
1215
1220
|
semver "^7.3.5"
|
|
1216
1221
|
tsutils "^3.21.0"
|
|
1217
1222
|
|
|
1218
|
-
"@typescript-eslint/parser@^5.
|
|
1219
|
-
version "5.
|
|
1220
|
-
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.
|
|
1221
|
-
integrity sha512-
|
|
1223
|
+
"@typescript-eslint/parser@^5.12.0":
|
|
1224
|
+
version "5.12.0"
|
|
1225
|
+
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.12.0.tgz#0ca669861813df99ce54916f66f524c625ed2434"
|
|
1226
|
+
integrity sha512-MfSwg9JMBojMUoGjUmX+D2stoQj1CBYTCP0qnnVtu9A+YQXVKNtLjasYh+jozOcrb/wau8TCfWOkQTiOAruBog==
|
|
1222
1227
|
dependencies:
|
|
1223
|
-
"@typescript-eslint/scope-manager" "5.
|
|
1224
|
-
"@typescript-eslint/types" "5.
|
|
1225
|
-
"@typescript-eslint/typescript-estree" "5.
|
|
1228
|
+
"@typescript-eslint/scope-manager" "5.12.0"
|
|
1229
|
+
"@typescript-eslint/types" "5.12.0"
|
|
1230
|
+
"@typescript-eslint/typescript-estree" "5.12.0"
|
|
1226
1231
|
debug "^4.3.2"
|
|
1227
1232
|
|
|
1228
1233
|
"@typescript-eslint/scope-manager@5.10.2":
|
|
@@ -1233,20 +1238,20 @@
|
|
|
1233
1238
|
"@typescript-eslint/types" "5.10.2"
|
|
1234
1239
|
"@typescript-eslint/visitor-keys" "5.10.2"
|
|
1235
1240
|
|
|
1236
|
-
"@typescript-eslint/scope-manager@5.
|
|
1237
|
-
version "5.
|
|
1238
|
-
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.
|
|
1239
|
-
integrity sha512-
|
|
1241
|
+
"@typescript-eslint/scope-manager@5.12.0":
|
|
1242
|
+
version "5.12.0"
|
|
1243
|
+
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.12.0.tgz#59619e6e5e2b1ce6cb3948b56014d3a24da83f5e"
|
|
1244
|
+
integrity sha512-GAMobtIJI8FGf1sLlUWNUm2IOkIjvn7laFWyRx7CLrv6nLBI7su+B7lbStqVlK5NdLvHRFiJo2HhiDF7Ki01WQ==
|
|
1240
1245
|
dependencies:
|
|
1241
|
-
"@typescript-eslint/types" "5.
|
|
1242
|
-
"@typescript-eslint/visitor-keys" "5.
|
|
1246
|
+
"@typescript-eslint/types" "5.12.0"
|
|
1247
|
+
"@typescript-eslint/visitor-keys" "5.12.0"
|
|
1243
1248
|
|
|
1244
|
-
"@typescript-eslint/type-utils@5.
|
|
1245
|
-
version "5.
|
|
1246
|
-
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.
|
|
1247
|
-
integrity sha512-
|
|
1249
|
+
"@typescript-eslint/type-utils@5.12.0":
|
|
1250
|
+
version "5.12.0"
|
|
1251
|
+
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.12.0.tgz#aaf45765de71c6d9707c66ccff76ec2b9aa31bb6"
|
|
1252
|
+
integrity sha512-9j9rli3zEBV+ae7rlbBOotJcI6zfc6SHFMdKI9M3Nc0sy458LJ79Os+TPWeBBL96J9/e36rdJOfCuyRSgFAA0Q==
|
|
1248
1253
|
dependencies:
|
|
1249
|
-
"@typescript-eslint/utils" "5.
|
|
1254
|
+
"@typescript-eslint/utils" "5.12.0"
|
|
1250
1255
|
debug "^4.3.2"
|
|
1251
1256
|
tsutils "^3.21.0"
|
|
1252
1257
|
|
|
@@ -1255,10 +1260,10 @@
|
|
|
1255
1260
|
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.10.2.tgz#604d15d795c4601fffba6ecb4587ff9fdec68ce8"
|
|
1256
1261
|
integrity sha512-Qfp0qk/5j2Rz3p3/WhWgu4S1JtMcPgFLnmAKAW061uXxKSa7VWKZsDXVaMXh2N60CX9h6YLaBoy9PJAfCOjk3w==
|
|
1257
1262
|
|
|
1258
|
-
"@typescript-eslint/types@5.
|
|
1259
|
-
version "5.
|
|
1260
|
-
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.
|
|
1261
|
-
integrity sha512-
|
|
1263
|
+
"@typescript-eslint/types@5.12.0":
|
|
1264
|
+
version "5.12.0"
|
|
1265
|
+
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.12.0.tgz#5b4030a28222ee01e851836562c07769eecda0b8"
|
|
1266
|
+
integrity sha512-JowqbwPf93nvf8fZn5XrPGFBdIK8+yx5UEGs2QFAYFI8IWYfrzz+6zqlurGr2ctShMaJxqwsqmra3WXWjH1nRQ==
|
|
1262
1267
|
|
|
1263
1268
|
"@typescript-eslint/typescript-estree@5.10.2":
|
|
1264
1269
|
version "5.10.2"
|
|
@@ -1273,28 +1278,28 @@
|
|
|
1273
1278
|
semver "^7.3.5"
|
|
1274
1279
|
tsutils "^3.21.0"
|
|
1275
1280
|
|
|
1276
|
-
"@typescript-eslint/typescript-estree@5.
|
|
1277
|
-
version "5.
|
|
1278
|
-
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.
|
|
1279
|
-
integrity sha512-
|
|
1281
|
+
"@typescript-eslint/typescript-estree@5.12.0":
|
|
1282
|
+
version "5.12.0"
|
|
1283
|
+
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.12.0.tgz#cabf545fd592722f0e2b4104711e63bf89525cd2"
|
|
1284
|
+
integrity sha512-Dd9gVeOqt38QHR0BEA8oRaT65WYqPYbIc5tRFQPkfLquVEFPD1HAtbZT98TLBkEcCkvwDYOAvuSvAD9DnQhMfQ==
|
|
1280
1285
|
dependencies:
|
|
1281
|
-
"@typescript-eslint/types" "5.
|
|
1282
|
-
"@typescript-eslint/visitor-keys" "5.
|
|
1286
|
+
"@typescript-eslint/types" "5.12.0"
|
|
1287
|
+
"@typescript-eslint/visitor-keys" "5.12.0"
|
|
1283
1288
|
debug "^4.3.2"
|
|
1284
1289
|
globby "^11.0.4"
|
|
1285
1290
|
is-glob "^4.0.3"
|
|
1286
1291
|
semver "^7.3.5"
|
|
1287
1292
|
tsutils "^3.21.0"
|
|
1288
1293
|
|
|
1289
|
-
"@typescript-eslint/utils@5.
|
|
1290
|
-
version "5.
|
|
1291
|
-
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.
|
|
1292
|
-
integrity sha512-
|
|
1294
|
+
"@typescript-eslint/utils@5.12.0":
|
|
1295
|
+
version "5.12.0"
|
|
1296
|
+
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.12.0.tgz#92fd3193191621ab863add2f553a7b38b65646af"
|
|
1297
|
+
integrity sha512-k4J2WovnMPGI4PzKgDtQdNrCnmBHpMUFy21qjX2CoPdoBcSBIMvVBr9P2YDP8jOqZOeK3ThOL6VO/sy6jtnvzw==
|
|
1293
1298
|
dependencies:
|
|
1294
1299
|
"@types/json-schema" "^7.0.9"
|
|
1295
|
-
"@typescript-eslint/scope-manager" "5.
|
|
1296
|
-
"@typescript-eslint/types" "5.
|
|
1297
|
-
"@typescript-eslint/typescript-estree" "5.
|
|
1300
|
+
"@typescript-eslint/scope-manager" "5.12.0"
|
|
1301
|
+
"@typescript-eslint/types" "5.12.0"
|
|
1302
|
+
"@typescript-eslint/typescript-estree" "5.12.0"
|
|
1298
1303
|
eslint-scope "^5.1.1"
|
|
1299
1304
|
eslint-utils "^3.0.0"
|
|
1300
1305
|
|
|
@@ -1318,12 +1323,12 @@
|
|
|
1318
1323
|
"@typescript-eslint/types" "5.10.2"
|
|
1319
1324
|
eslint-visitor-keys "^3.0.0"
|
|
1320
1325
|
|
|
1321
|
-
"@typescript-eslint/visitor-keys@5.
|
|
1322
|
-
version "5.
|
|
1323
|
-
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.
|
|
1324
|
-
integrity sha512-
|
|
1326
|
+
"@typescript-eslint/visitor-keys@5.12.0":
|
|
1327
|
+
version "5.12.0"
|
|
1328
|
+
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.12.0.tgz#1ac9352ed140b07ba144ebf371b743fdf537ec16"
|
|
1329
|
+
integrity sha512-cFwTlgnMV6TgezQynx2c/4/tx9Tufbuo9LPzmWqyRC3QC4qTGkAG1C6pBr0/4I10PAI/FlYunI3vJjIcu+ZHMg==
|
|
1325
1330
|
dependencies:
|
|
1326
|
-
"@typescript-eslint/types" "5.
|
|
1331
|
+
"@typescript-eslint/types" "5.12.0"
|
|
1327
1332
|
eslint-visitor-keys "^3.0.0"
|
|
1328
1333
|
|
|
1329
1334
|
abab@^2.0.3, abab@^2.0.5:
|
|
@@ -1366,7 +1371,7 @@ acorn@^7.1.1:
|
|
|
1366
1371
|
resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa"
|
|
1367
1372
|
integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==
|
|
1368
1373
|
|
|
1369
|
-
acorn@^8.2.4, acorn@^8.4.1
|
|
1374
|
+
acorn@^8.2.4, acorn@^8.4.1:
|
|
1370
1375
|
version "8.6.0"
|
|
1371
1376
|
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.6.0.tgz#e3692ba0eb1a0c83eaa4f37f5fa7368dd7142895"
|
|
1372
1377
|
integrity sha512-U1riIR+lBSNi3IbxtaHOIKdH8sLFv3NYfNv8sg7ZsNhcfl4HF2++BfqqrNAxoCLQW1iiylOj76ecnaUxz+z9yw==
|
|
@@ -2186,10 +2191,10 @@ escodegen@^2.0.0:
|
|
|
2186
2191
|
optionalDependencies:
|
|
2187
2192
|
source-map "~0.6.1"
|
|
2188
2193
|
|
|
2189
|
-
eslint-config-prettier@^8.
|
|
2190
|
-
version "8.
|
|
2191
|
-
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.
|
|
2192
|
-
integrity sha512-
|
|
2194
|
+
eslint-config-prettier@^8.4.0:
|
|
2195
|
+
version "8.4.0"
|
|
2196
|
+
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.4.0.tgz#8e6d17c7436649e98c4c2189868562921ef563de"
|
|
2197
|
+
integrity sha512-CFotdUcMY18nGRo5KGsnNxpznzhkopOcOo0InID+sgQssPrzjvsyKZPvOgymTFeHrFuC3Tzdf2YndhXtULK9Iw==
|
|
2193
2198
|
|
|
2194
2199
|
eslint-import-resolver-node@^0.3.6:
|
|
2195
2200
|
version "0.3.6"
|
|
@@ -2226,10 +2231,10 @@ eslint-plugin-import@^2.25.4:
|
|
|
2226
2231
|
resolve "^1.20.0"
|
|
2227
2232
|
tsconfig-paths "^3.12.0"
|
|
2228
2233
|
|
|
2229
|
-
eslint-plugin-jest@^26.1.
|
|
2230
|
-
version "26.1.
|
|
2231
|
-
resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-26.1.
|
|
2232
|
-
integrity sha512-
|
|
2234
|
+
eslint-plugin-jest@^26.1.1:
|
|
2235
|
+
version "26.1.1"
|
|
2236
|
+
resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-26.1.1.tgz#7176dd745ef8bca3070263f62cdf112f2dfc9aa1"
|
|
2237
|
+
integrity sha512-HRKOuPi5ADhza4ZBK5ufyNXy28bXXkib87w+pQqdvBhSTsamndh6sIAKPAUl8y0/n9jSWBdTPslrwtKWqkp8dA==
|
|
2233
2238
|
dependencies:
|
|
2234
2239
|
"@typescript-eslint/utils" "^5.10.0"
|
|
2235
2240
|
|
|
@@ -2248,10 +2253,10 @@ eslint-scope@^5.1.1:
|
|
|
2248
2253
|
esrecurse "^4.3.0"
|
|
2249
2254
|
estraverse "^4.1.1"
|
|
2250
2255
|
|
|
2251
|
-
eslint-scope@^7.1.
|
|
2252
|
-
version "7.1.
|
|
2253
|
-
resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-7.1.
|
|
2254
|
-
integrity sha512-
|
|
2256
|
+
eslint-scope@^7.1.1:
|
|
2257
|
+
version "7.1.1"
|
|
2258
|
+
resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-7.1.1.tgz#fff34894c2f65e5226d3041ac480b4513a163642"
|
|
2259
|
+
integrity sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==
|
|
2255
2260
|
dependencies:
|
|
2256
2261
|
esrecurse "^4.3.0"
|
|
2257
2262
|
estraverse "^5.2.0"
|
|
@@ -2268,22 +2273,22 @@ eslint-visitor-keys@^2.0.0:
|
|
|
2268
2273
|
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz#f65328259305927392c938ed44eb0a5c9b2bd303"
|
|
2269
2274
|
integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==
|
|
2270
2275
|
|
|
2271
|
-
eslint-visitor-keys@^3.0.0
|
|
2276
|
+
eslint-visitor-keys@^3.0.0:
|
|
2272
2277
|
version "3.1.0"
|
|
2273
2278
|
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.1.0.tgz#eee4acea891814cda67a7d8812d9647dd0179af2"
|
|
2274
2279
|
integrity sha512-yWJFpu4DtjsWKkt5GeNBBuZMlNcYVs6vRCLoCVEJrTjaSB6LC98gFipNK/erM2Heg/E8mIK+hXG/pJMLK+eRZA==
|
|
2275
2280
|
|
|
2276
|
-
eslint-visitor-keys@^3.
|
|
2277
|
-
version "3.
|
|
2278
|
-
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.
|
|
2279
|
-
integrity sha512-
|
|
2281
|
+
eslint-visitor-keys@^3.3.0:
|
|
2282
|
+
version "3.3.0"
|
|
2283
|
+
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz#f6480fa6b1f30efe2d1968aa8ac745b862469826"
|
|
2284
|
+
integrity sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==
|
|
2280
2285
|
|
|
2281
|
-
eslint@^8.
|
|
2282
|
-
version "8.
|
|
2283
|
-
resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.
|
|
2284
|
-
integrity sha512-
|
|
2286
|
+
eslint@^8.9.0:
|
|
2287
|
+
version "8.9.0"
|
|
2288
|
+
resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.9.0.tgz#a2a8227a99599adc4342fd9b854cb8d8d6412fdb"
|
|
2289
|
+
integrity sha512-PB09IGwv4F4b0/atrbcMFboF/giawbBLVC7fyDamk5Wtey4Jh2K+rYaBhCAbUyEI4QzB1ly09Uglc9iCtFaG2Q==
|
|
2285
2290
|
dependencies:
|
|
2286
|
-
"@eslint/eslintrc" "^1.0
|
|
2291
|
+
"@eslint/eslintrc" "^1.1.0"
|
|
2287
2292
|
"@humanwhocodes/config-array" "^0.9.2"
|
|
2288
2293
|
ajv "^6.10.0"
|
|
2289
2294
|
chalk "^4.0.0"
|
|
@@ -2291,10 +2296,10 @@ eslint@^8.8.0:
|
|
|
2291
2296
|
debug "^4.3.2"
|
|
2292
2297
|
doctrine "^3.0.0"
|
|
2293
2298
|
escape-string-regexp "^4.0.0"
|
|
2294
|
-
eslint-scope "^7.1.
|
|
2299
|
+
eslint-scope "^7.1.1"
|
|
2295
2300
|
eslint-utils "^3.0.0"
|
|
2296
|
-
eslint-visitor-keys "^3.
|
|
2297
|
-
espree "^9.3.
|
|
2301
|
+
eslint-visitor-keys "^3.3.0"
|
|
2302
|
+
espree "^9.3.1"
|
|
2298
2303
|
esquery "^1.4.0"
|
|
2299
2304
|
esutils "^2.0.2"
|
|
2300
2305
|
fast-deep-equal "^3.1.3"
|
|
@@ -2319,23 +2324,14 @@ eslint@^8.8.0:
|
|
|
2319
2324
|
text-table "^0.2.0"
|
|
2320
2325
|
v8-compile-cache "^2.0.3"
|
|
2321
2326
|
|
|
2322
|
-
espree@^9.
|
|
2323
|
-
version "9.
|
|
2324
|
-
resolved "https://registry.yarnpkg.com/espree/-/espree-9.
|
|
2325
|
-
integrity sha512-
|
|
2326
|
-
dependencies:
|
|
2327
|
-
acorn "^8.6.0"
|
|
2328
|
-
acorn-jsx "^5.3.1"
|
|
2329
|
-
eslint-visitor-keys "^3.1.0"
|
|
2330
|
-
|
|
2331
|
-
espree@^9.3.0:
|
|
2332
|
-
version "9.3.0"
|
|
2333
|
-
resolved "https://registry.yarnpkg.com/espree/-/espree-9.3.0.tgz#c1240d79183b72aaee6ccfa5a90bc9111df085a8"
|
|
2334
|
-
integrity sha512-d/5nCsb0JcqsSEeQzFZ8DH1RmxPcglRWh24EFTlUEmCKoehXGdpsx0RkHDubqUI8LSAIKMQp4r9SzQ3n+sm4HQ==
|
|
2327
|
+
espree@^9.3.1:
|
|
2328
|
+
version "9.3.1"
|
|
2329
|
+
resolved "https://registry.yarnpkg.com/espree/-/espree-9.3.1.tgz#8793b4bc27ea4c778c19908e0719e7b8f4115bcd"
|
|
2330
|
+
integrity sha512-bvdyLmJMfwkV3NCRl5ZhJf22zBFo1y8bYh3VYb+bfzqNB4Je68P2sSuXyuFquzWLebHpNd2/d5uv7yoP9ISnGQ==
|
|
2335
2331
|
dependencies:
|
|
2336
2332
|
acorn "^8.7.0"
|
|
2337
2333
|
acorn-jsx "^5.3.1"
|
|
2338
|
-
eslint-visitor-keys "^3.
|
|
2334
|
+
eslint-visitor-keys "^3.3.0"
|
|
2339
2335
|
|
|
2340
2336
|
esprima@^4.0.0, esprima@^4.0.1:
|
|
2341
2337
|
version "4.0.1"
|
|
@@ -3687,10 +3683,10 @@ lines-and-columns@^1.1.6:
|
|
|
3687
3683
|
resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632"
|
|
3688
3684
|
integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==
|
|
3689
3685
|
|
|
3690
|
-
lint-staged@^12.3.
|
|
3691
|
-
version "12.3.
|
|
3692
|
-
resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-12.3.
|
|
3693
|
-
integrity sha512-
|
|
3686
|
+
lint-staged@^12.3.4:
|
|
3687
|
+
version "12.3.4"
|
|
3688
|
+
resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-12.3.4.tgz#4b1ff8c394c3e6da436aaec5afd4db18b5dac360"
|
|
3689
|
+
integrity sha512-yv/iK4WwZ7/v0GtVkNb3R82pdL9M+ScpIbJLJNyCXkJ1FGaXvRCOg/SeL59SZtPpqZhE7BD6kPKFLIDUhDx2/w==
|
|
3694
3690
|
dependencies:
|
|
3695
3691
|
cli-truncate "^3.1.0"
|
|
3696
3692
|
colorette "^2.0.16"
|
|
@@ -3796,6 +3792,17 @@ logform@^2.3.2:
|
|
|
3796
3792
|
safe-stable-stringify "^1.1.0"
|
|
3797
3793
|
triple-beam "^1.3.0"
|
|
3798
3794
|
|
|
3795
|
+
logform@^2.4.0:
|
|
3796
|
+
version "2.4.0"
|
|
3797
|
+
resolved "https://registry.yarnpkg.com/logform/-/logform-2.4.0.tgz#131651715a17d50f09c2a2c1a524ff1a4164bcfe"
|
|
3798
|
+
integrity sha512-CPSJw4ftjf517EhXZGGvTHHkYobo7ZCc0kvwUoOYcjfR2UVrI66RHj8MCrfAdEitdmFqbu2BYdYs8FHHZSb6iw==
|
|
3799
|
+
dependencies:
|
|
3800
|
+
"@colors/colors" "1.5.0"
|
|
3801
|
+
fecha "^4.2.0"
|
|
3802
|
+
ms "^2.1.1"
|
|
3803
|
+
safe-stable-stringify "^2.3.1"
|
|
3804
|
+
triple-beam "^1.3.0"
|
|
3805
|
+
|
|
3799
3806
|
lru-cache@^6.0.0:
|
|
3800
3807
|
version "6.0.0"
|
|
3801
3808
|
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94"
|
|
@@ -4261,7 +4268,7 @@ react-is@^17.0.1:
|
|
|
4261
4268
|
resolved "https://registry.yarnpkg.com/react-is/-/react-is-17.0.2.tgz#e691d4a8e9c789365655539ab372762b0efb54f0"
|
|
4262
4269
|
integrity sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==
|
|
4263
4270
|
|
|
4264
|
-
readable-stream@^3.4.0:
|
|
4271
|
+
readable-stream@^3.4.0, readable-stream@^3.6.0:
|
|
4265
4272
|
version "3.6.0"
|
|
4266
4273
|
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198"
|
|
4267
4274
|
integrity sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==
|
|
@@ -4769,7 +4776,7 @@ tr46@~0.0.3:
|
|
|
4769
4776
|
resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a"
|
|
4770
4777
|
integrity sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=
|
|
4771
4778
|
|
|
4772
|
-
triple-beam@^1.
|
|
4779
|
+
triple-beam@^1.3.0:
|
|
4773
4780
|
version "1.3.0"
|
|
4774
4781
|
resolved "https://registry.yarnpkg.com/triple-beam/-/triple-beam-1.3.0.tgz#a595214c7298db8339eeeee083e4d10bd8cb8dd9"
|
|
4775
4782
|
integrity sha512-XrHUvV5HpdLmIj4uVMxHggLbFSZYIn7HEWsqePZcI50pco+MPqJ50wMGY794X7AOOhxOBAjbkqfAbEe/QMp2Lw==
|
|
@@ -5065,30 +5072,30 @@ which@^2.0.1:
|
|
|
5065
5072
|
dependencies:
|
|
5066
5073
|
isexe "^2.0.0"
|
|
5067
5074
|
|
|
5068
|
-
winston-transport@^4.
|
|
5069
|
-
version "4.
|
|
5070
|
-
resolved "https://registry.yarnpkg.com/winston-transport/-/winston-transport-4.
|
|
5071
|
-
integrity sha512-
|
|
5075
|
+
winston-transport@^4.5.0:
|
|
5076
|
+
version "4.5.0"
|
|
5077
|
+
resolved "https://registry.yarnpkg.com/winston-transport/-/winston-transport-4.5.0.tgz#6e7b0dd04d393171ed5e4e4905db265f7ab384fa"
|
|
5078
|
+
integrity sha512-YpZzcUzBedhlTAfJg6vJDlyEai/IFMIVcaEZZyl3UXIl4gmqRpU7AE89AHLkbzLUsv0NVmw7ts+iztqKxxPW1Q==
|
|
5072
5079
|
dependencies:
|
|
5073
5080
|
logform "^2.3.2"
|
|
5074
|
-
readable-stream "^3.
|
|
5075
|
-
triple-beam "^1.
|
|
5081
|
+
readable-stream "^3.6.0"
|
|
5082
|
+
triple-beam "^1.3.0"
|
|
5076
5083
|
|
|
5077
|
-
winston@^3.
|
|
5078
|
-
version "3.
|
|
5079
|
-
resolved "https://registry.yarnpkg.com/winston/-/winston-3.
|
|
5080
|
-
integrity sha512-
|
|
5084
|
+
winston@^3.6.0:
|
|
5085
|
+
version "3.6.0"
|
|
5086
|
+
resolved "https://registry.yarnpkg.com/winston/-/winston-3.6.0.tgz#be32587a099a292b88c49fac6fa529d478d93fb6"
|
|
5087
|
+
integrity sha512-9j8T75p+bcN6D00sF/zjFVmPp+t8KMPB1MzbbzYjeN9VWxdsYnTB40TkbNUEXAmILEfChMvAMgidlX64OG3p6w==
|
|
5081
5088
|
dependencies:
|
|
5082
5089
|
"@dabh/diagnostics" "^2.0.2"
|
|
5083
5090
|
async "^3.2.3"
|
|
5084
5091
|
is-stream "^2.0.0"
|
|
5085
|
-
logform "^2.
|
|
5092
|
+
logform "^2.4.0"
|
|
5086
5093
|
one-time "^1.0.0"
|
|
5087
5094
|
readable-stream "^3.4.0"
|
|
5088
5095
|
safe-stable-stringify "^2.3.1"
|
|
5089
5096
|
stack-trace "0.0.x"
|
|
5090
5097
|
triple-beam "^1.3.0"
|
|
5091
|
-
winston-transport "^4.
|
|
5098
|
+
winston-transport "^4.5.0"
|
|
5092
5099
|
|
|
5093
5100
|
word-wrap@^1.2.3, word-wrap@~1.2.3:
|
|
5094
5101
|
version "1.2.3"
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
20
|
-
};
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
const core = __importStar(require("@actions/core"));
|
|
23
|
-
const exec_1 = require("@actions/exec");
|
|
24
|
-
const github_1 = require("@actions/github");
|
|
25
|
-
const backport_1 = require("backport");
|
|
26
|
-
async function init() {
|
|
27
|
-
const { payload, repo } = github_1.context;
|
|
28
|
-
if (!payload.pull_request) {
|
|
29
|
-
throw Error('Only pull_request events are supported.');
|
|
30
|
-
}
|
|
31
|
-
const pullRequest = payload.pull_request;
|
|
32
|
-
const prAuthor = pullRequest.user.login;
|
|
33
|
-
const accessToken = core.getInput('github_token', { required: true });
|
|
34
|
-
const commitUser = core.getInput('commit_user', { required: false });
|
|
35
|
-
const commitEmail = core.getInput('commit_email', { required: false });
|
|
36
|
-
const autoMerge = core.getInput('auto_merge', { required: false }) === 'true';
|
|
37
|
-
const autoMergeMethod = core.getInput('auto_merge_method', {
|
|
38
|
-
required: false,
|
|
39
|
-
});
|
|
40
|
-
const targetPRLabels = core
|
|
41
|
-
.getInput('target_pr_labels', { required: false })
|
|
42
|
-
.split(',')
|
|
43
|
-
.map((label) => label.trim());
|
|
44
|
-
await (0, exec_1.exec)(`git config --global user.name "${commitUser}"`);
|
|
45
|
-
await (0, exec_1.exec)(`git config --global user.email "${commitEmail}"`);
|
|
46
|
-
await (0, backport_1.backportRun)({
|
|
47
|
-
repoOwner: repo.owner,
|
|
48
|
-
repoName: repo.repo,
|
|
49
|
-
accessToken,
|
|
50
|
-
ci: true,
|
|
51
|
-
pullNumber: pullRequest.number,
|
|
52
|
-
targetPRLabels: targetPRLabels,
|
|
53
|
-
assignees: [prAuthor],
|
|
54
|
-
autoMerge: autoMerge,
|
|
55
|
-
autoMergeMethod: autoMergeMethod,
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
init().catch((error) => {
|
|
59
|
-
console.error('An error occurred', error);
|
|
60
|
-
core.setFailed(error.message);
|
|
61
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|