pr-merge-queue 0.0.0-stage → 0.0.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 (331) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +125 -2
  3. package/dist/claim-pr/claim-pr.d.mts +45 -0
  4. package/dist/claim-pr/claim-pr.d.mts.map +1 -0
  5. package/dist/claim-pr/claim-pr.mjs +217 -0
  6. package/dist/claim-pr/claim-pr.mjs.map +1 -0
  7. package/dist/claim-pr/index.d.mts +2 -0
  8. package/dist/claim-pr/index.d.mts.map +1 -0
  9. package/dist/claim-pr/index.mjs +2 -0
  10. package/dist/claim-pr/index.mjs.map +1 -0
  11. package/dist/cmd/claim-pr.d.mts +3 -0
  12. package/dist/cmd/claim-pr.d.mts.map +1 -0
  13. package/dist/cmd/claim-pr.mjs +20 -0
  14. package/dist/cmd/claim-pr.mjs.map +1 -0
  15. package/dist/cmd/open-pr.d.mts +3 -0
  16. package/dist/cmd/open-pr.d.mts.map +1 -0
  17. package/dist/cmd/open-pr.mjs +20 -0
  18. package/dist/cmd/open-pr.mjs.map +1 -0
  19. package/dist/cmd/pr-report.d.mts +3 -0
  20. package/dist/cmd/pr-report.d.mts.map +1 -0
  21. package/dist/cmd/pr-report.mjs +20 -0
  22. package/dist/cmd/pr-report.mjs.map +1 -0
  23. package/dist/cmd/push-fixed-pr.d.mts +3 -0
  24. package/dist/cmd/push-fixed-pr.d.mts.map +1 -0
  25. package/dist/cmd/push-fixed-pr.mjs +20 -0
  26. package/dist/cmd/push-fixed-pr.mjs.map +1 -0
  27. package/dist/cmd/report-unowned-prs.d.mts +3 -0
  28. package/dist/cmd/report-unowned-prs.d.mts.map +1 -0
  29. package/dist/cmd/report-unowned-prs.mjs +20 -0
  30. package/dist/cmd/report-unowned-prs.mjs.map +1 -0
  31. package/dist/cmd/unblock-prs.d.mts +3 -0
  32. package/dist/cmd/unblock-prs.d.mts.map +1 -0
  33. package/dist/cmd/unblock-prs.mjs +19 -0
  34. package/dist/cmd/unblock-prs.mjs.map +1 -0
  35. package/dist/entry-point.d.mts +3 -0
  36. package/dist/entry-point.d.mts.map +1 -0
  37. package/dist/entry-point.mjs +3 -0
  38. package/dist/entry-point.mjs.map +1 -0
  39. package/dist/lib/cli-args.d.mts +27 -0
  40. package/dist/lib/cli-args.d.mts.map +1 -0
  41. package/dist/lib/cli-args.mjs +55 -0
  42. package/dist/lib/cli-args.mjs.map +1 -0
  43. package/dist/lib/github-api.d.mts +153 -0
  44. package/dist/lib/github-api.d.mts.map +1 -0
  45. package/dist/lib/github-api.mjs +291 -0
  46. package/dist/lib/github-api.mjs.map +1 -0
  47. package/dist/lib/index.d.mts +7 -0
  48. package/dist/lib/index.d.mts.map +1 -0
  49. package/dist/lib/index.mjs +7 -0
  50. package/dist/lib/index.mjs.map +1 -0
  51. package/dist/lib/json.d.mts +12 -0
  52. package/dist/lib/json.d.mts.map +1 -0
  53. package/dist/lib/json.mjs +28 -0
  54. package/dist/lib/json.mjs.map +1 -0
  55. package/dist/lib/log.d.mts +10 -0
  56. package/dist/lib/log.d.mts.map +1 -0
  57. package/dist/lib/log.mjs +13 -0
  58. package/dist/lib/log.mjs.map +1 -0
  59. package/dist/lib/shell.d.mts +18 -0
  60. package/dist/lib/shell.d.mts.map +1 -0
  61. package/dist/lib/shell.mjs +42 -0
  62. package/dist/lib/shell.mjs.map +1 -0
  63. package/dist/lib/time.d.mts +17 -0
  64. package/dist/lib/time.d.mts.map +1 -0
  65. package/dist/lib/time.mjs +35 -0
  66. package/dist/lib/time.mjs.map +1 -0
  67. package/dist/open-pr/github.d.mts +72 -0
  68. package/dist/open-pr/github.d.mts.map +1 -0
  69. package/dist/open-pr/github.mjs +249 -0
  70. package/dist/open-pr/github.mjs.map +1 -0
  71. package/dist/open-pr/index.d.mts +6 -0
  72. package/dist/open-pr/index.d.mts.map +1 -0
  73. package/dist/open-pr/index.mjs +6 -0
  74. package/dist/open-pr/index.mjs.map +1 -0
  75. package/dist/open-pr/main.d.mts +36 -0
  76. package/dist/open-pr/main.d.mts.map +1 -0
  77. package/dist/open-pr/main.mjs +204 -0
  78. package/dist/open-pr/main.mjs.map +1 -0
  79. package/dist/open-pr/options.d.mts +20 -0
  80. package/dist/open-pr/options.d.mts.map +1 -0
  81. package/dist/open-pr/options.mjs +66 -0
  82. package/dist/open-pr/options.mjs.map +1 -0
  83. package/dist/open-pr/steps.d.mts +23 -0
  84. package/dist/open-pr/steps.d.mts.map +1 -0
  85. package/dist/open-pr/steps.mjs +38 -0
  86. package/dist/open-pr/steps.mjs.map +1 -0
  87. package/dist/open-pr/types.d.mts +179 -0
  88. package/dist/open-pr/types.d.mts.map +1 -0
  89. package/dist/open-pr/types.mjs +20 -0
  90. package/dist/open-pr/types.mjs.map +1 -0
  91. package/dist/pr-report/github.d.mts +59 -0
  92. package/dist/pr-report/github.d.mts.map +1 -0
  93. package/dist/pr-report/github.mjs +561 -0
  94. package/dist/pr-report/github.mjs.map +1 -0
  95. package/dist/pr-report/index.d.mts +8 -0
  96. package/dist/pr-report/index.d.mts.map +1 -0
  97. package/dist/pr-report/index.mjs +8 -0
  98. package/dist/pr-report/index.mjs.map +1 -0
  99. package/dist/pr-report/linked-issues.d.mts +15 -0
  100. package/dist/pr-report/linked-issues.d.mts.map +1 -0
  101. package/dist/pr-report/linked-issues.mjs +39 -0
  102. package/dist/pr-report/linked-issues.mjs.map +1 -0
  103. package/dist/pr-report/main.d.mts +42 -0
  104. package/dist/pr-report/main.d.mts.map +1 -0
  105. package/dist/pr-report/main.mjs +163 -0
  106. package/dist/pr-report/main.mjs.map +1 -0
  107. package/dist/pr-report/options.d.mts +36 -0
  108. package/dist/pr-report/options.d.mts.map +1 -0
  109. package/dist/pr-report/options.mjs +90 -0
  110. package/dist/pr-report/options.mjs.map +1 -0
  111. package/dist/pr-report/queue.d.mts +28 -0
  112. package/dist/pr-report/queue.d.mts.map +1 -0
  113. package/dist/pr-report/queue.mjs +74 -0
  114. package/dist/pr-report/queue.mjs.map +1 -0
  115. package/dist/pr-report/render.d.mts +14 -0
  116. package/dist/pr-report/render.d.mts.map +1 -0
  117. package/dist/pr-report/render.mjs +318 -0
  118. package/dist/pr-report/render.mjs.map +1 -0
  119. package/dist/pr-report/repo-settings.d.mts +12 -0
  120. package/dist/pr-report/repo-settings.d.mts.map +1 -0
  121. package/dist/pr-report/repo-settings.mjs +22 -0
  122. package/dist/pr-report/repo-settings.mjs.map +1 -0
  123. package/dist/push-fixed-pr/index.d.mts +2 -0
  124. package/dist/push-fixed-pr/index.d.mts.map +1 -0
  125. package/dist/push-fixed-pr/index.mjs +2 -0
  126. package/dist/push-fixed-pr/index.mjs.map +1 -0
  127. package/dist/push-fixed-pr/push-fixed-pr.d.mts +54 -0
  128. package/dist/push-fixed-pr/push-fixed-pr.d.mts.map +1 -0
  129. package/dist/push-fixed-pr/push-fixed-pr.mjs +172 -0
  130. package/dist/push-fixed-pr/push-fixed-pr.mjs.map +1 -0
  131. package/dist/report-unowned-prs/index.d.mts +2 -0
  132. package/dist/report-unowned-prs/index.d.mts.map +1 -0
  133. package/dist/report-unowned-prs/index.mjs +2 -0
  134. package/dist/report-unowned-prs/index.mjs.map +1 -0
  135. package/dist/report-unowned-prs/report-unowned-prs.d.mts +49 -0
  136. package/dist/report-unowned-prs/report-unowned-prs.d.mts.map +1 -0
  137. package/dist/report-unowned-prs/report-unowned-prs.mjs +127 -0
  138. package/dist/report-unowned-prs/report-unowned-prs.mjs.map +1 -0
  139. package/dist/tsconfig.json +1 -0
  140. package/dist/unblock-prs/auto-fix.d.mts +45 -0
  141. package/dist/unblock-prs/auto-fix.d.mts.map +1 -0
  142. package/dist/unblock-prs/auto-fix.mjs +207 -0
  143. package/dist/unblock-prs/auto-fix.mjs.map +1 -0
  144. package/dist/unblock-prs/checks.d.mts +307 -0
  145. package/dist/unblock-prs/checks.d.mts.map +1 -0
  146. package/dist/unblock-prs/checks.mjs +372 -0
  147. package/dist/unblock-prs/checks.mjs.map +1 -0
  148. package/dist/unblock-prs/claims.d.mts +21 -0
  149. package/dist/unblock-prs/claims.d.mts.map +1 -0
  150. package/dist/unblock-prs/claims.mjs +23 -0
  151. package/dist/unblock-prs/claims.mjs.map +1 -0
  152. package/dist/unblock-prs/config.d.mts +487 -0
  153. package/dist/unblock-prs/config.d.mts.map +1 -0
  154. package/dist/unblock-prs/config.mjs +119 -0
  155. package/dist/unblock-prs/config.mjs.map +1 -0
  156. package/dist/unblock-prs/constants.d.mts +28 -0
  157. package/dist/unblock-prs/constants.d.mts.map +1 -0
  158. package/dist/unblock-prs/constants.mjs +28 -0
  159. package/dist/unblock-prs/constants.mjs.map +1 -0
  160. package/dist/unblock-prs/demotions.d.mts +42 -0
  161. package/dist/unblock-prs/demotions.d.mts.map +1 -0
  162. package/dist/unblock-prs/demotions.mjs +50 -0
  163. package/dist/unblock-prs/demotions.mjs.map +1 -0
  164. package/dist/unblock-prs/github.d.mts +739 -0
  165. package/dist/unblock-prs/github.d.mts.map +1 -0
  166. package/dist/unblock-prs/github.mjs +626 -0
  167. package/dist/unblock-prs/github.mjs.map +1 -0
  168. package/dist/unblock-prs/index.d.mts +25 -0
  169. package/dist/unblock-prs/index.d.mts.map +1 -0
  170. package/dist/unblock-prs/index.mjs +25 -0
  171. package/dist/unblock-prs/index.mjs.map +1 -0
  172. package/dist/unblock-prs/labels.d.mts +49 -0
  173. package/dist/unblock-prs/labels.d.mts.map +1 -0
  174. package/dist/unblock-prs/labels.mjs +49 -0
  175. package/dist/unblock-prs/labels.mjs.map +1 -0
  176. package/dist/unblock-prs/main.d.mts +179 -0
  177. package/dist/unblock-prs/main.d.mts.map +1 -0
  178. package/dist/unblock-prs/main.mjs +640 -0
  179. package/dist/unblock-prs/main.mjs.map +1 -0
  180. package/dist/unblock-prs/merge-after.d.mts +46 -0
  181. package/dist/unblock-prs/merge-after.d.mts.map +1 -0
  182. package/dist/unblock-prs/merge-after.mjs +65 -0
  183. package/dist/unblock-prs/merge-after.mjs.map +1 -0
  184. package/dist/unblock-prs/options.d.mts +35 -0
  185. package/dist/unblock-prs/options.d.mts.map +1 -0
  186. package/dist/unblock-prs/options.mjs +88 -0
  187. package/dist/unblock-prs/options.mjs.map +1 -0
  188. package/dist/unblock-prs/owner.d.mts +32 -0
  189. package/dist/unblock-prs/owner.d.mts.map +1 -0
  190. package/dist/unblock-prs/owner.mjs +63 -0
  191. package/dist/unblock-prs/owner.mjs.map +1 -0
  192. package/dist/unblock-prs/quiet.d.mts +21 -0
  193. package/dist/unblock-prs/quiet.d.mts.map +1 -0
  194. package/dist/unblock-prs/quiet.mjs +42 -0
  195. package/dist/unblock-prs/quiet.mjs.map +1 -0
  196. package/dist/unblock-prs/rebase.d.mts +120 -0
  197. package/dist/unblock-prs/rebase.d.mts.map +1 -0
  198. package/dist/unblock-prs/rebase.mjs +576 -0
  199. package/dist/unblock-prs/rebase.mjs.map +1 -0
  200. package/dist/unblock-prs/release.d.mts +62 -0
  201. package/dist/unblock-prs/release.d.mts.map +1 -0
  202. package/dist/unblock-prs/release.mjs +94 -0
  203. package/dist/unblock-prs/release.mjs.map +1 -0
  204. package/dist/unblock-prs/set-aside-comment.d.mts +20 -0
  205. package/dist/unblock-prs/set-aside-comment.d.mts.map +1 -0
  206. package/dist/unblock-prs/set-aside-comment.mjs +93 -0
  207. package/dist/unblock-prs/set-aside-comment.mjs.map +1 -0
  208. package/dist/unblock-prs/set-aside-detail.d.mts +41 -0
  209. package/dist/unblock-prs/set-aside-detail.d.mts.map +1 -0
  210. package/dist/unblock-prs/set-aside-detail.mjs +56 -0
  211. package/dist/unblock-prs/set-aside-detail.mjs.map +1 -0
  212. package/dist/unblock-prs/skips.d.mts +85 -0
  213. package/dist/unblock-prs/skips.d.mts.map +1 -0
  214. package/dist/unblock-prs/skips.mjs +141 -0
  215. package/dist/unblock-prs/skips.mjs.map +1 -0
  216. package/dist/unblock-prs/stack.d.mts +98 -0
  217. package/dist/unblock-prs/stack.d.mts.map +1 -0
  218. package/dist/unblock-prs/stack.mjs +141 -0
  219. package/dist/unblock-prs/stack.mjs.map +1 -0
  220. package/dist/unblock-prs/triage.d.mts +28 -0
  221. package/dist/unblock-prs/triage.d.mts.map +1 -0
  222. package/dist/unblock-prs/triage.mjs +396 -0
  223. package/dist/unblock-prs/triage.mjs.map +1 -0
  224. package/dist/unblock-prs/types.d.mts +793 -0
  225. package/dist/unblock-prs/types.d.mts.map +1 -0
  226. package/dist/unblock-prs/types.mjs +26 -0
  227. package/dist/unblock-prs/types.mjs.map +1 -0
  228. package/dist/unblock-prs/util.d.mts +23 -0
  229. package/dist/unblock-prs/util.d.mts.map +1 -0
  230. package/dist/unblock-prs/util.mjs +60 -0
  231. package/dist/unblock-prs/util.mjs.map +1 -0
  232. package/dist/unblock-prs/version-pr.d.mts +57 -0
  233. package/dist/unblock-prs/version-pr.d.mts.map +1 -0
  234. package/dist/unblock-prs/version-pr.mjs +79 -0
  235. package/dist/unblock-prs/version-pr.mjs.map +1 -0
  236. package/dist/unblock-prs/watch.d.mts +17 -0
  237. package/dist/unblock-prs/watch.d.mts.map +1 -0
  238. package/dist/unblock-prs/watch.mjs +128 -0
  239. package/dist/unblock-prs/watch.mjs.map +1 -0
  240. package/package.json +118 -3
  241. package/src/claim-pr/claim-pr.mts +380 -0
  242. package/src/claim-pr/claim-pr.test.mts +176 -0
  243. package/src/claim-pr/index.mts +1 -0
  244. package/src/cmd/claim-pr.mts +32 -0
  245. package/src/cmd/open-pr.mts +28 -0
  246. package/src/cmd/pr-report.mts +28 -0
  247. package/src/cmd/push-fixed-pr.mts +36 -0
  248. package/src/cmd/report-unowned-prs.mts +37 -0
  249. package/src/cmd/unblock-prs.mts +24 -0
  250. package/src/entry-point.mts +3 -0
  251. package/src/lib/cli-args.mts +86 -0
  252. package/src/lib/cli-args.test.mts +92 -0
  253. package/src/lib/github-api.mts +463 -0
  254. package/src/lib/github-api.test.mts +40 -0
  255. package/src/lib/index.mts +6 -0
  256. package/src/lib/json.mts +43 -0
  257. package/src/lib/json.test.mts +34 -0
  258. package/src/lib/log.mts +19 -0
  259. package/src/lib/log.test.mts +45 -0
  260. package/src/lib/shell.mts +52 -0
  261. package/src/lib/time.mts +49 -0
  262. package/src/open-pr/README.md +237 -0
  263. package/src/open-pr/github.mts +444 -0
  264. package/src/open-pr/index.mts +5 -0
  265. package/src/open-pr/main.mts +327 -0
  266. package/src/open-pr/options.mts +101 -0
  267. package/src/open-pr/options.test.mts +67 -0
  268. package/src/open-pr/steps.mts +57 -0
  269. package/src/open-pr/steps.test.mts +59 -0
  270. package/src/open-pr/types.mts +42 -0
  271. package/src/pr-report/README.md +244 -0
  272. package/src/pr-report/github.mts +911 -0
  273. package/src/pr-report/index.mts +7 -0
  274. package/src/pr-report/linked-issues.mts +51 -0
  275. package/src/pr-report/linked-issues.test.mts +65 -0
  276. package/src/pr-report/main.mts +257 -0
  277. package/src/pr-report/options.mts +140 -0
  278. package/src/pr-report/queue.mts +125 -0
  279. package/src/pr-report/render.mts +428 -0
  280. package/src/pr-report/render.test.mts +379 -0
  281. package/src/pr-report/repo-settings.mts +34 -0
  282. package/src/push-fixed-pr/index.mts +1 -0
  283. package/src/push-fixed-pr/push-fixed-pr.mts +276 -0
  284. package/src/push-fixed-pr/push-fixed-pr.test.mts +228 -0
  285. package/src/report-unowned-prs/index.mts +1 -0
  286. package/src/report-unowned-prs/report-unowned-prs.mts +190 -0
  287. package/src/report-unowned-prs/report-unowned-prs.test.mts +87 -0
  288. package/src/unblock-prs/README.md +1616 -0
  289. package/src/unblock-prs/auto-fix.mts +334 -0
  290. package/src/unblock-prs/auto-fix.test.mts +159 -0
  291. package/src/unblock-prs/checks.mts +538 -0
  292. package/src/unblock-prs/checks.test.mts +507 -0
  293. package/src/unblock-prs/claims.mts +33 -0
  294. package/src/unblock-prs/claims.test.mts +64 -0
  295. package/src/unblock-prs/config.mts +187 -0
  296. package/src/unblock-prs/config.schema.json +71 -0
  297. package/src/unblock-prs/config.test.mts +139 -0
  298. package/src/unblock-prs/constants.mts +33 -0
  299. package/src/unblock-prs/demotions.mts +73 -0
  300. package/src/unblock-prs/demotions.test.mts +100 -0
  301. package/src/unblock-prs/github.mts +1042 -0
  302. package/src/unblock-prs/github.test.mts +84 -0
  303. package/src/unblock-prs/index.mts +24 -0
  304. package/src/unblock-prs/labels.mts +70 -0
  305. package/src/unblock-prs/main.mts +1051 -0
  306. package/src/unblock-prs/merge-after.mts +117 -0
  307. package/src/unblock-prs/merge-after.test.mts +120 -0
  308. package/src/unblock-prs/options.mts +157 -0
  309. package/src/unblock-prs/owner.mts +91 -0
  310. package/src/unblock-prs/owner.test.mts +114 -0
  311. package/src/unblock-prs/quiet.mts +62 -0
  312. package/src/unblock-prs/quiet.test.mts +175 -0
  313. package/src/unblock-prs/rebase.mts +962 -0
  314. package/src/unblock-prs/release.mts +149 -0
  315. package/src/unblock-prs/release.test.mts +209 -0
  316. package/src/unblock-prs/set-aside-comment.mts +143 -0
  317. package/src/unblock-prs/set-aside-comment.test.mts +148 -0
  318. package/src/unblock-prs/set-aside-detail.mts +82 -0
  319. package/src/unblock-prs/set-aside-detail.test.mts +131 -0
  320. package/src/unblock-prs/skips.mts +215 -0
  321. package/src/unblock-prs/skips.test.mts +280 -0
  322. package/src/unblock-prs/stack.mts +220 -0
  323. package/src/unblock-prs/stack.test.mts +449 -0
  324. package/src/unblock-prs/triage.mts +669 -0
  325. package/src/unblock-prs/triage.test.mts +100 -0
  326. package/src/unblock-prs/types.mts +358 -0
  327. package/src/unblock-prs/util.mts +78 -0
  328. package/src/unblock-prs/util.test.mts +26 -0
  329. package/src/unblock-prs/version-pr.mts +112 -0
  330. package/src/unblock-prs/version-pr.test.mts +78 -0
  331. package/src/unblock-prs/watch.mts +219 -0
@@ -0,0 +1,25 @@
1
+ export * from './auto-fix.mjs';
2
+ export * from './checks.mjs';
3
+ export * from './claims.mjs';
4
+ export * from './config.mjs';
5
+ export * from './constants.mjs';
6
+ export * from './demotions.mjs';
7
+ export * from './github.mjs';
8
+ export * from './labels.mjs';
9
+ export * from './main.mjs';
10
+ export * from './merge-after.mjs';
11
+ export * from './options.mjs';
12
+ export * from './owner.mjs';
13
+ export * from './quiet.mjs';
14
+ export * from './rebase.mjs';
15
+ export * from './release.mjs';
16
+ export * from './set-aside-comment.mjs';
17
+ export * from './set-aside-detail.mjs';
18
+ export * from './skips.mjs';
19
+ export * from './stack.mjs';
20
+ export * from './triage.mjs';
21
+ export * from './types.mjs';
22
+ export * from './util.mjs';
23
+ export * from './version-pr.mjs';
24
+ export * from './watch.mjs';
25
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/unblock-prs/index.mts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC"}
@@ -0,0 +1,25 @@
1
+ export * from './auto-fix.mjs';
2
+ export * from './checks.mjs';
3
+ export * from './claims.mjs';
4
+ export * from './config.mjs';
5
+ export * from './constants.mjs';
6
+ export * from './demotions.mjs';
7
+ export * from './github.mjs';
8
+ export * from './labels.mjs';
9
+ export * from './main.mjs';
10
+ export * from './merge-after.mjs';
11
+ export * from './options.mjs';
12
+ export * from './owner.mjs';
13
+ export * from './quiet.mjs';
14
+ export * from './rebase.mjs';
15
+ export * from './release.mjs';
16
+ export * from './set-aside-comment.mjs';
17
+ export * from './set-aside-detail.mjs';
18
+ export * from './skips.mjs';
19
+ export * from './stack.mjs';
20
+ export * from './triage.mjs';
21
+ export * from './types.mjs';
22
+ export * from './util.mjs';
23
+ export * from './version-pr.mjs';
24
+ export * from './watch.mjs';
25
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/unblock-prs/index.mts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC"}
@@ -0,0 +1,49 @@
1
+ /**
2
+ * What the labels this script reads say about one pull request.
3
+ * `merge-queued` decides whether a pull request is looked at, `skip-ci`
4
+ * decides whether it has been released yet, and `blocks-release` decides
5
+ * whether the version pull request may go at all, `auto-rebase` asks for a
6
+ * paused pull request to be kept on the tip, and `priority:high` /
7
+ * `priority:low` move one within the pick order. The strings themselves are
8
+ * `pr-report-core`'s, because the Pull Requests Manager page reads them too.
9
+ */
10
+ import { type QueuePriority } from 'pr-report-core';
11
+ import type { PullRequest } from './types.mjs';
12
+ /**
13
+ * Whether the pull request carries the `skip-ci` label, which is what this
14
+ * repository uses to say "not yet": the check workflows skip while it is on
15
+ * and `skip-ci-label.yml` holds the merge with a `pending` `no-skip-ci-label` status,
16
+ * so there is nothing here to unblock.
17
+ */
18
+ export declare const isSkipCiLabelled: (pr: PullRequest) => boolean;
19
+ /**
20
+ * Whether the pull request has been put in the queue — reviewed, and waiting
21
+ * for its turn rather than for someone to look at it. This is the scope rule:
22
+ * a pull request without the label is not this script's business, whatever
23
+ * else it carries.
24
+ */
25
+ export declare const isMergeQueued: (pr: PullRequest) => boolean;
26
+ /**
27
+ * Whether the pull request declares that the release must wait for it. A
28
+ * draft counts: holding a release for something that is not ready yet is the
29
+ * case the label is for.
30
+ */
31
+ export declare const blocksRelease: (pr: PullRequest) => boolean;
32
+ /**
33
+ * Whether the pull request asked to be kept on the tip of the default branch
34
+ * while it waits, by `auto-rebase`, or by being queued: either way the author
35
+ * wants it rebased, and while `skip-ci` is on a rebase before its turn costs
36
+ * nothing and makes its diff easier to read.
37
+ */
38
+ export declare const wantsAutoRebase: (pr: PullRequest) => boolean;
39
+ /**
40
+ * Which priority label the pull request carries (`priorityOfLabels`): `both`
41
+ * is the two at once, which contradict each other and so count as neither.
42
+ */
43
+ export declare const priorityOf: (pr: PullRequest) => QueuePriority;
44
+ /**
45
+ * Where {@link priorityOf} puts the pull request in the pick order, as a sort
46
+ * key: `high` before the rest, `low` after them.
47
+ */
48
+ export declare const priorityRank: (pr: PullRequest) => 0 | 1 | 2;
49
+ //# sourceMappingURL=labels.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"labels.d.mts","sourceRoot":"","sources":["../../src/unblock-prs/labels.mts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAOL,KAAK,aAAa,EACnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,OAAQ,WAAW,KAAG,OACM,CAAC;AAE1D;;;;;GAKG;AACH,eAAO,MAAM,aAAa,OAAQ,WAAW,KAAG,OACc,CAAC;AAE/D;;;;GAIG;AACH,eAAO,MAAM,aAAa,OAAQ,WAAW,KAAG,OACgB,CAAC;AAEjE;;;;;GAKG;AACH,eAAO,MAAM,eAAe,OAAQ,WAAW,KAAG,OAEW,CAAC;AAE9D;;;GAGG;AACH,eAAO,MAAM,UAAU,OAAQ,WAAW,KAAG,aACQ,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,YAAY,OAAQ,WAAW,KAAG,CAAC,GAAG,CAAC,GAAG,CACE,CAAC"}
@@ -0,0 +1,49 @@
1
+
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+ import { AUTO_REBASE_LABEL, BLOCKS_RELEASE_LABEL, MERGE_QUEUED_LABEL, priorityOfLabels, priorityRankOfLabels, SKIP_CI_LABEL, } from 'pr-report-core';
11
+
12
+
13
+
14
+
15
+
16
+
17
+ export const isSkipCiLabelled = (pr) => pr.labels.some((label) => label.name === SKIP_CI_LABEL);
18
+
19
+
20
+
21
+
22
+
23
+
24
+ export const isMergeQueued = (pr) => pr.labels.some((label) => label.name === MERGE_QUEUED_LABEL);
25
+
26
+
27
+
28
+
29
+
30
+ export const blocksRelease = (pr) => pr.labels.some((label) => label.name === BLOCKS_RELEASE_LABEL);
31
+
32
+
33
+
34
+
35
+
36
+
37
+ export const wantsAutoRebase = (pr) => isMergeQueued(pr) ||
38
+ pr.labels.some((label) => label.name === AUTO_REBASE_LABEL);
39
+
40
+
41
+
42
+
43
+ export const priorityOf = (pr) => priorityOfLabels(pr.labels.map(({ name }) => name));
44
+
45
+
46
+
47
+
48
+ export const priorityRank = (pr) => priorityRankOfLabels(pr.labels.map(({ name }) => name));
49
+ //# sourceMappingURL=labels.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"labels.mjs","sourceRoot":"","sources":["../../src/unblock-prs/labels.mts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACpB,aAAa,GAEd,MAAM,gBAAgB,CAAC;AAGxB;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAAe,EAAW,EAAE,CAC3D,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,aAAa,CAAC,CAAC;AAE1D;;;;;GAKG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAe,EAAW,EAAE,CACxD,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,kBAAkB,CAAC,CAAC;AAE/D;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAe,EAAW,EAAE,CACxD,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,oBAAoB,CAAC,CAAC;AAEjE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAe,EAAW,EAAE,CAC1D,aAAa,CAAC,EAAE,CAAC;IACjB,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,iBAAiB,CAAC,CAAC;AAE9D;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EAAe,EAAiB,EAAE,CAC3D,gBAAgB,CAAC,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;AAEtD;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAAe,EAAa,EAAE,CACzD,oBAAoB,CAAC,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC"}
@@ -0,0 +1,179 @@
1
+ import { Result } from 'ts-data-forge';
2
+ import type { Options } from './options.mjs';
3
+ /**
4
+ * Keeps the pull requests labelled `merge-queued` moving, one at a time, by
5
+ * rebasing the one that is out-of-date with the default branch, arming its
6
+ * auto-merge, and waiting for GitHub to merge it.
7
+ *
8
+ * The `/unblock-prs` skill fixes what this script sets aside — a failing check
9
+ * that needs reading, a conflict — after claiming it, so that this script
10
+ * leaves it alone meanwhile (`claims.mts`). This script fixes only the one
11
+ * kind that needs no reading — a fixer's diff, see step 4 — and it never
12
+ * merges anything: auto-merge does that once the checks are green.
13
+ *
14
+ * One cycle:
15
+ *
16
+ * 1. List the open pull requests labelled `merge-queued` whose base is the
17
+ * default branch. Everything else is not this script's business: an
18
+ * unlabelled pull request is passed over in silence, and a labelled one
19
+ * that cannot be acted on — a draft, a base that is neither the default
20
+ * branch nor another open pull request's — is reported, because the label
21
+ * asked for something and the answer is no. A stacked one waits for the
22
+ * layer below it (`stack.mts`). Auto-merge is this script's to arm, when
23
+ * it picks a pull request (`armOnPick` in `rebase.mts`), whether or not
24
+ * it was armed before: the label is the only permission read. Drafts and
25
+ * anything a previous cycle gave up on are set aside, and so is one whose
26
+ * review holds its merge — a code owner has not approved it, or a
27
+ * conversation is unresolved — because no check reports that, and
28
+ * releasing it would only run a matrix to sit green. One whose waiting
29
+ * paths only its author owns is the exception, since no approval will
30
+ * ever come: it is released and watched with auto-merge left off, and
31
+ * once its checks are green it is set aside `awaiting-bypass` for a
32
+ * person to merge by a ruleset bypass (`pr-report-core`'s
33
+ * `review-hold.mts`). The one thing done without the label comes first:
34
+ * a layer GitHub moved onto the default branch when the one below it
35
+ * merged, still carrying that one's commits, is rebased off them and the
36
+ * list read again (`stack.mts`).
37
+ * 2. If one of them is already up to date and its checks are running, or it
38
+ * is clean and about to merge, watch that one instead of rebasing another:
39
+ * the merge will move `main` and put every other branch back to `BEHIND`,
40
+ * so a second rebase now would only run a CI matrix to throw it away.
41
+ * 3. Otherwise take the lowest-numbered pull request that is `BEHIND` —
42
+ * or, once those are exhausted, one GitHub calls `DIRTY`, then the version
43
+ * pull request, then one a watch saw sit green — rebase it onto
44
+ * `origin/<default branch>` in a throwaway worktree, and push with
45
+ * `--force-with-lease` against the head the survey saw, carrying the
46
+ * layers stacked on it along. A rebase that conflicts, or a push that is
47
+ * refused, drops that pull request for as long as its head and the base
48
+ * stay where they are, and the next
49
+ * candidate is tried in the same cycle. A branch that moved under the
50
+ * rebase is not one of those: someone else — the skill, or a person — is
51
+ * moving it, so nothing is recorded and the cycle surveys again rather
52
+ * than start a second matrix on the next candidate.
53
+ * When there is no candidate and nothing in flight, a pull request paused
54
+ * by `skip-ci` and labelled `auto-rebase` or `merge-queued` that is behind
55
+ * is rebased onto the tip instead, with its layers — under the label the
56
+ * push runs no checks, and it keeps the diff under review its own. Anything
57
+ * that moved sends the cycle back to the survey.
58
+ * 4. Poll the rebased pull request until it merges, or until something says
59
+ * it will not: a required check failed, auto-merge was switched off, the
60
+ * `skip-ci` label went on, the branch was pushed by someone else, or every
61
+ * required context reported
62
+ * green and it still did not merge. "Green" means the whole list the
63
+ * ruleset requires, not the part of it that has reported — a required
64
+ * context with no check run on the head commit is absent from the
65
+ * head's checks rather than pending in them, so reading its absence as
66
+ * success is what used to write a pull request off three minutes into a
67
+ * twenty-five minute matrix.
68
+ * When a required check failed and every job that failed under it is a
69
+ * `fix:` or `gen:` entry of the check matrices, run those commands, amend
70
+ * what they wrote onto the branch's one commit, push, and watch the new
71
+ * head instead — once, and only for the pull request this cycle is
72
+ * watching, never the others that are failing.
73
+ * 5. Remember the verdict against the head *and* the base it was reached on,
74
+ * so the pull request is left alone until someone pushes to it or the
75
+ * base moves, and say so in its one set-aside comment: a person ticks the
76
+ * retry box there to have it tried anyway, the comment is rewritten as
77
+ * resolved once the verdict ends, and a later run takes up a verdict it
78
+ * finds still standing (`settleSkips`). A pull request that sat green
79
+ * without merging is also picked last from then on, until someone else
80
+ * pushes to it: the base moving makes it `BEHIND` and a candidate again,
81
+ * but whatever held it is something triage could not read, and it would
82
+ * otherwise go first each time anything else merged.
83
+ * 6. Survey again, saying what became of the pull requests this run has
84
+ * touched. One that merges after the watch gave up simply stops appearing
85
+ * in the list, and this is the only place that gets recorded. When there
86
+ * is nothing to do the script sleeps before looking again —
87
+ * `--active-interval` seconds while the list keeps changing, so a pull
88
+ * request queued a moment ago is not left for minutes, and
89
+ * `--idle-interval` once `--idle-after` surveys in a row have seen the
90
+ * same list — and keeps going until it is interrupted or `--once` was
91
+ * given.
92
+ *
93
+ * The rebase happens in a `git worktree` under the OS temp directory, so the
94
+ * checkout this runs from is never touched — its working tree may be dirty,
95
+ * and the pull request's branch may even be checked out somewhere else.
96
+ *
97
+ * ## The order, and `skip-ci`
98
+ *
99
+ * Five things the pull requests themselves declare shape that loop.
100
+ *
101
+ * - **A base that is another open pull request's branch** stacks the pull
102
+ * request on that one: it is not picked while that one is open, exactly as
103
+ * if it had declared `Merge-After:` on it. `stack.mts` says what happens
104
+ * when the layer below moves, and when it merges.
105
+ * - **`Merge-After: #1234` in the body** adds an ordering constraint: the
106
+ * pull request is not *picked* while any pull request it names is still
107
+ * open. It constrains picking and nothing else — one that is already up to
108
+ * date and merging is watched as ever, because auto-merge is going to merge
109
+ * it whatever this script thinks, and passing it over would only send the
110
+ * cycle off to rebase a branch that merge is about to invalidate. Several
111
+ * numbers may be named, on one line or several, so the declarations form a
112
+ * graph rather than a chain; a cycle in it is reported by name and
113
+ * everything caught in it is left alone, because nothing here can move it.
114
+ * - **The `skip-ci` label** pauses a queued pull request rather than removing
115
+ * it: every check workflow skips while it is on and `no-skip-ci-label`
116
+ * holds the merge, so taking it off is the action, and it is taken off one
117
+ * pull request at a time. The rebase comes *first* and the label removal
118
+ * *second*: while the label is on, the push fires a `synchronize` whose
119
+ * every check is skipped, and taking the label off then fires `unlabeled`,
120
+ * which runs the matrix once, on the head that will actually be merged. The
121
+ * other order starts a full matrix on the pre-rebase head and has the push
122
+ * cancel it.
123
+ * - **The `blocks-release` label** says the next release must contain this
124
+ * pull request: while it is open the version pull request — the one
125
+ * `changesets/action` opens from `changeset-release/<base>` — is not
126
+ * picked. It exists because that is the one pull request whose body cannot
127
+ * declare anything: its title and body are overwritten on every push to the
128
+ * base, so a `Merge-After:` written there is wiped exactly while several
129
+ * queued pull requests made it matter. The same branch is rebuilt from the
130
+ * tip and force-pushed by the same workflow, so nothing here rebases it
131
+ * either: taking `skip-ci` off, once the release workflow has rebuilt it on
132
+ * the current tip, is all it is ever given, and it is picked last so that a
133
+ * queued change goes into the release rather than after it.
134
+ * - **The `auto-rebase` label** asks for a pull request paused by `skip-ci`
135
+ * to be kept on the tip while it waits, as a queued one is (step 3). It is
136
+ * opt-in so that a branch left to sleep is never moved for want of a label.
137
+ *
138
+ * Releasing one is as far as it goes. From there it is an ordinary queued
139
+ * pull request, and if its checks fail it is set aside like any other — with
140
+ * its `skip-ci` off. Everything that declared `Merge-After` on it then waits,
141
+ * because it has not merged, which is what a declared order is for.
142
+ *
143
+ * **One queued pull request is released at a time, from this side only.**
144
+ * Nothing is picked while one is in flight, and after releasing it looks
145
+ * again: when another the worker owns was released in the same moment and
146
+ * goes first, it gives back the `skip-ci` it has just taken off its own. It
147
+ * puts the label on no other pull request (`release.mts`).
148
+ *
149
+ * ## Where the rest of it is
150
+ *
151
+ * This file is the loop and the command line. Reading order, roughly outside
152
+ * in:
153
+ *
154
+ * - `triage.mts` — what one survey says about each pull request, and why.
155
+ * - `pr-report-core`'s `review-hold.mts` — whether a pull request's own review
156
+ * holds its merge.
157
+ * - `merge-after.mts` — the declared order: the trailer parser and the cycle
158
+ * detection.
159
+ * - `stack.mts` — stacked pull requests: when they wait, when they are armed,
160
+ * and what moves with them.
161
+ * - `version-pr.mts` — the version pull request, and what holds it back.
162
+ * - `rebase.mts` — moving a branch: the rebase in a throwaway worktree, and
163
+ * taking `skip-ci` off.
164
+ * - `release.mts` — holding the queue to one released pull request.
165
+ * - `watch.mts` — polling one pull request until it merges, or until it will
166
+ * not.
167
+ * - `auto-fix.mts` — running the fixer a failed check names, and pushing
168
+ * what it wrote.
169
+ * - `quiet.mts` — how long to sleep when there is nothing to do.
170
+ * - `checks.mts` — what the merge is waiting for, judged against the contexts
171
+ * the ruleset requires.
172
+ * - `github.mts` — everything that reads or writes GitHub or `git`, and
173
+ * nothing that decides. The API client, the runner and the quoting are
174
+ * `tools/scripts/lib/`'s.
175
+ * - `labels.mts`, `skips.mts`, `demotions.mts`, `options.mts`, `types.mts`,
176
+ * `constants.mts`, `util.mts` — the vocabulary.
177
+ */
178
+ export declare const unblockPrs: (options: Options) => Promise<Result<undefined, string>>;
179
+ //# sourceMappingURL=main.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.mts","sourceRoot":"","sources":["../../src/unblock-prs/main.mts"],"names":[],"mappings":"AAQA,OAAO,EAAO,MAAM,EAAE,MAAM,eAAe,CAAC;AAgB5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAiD7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8KG;AACH,eAAO,MAAM,UAAU,YACZ,OAAO,KACf,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,CAyEnC,CAAC"}