pr-report-core 0.2.0 → 0.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 (107) hide show
  1. package/README.md +5 -2
  2. package/dist/branch-rules.d.mts +30 -0
  3. package/dist/branch-rules.d.mts.map +1 -0
  4. package/dist/branch-rules.mjs +71 -0
  5. package/dist/branch-rules.mjs.map +1 -0
  6. package/dist/checks.d.mts +61 -62
  7. package/dist/checks.d.mts.map +1 -1
  8. package/dist/checks.mjs +0 -1
  9. package/dist/checks.mjs.map +1 -1
  10. package/dist/claim.d.mts +21 -15
  11. package/dist/claim.d.mts.map +1 -1
  12. package/dist/claim.mjs +1 -1
  13. package/dist/claim.mjs.map +1 -1
  14. package/dist/closing-issues.d.mts +18 -19
  15. package/dist/closing-issues.d.mts.map +1 -1
  16. package/dist/closing-issues.mjs +0 -1
  17. package/dist/closing-issues.mjs.map +1 -1
  18. package/dist/code-owners.d.mts +33 -34
  19. package/dist/code-owners.d.mts.map +1 -1
  20. package/dist/code-owners.mjs +0 -2
  21. package/dist/code-owners.mjs.map +1 -1
  22. package/dist/index.d.mts +3 -0
  23. package/dist/index.d.mts.map +1 -1
  24. package/dist/index.mjs +3 -0
  25. package/dist/index.mjs.map +1 -1
  26. package/dist/issue-claim.d.mts +56 -0
  27. package/dist/issue-claim.d.mts.map +1 -0
  28. package/dist/issue-claim.mjs +87 -0
  29. package/dist/issue-claim.mjs.map +1 -0
  30. package/dist/issue-priority.d.mts +44 -0
  31. package/dist/issue-priority.d.mts.map +1 -0
  32. package/dist/issue-priority.mjs +91 -0
  33. package/dist/issue-priority.mjs.map +1 -0
  34. package/dist/labels.d.mts +43 -42
  35. package/dist/labels.d.mts.map +1 -1
  36. package/dist/labels.mjs +2 -1
  37. package/dist/labels.mjs.map +1 -1
  38. package/dist/merge-after.d.mts +22 -16
  39. package/dist/merge-after.d.mts.map +1 -1
  40. package/dist/merge-after.mjs +87 -24
  41. package/dist/merge-after.mjs.map +1 -1
  42. package/dist/queue-comments.d.mts +2 -2
  43. package/dist/queue-order.d.mts +32 -32
  44. package/dist/queue-order.mjs +0 -2
  45. package/dist/queue-order.mjs.map +1 -1
  46. package/dist/queue-owner.d.mts +14 -14
  47. package/dist/queue-owner.d.mts.map +1 -1
  48. package/dist/queue-owner.mjs +18 -0
  49. package/dist/queue-owner.mjs.map +1 -1
  50. package/dist/report.d.mts +4 -4
  51. package/dist/review-hold.d.mts +14 -14
  52. package/dist/ruleset.d.mts +12 -13
  53. package/dist/ruleset.d.mts.map +1 -1
  54. package/dist/ruleset.mjs +0 -1
  55. package/dist/ruleset.mjs.map +1 -1
  56. package/dist/set-aside.d.mts +29 -28
  57. package/dist/set-aside.d.mts.map +1 -1
  58. package/dist/set-aside.mjs +2 -0
  59. package/dist/set-aside.mjs.map +1 -1
  60. package/dist/stack.d.mts +14 -15
  61. package/dist/stack.d.mts.map +1 -1
  62. package/dist/stack.mjs +0 -1
  63. package/dist/stack.mjs.map +1 -1
  64. package/dist/start-after.d.mts +20 -21
  65. package/dist/start-after.d.mts.map +1 -1
  66. package/dist/start-after.mjs +0 -1
  67. package/dist/start-after.mjs.map +1 -1
  68. package/dist/summarize.d.mts +2 -2
  69. package/dist/timestamp.d.mts +10 -10
  70. package/dist/tree.d.mts +5 -5
  71. package/dist/types.d.mts +32 -33
  72. package/dist/types.d.mts.map +1 -1
  73. package/package.json +10 -10
  74. package/src/branch-rules.mts +105 -0
  75. package/src/branch-rules.test.mts +221 -0
  76. package/src/checks.mts +64 -65
  77. package/src/checks.test.mts +30 -31
  78. package/src/claim.mts +16 -16
  79. package/src/closing-issues.mts +18 -19
  80. package/src/closing-issues.test.mts +2 -2
  81. package/src/code-owners.mts +39 -41
  82. package/src/index.mts +3 -0
  83. package/src/issue-claim.mts +138 -0
  84. package/src/issue-claim.test.mts +149 -0
  85. package/src/issue-priority.mts +116 -0
  86. package/src/issue-priority.test.mts +71 -0
  87. package/src/labels.mts +43 -42
  88. package/src/merge-after.mts +142 -49
  89. package/src/merge-after.test.mts +80 -3
  90. package/src/queue-comments.mts +2 -2
  91. package/src/queue-order.mts +60 -62
  92. package/src/queue-order.test.mts +6 -6
  93. package/src/queue-owner.mts +46 -25
  94. package/src/queue-owner.test.mts +4 -2
  95. package/src/report.mts +9 -9
  96. package/src/review-hold.mts +14 -14
  97. package/src/review-hold.test.mts +3 -3
  98. package/src/ruleset.mts +12 -13
  99. package/src/set-aside.mts +30 -28
  100. package/src/set-aside.test.mts +22 -0
  101. package/src/stack.mts +14 -15
  102. package/src/stack.test.mts +4 -4
  103. package/src/start-after.mts +20 -21
  104. package/src/summarize.mts +2 -2
  105. package/src/timestamp.mts +14 -14
  106. package/src/tree.mts +5 -5
  107. package/src/types.mts +32 -33
@@ -7,8 +7,8 @@ export type RulesetRequirements = Readonly<{
7
7
  /** The contexts a pull request has to satisfy. */
8
8
  requiredContexts: readonly string[];
9
9
  /**
10
- * Whether a change to a path `.github/CODEOWNERS` lists waits for one of
11
- * its owners to approve it.
10
+ * Whether a change to a path `.github/CODEOWNERS` lists waits for one of its
11
+ * owners to approve it.
12
12
  */
13
13
  requireCodeOwnerReview: boolean;
14
14
  /** Whether every review conversation has to be resolved first. */
@@ -17,13 +17,12 @@ export type RulesetRequirements = Readonly<{
17
17
  /**
18
18
  * The requirements, read from the declaration rather than from GitHub, for
19
19
  * `pnpm run pr-report`, which reads the checkout. The file is the desired
20
- * state; what GitHub enforces is {@link requirementsOfRules} over
21
- * `rules/branches/{branch}`, which `unblock-prs` and the Pull Requests
22
- * Manager read and which wants no more than read access. The gap is that a
23
- * file under `repo-settings/` changes nothing until
24
- * `pnpm run repo-settings:apply` runs, so a context added here and not
25
- * applied is reported as missing on every pull request — which is a fair
26
- * thing for a report to say out loud.
20
+ * state; what GitHub enforces is `readBranchRequirements`, which reads it for
21
+ * `unblock-prs`, the Pull Requests Manager and `pr-report` pointed elsewhere,
22
+ * and which wants no more than read access. The gap is that a file under
23
+ * `repo-settings/` changes nothing until `pnpm run repo-settings:apply` runs,
24
+ * so a context added here and not applied is reported as missing on every pull
25
+ * request — which is a fair thing for a report to say out loud.
27
26
  *
28
27
  * `source` names the file in the messages.
29
28
  */
@@ -41,8 +40,8 @@ export declare const parseRuleset: (text: string, source: string) => Result<Rule
41
40
  export declare const requirementsOfRules: (rules: readonly unknown[]) => RulesetRequirements;
42
41
  /**
43
42
  * One rule of the several kinds a ruleset holds. The others carry entirely
44
- * different parameters, so each rule is tried against this and the ones that
45
- * do not match are simply not the rule being looked for.
43
+ * different parameters, so each rule is tried against this and the ones that do
44
+ * not match are simply not the rule being looked for.
46
45
  *
47
46
  * Written here rather than taken from `octokit-safe-types`, whose
48
47
  * `RepositoryRule` is the whole union: validating against it would refuse a
@@ -514,8 +513,8 @@ declare const ConversationResolutionRuleSchema: Readonly<{
514
513
  }>;
515
514
  /**
516
515
  * The rules as read: `ruleset.test.mts` checks each against GitHub's API
517
- * description, so that a field read here that GitHub renames or retypes
518
- * fails the type check.
516
+ * description, so that a field read here that GitHub renames or retypes fails
517
+ * the type check.
519
518
  */
520
519
  export type RequiredStatusChecksRule = t.TypeOf<typeof RequiredStatusChecksRuleSchema>;
521
520
  export type CodeOwnerReviewRule = t.TypeOf<typeof CodeOwnerReviewRuleSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"ruleset.d.mts","sourceRoot":"","sources":["../src/ruleset.mts"],"names":[],"mappings":"AAAA,sEAAsE;AAEtE,OAAO,EAAa,MAAM,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,sEAAsE;AACtE,eAAO,MAAM,iBAAiB,qCAAqC,CAAC;AAEpE,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC;IACzC,kDAAkD;IAClD,gBAAgB,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC;;;OAGG;IACH,sBAAsB,EAAE,OAAO,CAAC;IAChC,kEAAkE;IAClE,6BAA6B,EAAE,OAAO,C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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGpC,CAAC;AAEH;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAC7C,OAAO,8BAA8B,CACtC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE7E,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAC/C,OAAO,gCAAgC,CACxC,CAAC"}
package/dist/ruleset.mjs CHANGED
@@ -15,7 +15,6 @@ export const MAIN_RULESET_PATH = 'repo-settings/rulesets/main.json';
15
15
 
16
16
 
17
17
 
18
-
19
18
  export const parseRuleset = (text, source) => {
20
19
  const parsed = Json.parse(text);
21
20
  if (Result.isErr(parsed)) {
@@ -1 +1 @@
1
- {"version":3,"file":"ruleset.mjs","sourceRoot":"","sources":["../src/ruleset.mts"],"names":[],"mappings":"AAAA,sEAAsE;AAEtE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,sEAAsE;AACtE,MAAM,CAAC,MAAM,iBAAiB,GAAG,kCAAkC,CAAC;AAcpE;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,IAAY,EACZ,MAAc,EACuB,EAAE;IACvC,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAEhC,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;QACzB,OAAO,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,uBAAuB,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;IACpE,CAAC;IAED,MAAM,SAAS,GAAG,aAAa,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAE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AAC,CAAC,OAAO,CAAC,cAAc,CAAC;IAC/B,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,yBAAyB,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC;CACjE,CAAC,CAAC;AAEH,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC;IAC/B,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,iCAAiC,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC;CACzE,CAAC,CAAC"}
@@ -1,30 +1,30 @@
1
1
  /**
2
2
  * Why `unblock-prs` set a pull request aside, written where GitHub keeps it.
3
3
  *
4
- * The script decides on someone's machine and says so on standard output,
5
- * which is where nobody can see it afterwards. So each time it sets a pull
6
- * request aside it also writes a comment on that pull request — one per pull
7
- * request, edited in place from then on — whose first line is a hidden
8
- * record this module writes and reads back, and whose last line is a task
9
- * box a person ticks to have the script try again. What lies between is
10
- * prose for whoever reads it, and nothing reads it back. The Pull Requests
4
+ * The script decides on someone's machine and says so on standard output, which
5
+ * is where nobody can see it afterwards. So each time it sets a pull request
6
+ * aside it also writes a comment on that pull request — one per pull request,
7
+ * edited in place from then on — whose first line is a hidden record this
8
+ * module writes and reads back, and whose last line is a task box a person
9
+ * ticks to have the script try again. What lies between is prose for whoever
10
+ * reads it, and nothing reads it back. The Pull Requests
11
11
  * Manager page and the script itself read the record; anyone else reads the
12
12
  * prose on the pull request.
13
13
  *
14
14
  * **A comment rather than a commit status**, which is what it used to be. A
15
- * status has no state that means "for information": `failure` left a red ✗ on
16
- * a context nothing requires, until the next push, with 140 characters to say
15
+ * status has no state that means "for information": `failure` left a red ✗ on a
16
+ * context nothing requires, until the next push, with 140 characters to say
17
17
  * why, and nobody could take it off or ask for another try. **Rather than the
18
18
  * body**, because the author, a session and `open-pr` write the body too, the
19
19
  * REST API has no conditional update to keep an edit made in between, and the
20
20
  * version pull request's body is rewritten on every push to the base.
21
21
  *
22
- * **Only the comments the reader's own account wrote count.** The repository
23
- * is public, so anyone can post a comment that starts with the marker; the
24
- * script and the page both ask GitHub for `viewerDidAuthor` and read nothing
25
- * else — the account that runs `unblock-prs` is the one that looks at the
26
- * page. A task box in someone else's comment can be ticked only by those who
27
- * can write to the repository, so the retry is not open to outsiders either.
22
+ * **Only the comments the reader's own account wrote count.** The repository is
23
+ * public, so anyone can post a comment that starts with the marker; the script
24
+ * and the page both ask GitHub for `viewerDidAuthor` and read nothing else —
25
+ * the account that runs `unblock-prs` is the one that looks at the page. A task
26
+ * box in someone else's comment can be ticked only by those who can write to
27
+ * the repository, so the retry is not open to outsiders either.
28
28
  *
29
29
  * **Its own record rather than GitHub's `mergeable`.** That answers whether
30
30
  * *merging* the branch conflicts, from a cached background computation; the
@@ -32,8 +32,8 @@
32
32
  * parent was squash-merged and on a cache that has not caught up. Only the
33
33
  * script knows what the rebase said.
34
34
  *
35
- * **It lasts exactly as long as the state it was reached in.** The record
36
- * names the head and the base it was reached at; a push moves the head, and
35
+ * **It lasts exactly as long as the state it was reached in.** The record names
36
+ * the head and the base it was reached at; a push moves the head, and
37
37
  * {@link setAsideApplies} is where a moved head and a moved base are judged,
38
38
  * for the script and the page alike. Once it no longer applies, or a person
39
39
  * asked for a retry, the script rewrites the comment to one resolved line
@@ -57,9 +57,9 @@ export type SetAside = Readonly<{
57
57
  baseSha: string;
58
58
  }>;
59
59
  /**
60
- * What one of the script's comments says: a pull request still set aside,
61
- * and whether a person has ticked the retry box on it, or one that was and
62
- * is not any more.
60
+ * What one of the script's comments says: a pull request still set aside, and
61
+ * whether a person has ticked the retry box on it, or one that was and is not
62
+ * any more.
63
63
  */
64
64
  export type SetAsideComment = Readonly<{
65
65
  kind: 'resolved';
@@ -69,9 +69,9 @@ export type SetAsideComment = Readonly<{
69
69
  retry: boolean;
70
70
  }>;
71
71
  /**
72
- * The record line, `prose`, and an empty retry box on the last line. The
73
- * whole SHAs rather than short ones, because what reads them back compares
74
- * them with the head and the base.
72
+ * The record line, `prose`, and an empty retry box on the last line. The whole
73
+ * SHAs rather than short ones, because what reads them back compares them with
74
+ * the head and the base.
75
75
  */
76
76
  export declare const writeSetAsideComment: (setAside: SetAside, prose: string) => string;
77
77
  /** The record line saying it is over, and `prose`, one line saying why. */
@@ -89,11 +89,12 @@ export declare const setAsideApplies: (setAside: SetAside, headTip: string, base
89
89
  * judged the head.
90
90
  *
91
91
  * Every reason clears when the base moves, because a moved base is the one
92
- * thing the script knows how to act on — a rebase that conflicted may not
93
- * any more — except two whose head a rebase would only put through the same
94
- * matrix again: `checks-failed`, which the push that carries the fix clears,
95
- * and `awaiting-bypass`, green and waiting for a ruleset bypass merge, which
96
- * does not wait for the base.
92
+ * thing the script knows how to act on — a rebase that conflicted may not any
93
+ * more — except two whose head a rebase would only put through the same matrix
94
+ * again: `checks-failed`, which the push that carries the fix clears, and
95
+ * `awaiting-bypass`, green and waiting for a ruleset bypass merge, which does
96
+ * not wait for the base. Nor does `head-out-of-sync`: GitHub not having taken
97
+ * in the branch's last push is not something the base moving changes.
97
98
  */
98
99
  export declare const setAsideStillApplies: (setAside: Readonly<{
99
100
  reason: string;
@@ -1 +1 @@
1
- {"version":3,"file":"set-aside.d.mts","sourceRoot":"","sources":["../src/set-aside.mts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAEH;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAE1C,MAAM,MAAM,QAAQ,GAAG,QAAQ,CAAC;IAC9B,oEAAoE;IACpE,MAAM,EAAE,MAAM,CAAC;IACf,oCAAoC;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,iDAAiD;IACjD,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,CAClC;IAAE,IAAI,EAAE,UAAU,CAAA;CA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;GAIG;AACH,eAAO,MAAM,oBAAoB,aACrB,QAAQ,SACX,MAAM,KACZ,MAOW,CAAC;AAEf,2EAA2E;AAC3E,eAAO,MAAM,oBAAoB,UAAW,MAAM,KAAG,MACI,CAAC;AAE1D,qFAAqF;AACrF,eAAO,MAAM,oBAAoB,SACzB,MAAM,KACX,eAAe,GAAG,SAoCpB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,aAChB,QAAQ,WACT,MAAM,WACN,MAAM,KACd,OACsE,CAAC;AAE1E;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,oBAAoB,aACrB,QAAQ,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,WAC9C,MAAM,KACd,OAI2B,CAAC"}
@@ -105,8 +105,10 @@ export const setAsideApplies = (setAside, headTip, baseTip) => setAside.headSha
105
105
 
106
106
 
107
107
 
108
+
108
109
  export const setAsideStillApplies = (setAside, baseTip) => setAside.reason === 'checks-failed' ||
109
110
  setAside.reason === 'awaiting-bypass' ||
111
+ setAside.reason === 'head-out-of-sync' ||
110
112
  setAside.baseSha === baseTip;
111
113
 
112
114
  const MARKER = '<!-- unblock-prs:set-aside';
@@ -1 +1 @@
1
- {"version":3,"file":"set-aside.mjs","sourceRoot":"","sources":["../src/set-aside.mts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAEH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,CAAC;AAqB1C;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAClC,QAAkB,EAClB,KAAa,EACL,EAAE,CACV;IACE,GAAG,MAAM,WAAW,QAAQ,CAAC,MAAM,SAAS,QAAQ,CAAC,OAAO,SAAS,QAAQ,CAAC,OAAO,MAAM;IAC3F,EAAE;IACF,KAAK,CAAC,IAAI,EAAE;IACZ,EAAE;IACF,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AAC,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,CACrE,MAAM,CACP,CAAC;IAEF,OAAO;QACL,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE;QACtC,KAAK,EAAE,SAAS,KAAK,SAAS,IAAI,SAAS,KAAK,GAAG;KACpD,CAAC;AACJ,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,QAAkB,EAClB,OAAe,EACf,OAAe,EACN,EAAE,CACX,QAAQ,CAAC,OAAO,KAAK,OAAO,IAAI,oBAAoB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AAE1E;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAClC,QAAuD,EACvD,OAAe,EACN,EAAE,CACX,QAAQ,CAAC,MAAM,KAAK,eAAe;IACnC,QAAQ,CAAC,MAAM,KAAK,iBAAiB;IACrC,QAAQ,CAAC,MAAM,KAAK,kBAAkB;IACtC,QAAQ,CAAC,OAAO,KAAK,OAAO,CAAC;AAE/B,sEAAsE;AACtE,MAAM,MAAM,GAAG,4BAA4B,CAAC;AAE5C,MAAM,WAAW,GAAG,QAAQ,CAAC;AAE7B,MAAM,aAAa,GACjB,8HAA8H,CAAC;AAEjI,MAAM,UAAU,GAAG,kCAAkC,CAAC"}
package/dist/stack.d.mts CHANGED
@@ -3,21 +3,21 @@
3
3
  * branch, so that its diff is its own layer and nothing below it.
4
4
  *
5
5
  * The stack is read from the bases alone, because GitHub already holds it: a
6
- * pull request onto `a` is on top of whichever pull request is `a`'s. When
7
- * that one merges, GitHub moves the layer above it onto its base and rebases
8
- * it, so the base chain is the merge order, and everything that orders pull
9
- * requests here reads a parent as a `Merge-After:` on it. `open-pr --base`
10
- * writes that trailer too, so that the body states the order as it does for
11
- * every other; a stack made any other way, without one, counts all the same,
12
- * and one naming the parent is not counted twice.
6
+ * pull request onto `a` is on top of whichever pull request is `a`'s. When that
7
+ * one merges, GitHub moves the layer above it onto its base and rebases it, so
8
+ * the base chain is the merge order, and everything that orders pull requests
9
+ * here reads a parent as a `Merge-After:` on it. `open-pr --base` writes that
10
+ * trailer too, so that the body states the order as it does for every other; a
11
+ * stack made any other way, without one, counts all the same, and one naming
12
+ * the parent is not counted twice.
13
13
  */
14
14
  export type StackMember = Readonly<{
15
15
  number: number;
16
16
  headRef: string;
17
17
  baseRef: string;
18
18
  /**
19
- * Whether the head branch lives in a fork. A fork's branch is not a branch
20
- * of this repository, whatever its name, so it is never a parent.
19
+ * Whether the head branch lives in a fork. A fork's branch is not a branch of
20
+ * this repository, whatever its name, so it is never a parent.
21
21
  */
22
22
  fromFork: boolean;
23
23
  }>;
@@ -26,15 +26,14 @@ export type StackMember = Readonly<{
26
26
  * A pull request that is not stacked has no entry.
27
27
  *
28
28
  * A base is a parent's head only when exactly one open pull request from this
29
- * repository heads it: a branch opened against two bases is two pull
30
- * requests, and which of them a layer above means cannot be told. Nothing
31
- * onto the default branch is stacked, even if some odd pull request heads it.
29
+ * repository heads it: a branch opened against two bases is two pull requests,
30
+ * and which of them a layer above means cannot be told. Nothing onto the
31
+ * default branch is stacked, even if some odd pull request heads it.
32
32
  */
33
33
  export declare const findStackParents: (pulls: readonly StackMember[], defaultBranch: string) => ReadonlyMap<number, number>;
34
34
  /**
35
- * Every layer above `number`, each after the one it is on — the order in
36
- * which they are moved when `number` moves. Siblings keep the lowest number
37
- * first.
35
+ * Every layer above `number`, each after the one it is on — the order in which
36
+ * they are moved when `number` moves. Siblings keep the lowest number first.
38
37
  */
39
38
  export declare const stackDescendants: (parents: ReadonlyMap<number, number>, number: number) => readonly number[];
40
39
  //# sourceMappingURL=stack.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stack.d.mts","sourceRoot":"","sources":["../src/stack.mts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAKH,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC,CAAC;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,UACpB,SAAS,WAAW,EAAE,iBACd,MAAM,KACpB,WAAW,CAAC,MAAM,EAAE,MAAM,CAmB5B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,YAClB,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,UAC5B,MAAM,KACb,SAAS,MAAM,EA4BjB,CAAC"}
1
+ {"version":3,"file":"stack.d.mts","sourceRoot":"","sources":["../src/stack.mts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAKH,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC,CAAC;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,UACpB,SAAS,WAAW,EAAE,iBACd,MAAM,KACpB,WAAW,CAAC,MAAM,EAAE,MAAM,CAmB5B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,YAClB,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,UAC5B,MAAM,KACb,SAAS,MAAM,EA4BjB,CAAC"}
package/dist/stack.mjs CHANGED
@@ -38,7 +38,6 @@ export const findStackParents = (pulls, defaultBranch) => {
38
38
 
39
39
 
40
40
 
41
-
42
41
  export const stackDescendants = (parents, number) => {
43
42
  const childrenOf = (n) => Array.from(parents)
44
43
  .filter(([, parent]) => parent === n)
@@ -1 +1 @@
1
- {"version":3,"file":"stack.mjs","sourceRoot":"","sources":["../src/stack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CAAC,KAAK,CAAC,CAAC,CAAC;QAE3C,KAAK,MAAM,KAAK,IAAI,IAAI,EAAE,CAAC;YACzB,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YAEpB,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACxB,CAAC;QAED,YAAY,GAAG,IAAI,CAAC;IACtB,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC"}
@@ -62,9 +62,9 @@ export declare const progressOf: (labels: readonly Readonly<{
62
62
  name: string;
63
63
  }>[], closedByOpenPull: boolean) => IssueProgress;
64
64
  /**
65
- * Whether `labels` holds `name`, whatever its case. GitHub's label names
66
- * are: adding `in-progress` to a repository that has `In-Progress` puts that
67
- * one on, so an exact match would not see the label it just added.
65
+ * Whether `labels` holds `name`, whatever its case. GitHub's label names are:
66
+ * adding `in-progress` to a repository that has `In-Progress` puts that one on,
67
+ * so an exact match would not see the label it just added.
68
68
  */
69
69
  export declare const hasLabel: (labels: readonly Readonly<{
70
70
  name: string;
@@ -78,9 +78,9 @@ export declare const issuesInProgress: (pulls: readonly Readonly<{
78
78
  }>[];
79
79
  }>[]) => ReadonlySet<number>;
80
80
  /**
81
- * What GitHub says about a numbered item, in the terms both of its APIs
82
- * share once lower-cased: GraphQL's `CLOSED` / `NOT_PLANNED` are REST's
83
- * `closed` / `not_planned`.
81
+ * What GitHub says about a numbered item, in the terms both of its APIs share
82
+ * once lower-cased: GraphQL's `CLOSED` / `NOT_PLANNED` are REST's `closed` /
83
+ * `not_planned`.
84
84
  */
85
85
  export type ReferencedFacts = Readonly<{
86
86
  kind: 'issue';
@@ -93,9 +93,8 @@ export type ReferencedFacts = Readonly<{
93
93
  merged: boolean;
94
94
  }>;
95
95
  /**
96
- * Where one named item stands. An issue closed with no reason recorded is
97
- * taken as completed, which was the only way to close one before reasons
98
- * existed.
96
+ * Where one named item stands. An issue closed with no reason recorded is taken
97
+ * as completed, which was the only way to close one before reasons existed.
99
98
  */
100
99
  export declare const referenceStatusOf: (facts: ReferencedFacts) => ReferenceStatus;
101
100
  /**
@@ -103,9 +102,9 @@ export declare const referenceStatusOf: (facts: ReferencedFacts) => ReferenceSta
103
102
  *
104
103
  * `statusOf` says where each named number stands; the open issues among
105
104
  * `issues` are `waiting` whatever it says, so a caller need only know about
106
- * what is not in the list. Cycles are found among the declarations of
107
- * `issues` alone: a pull request declares no `Start-After:`, and the body of
108
- * an issue that is not listed was not read.
105
+ * what is not in the list. Cycles are found among the declarations of `issues`
106
+ * alone: a pull request declares no `Start-After:`, and the body of an issue
107
+ * that is not listed was not read.
109
108
  *
110
109
  * Nothing is transitive: an issue that names an open one is blocked whatever
111
110
  * that one is waiting for in turn.
@@ -120,15 +119,15 @@ export declare const decideStartStates: (issues: readonly Readonly<{
120
119
  */
121
120
  export type InheritedOrder = Readonly<{
122
121
  /**
123
- * The open pull requests it merges after because of them, as if its body
124
- * had declared them: one an issue names, or one closing an open issue an
125
- * issue names. Lowest number first, and never itself.
122
+ * The open pull requests it merges after because of them, as if its body had
123
+ * declared them: one an issue names, or one closing an open issue an issue
124
+ * names. Lowest number first, and never itself.
126
125
  */
127
126
  mergeAfter: readonly number[];
128
127
  /**
129
- * The open issues named that no open pull request closes. They hold
130
- * nothing — waiting on work nobody has started could hold the merge for
131
- * ever — but they are not done, and a reader is told so. Lowest first.
128
+ * The open issues named that no open pull request closes. They hold nothing —
129
+ * waiting on work nobody has started could hold the merge for ever — but they
130
+ * are not done, and a reader is told so. Lowest first.
132
131
  */
133
132
  notStarted: readonly number[];
134
133
  }>;
@@ -136,9 +135,9 @@ export type InheritedOrder = Readonly<{
136
135
  * Each open pull request's {@link InheritedOrder}, keyed by its number.
137
136
  *
138
137
  * `closes` is the open issues each closes, by closing keyword or by GitHub's
139
- * own link; `startAfterOf` what each issue whose body was read declares, and
140
- * an issue missing from it declares nothing. `openIssues` is what is known to
141
- * be an open issue, which only decides what is reported as
138
+ * own link; `startAfterOf` what each issue whose body was read declares, and an
139
+ * issue missing from it declares nothing. `openIssues` is what is known to be
140
+ * an open issue, which only decides what is reported as
142
141
  * {@link InheritedOrder.notStarted}: anything named that is neither an open
143
142
  * pull request nor an open issue — merged, closed, unknown — constrains
144
143
  * nothing, since the issue's own start state is what asks for it to be looked
@@ -1 +1 @@
1
- {"version":3,"file":"start-after.d.mts","sourceRoot":"","sources":["../src/start-after.mts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH;;;;;;;;;;GAUG;AACH,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;AAE3E;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;AAE9E;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,SACb,MAAM,aACD,SAAS,MAAM,EAAE,KAC3B,SAAS,MAAM,EAAuD,CAAC;AAE1E;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG,aAAa,GAAG,SAAS,CAAC;AAErE;;;;;;;GAOG;AACH,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG,MAAM,GAAG,SAAS,CAAC;AAE/D;;;;GAIG;AACH,eAAO,MAAM,UAAU,WACb,SAAS,QAAQ,CAAC;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,EAAE,oBAC3B,OAAO,KACxB,aAKW,CAAC;AAEf;;;;GAIG;AACH,eAAO,MAAM,QAAQ,WACX,SAAS,QAAQ,CAAC;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,EAAE,QACvC,MAAM,KACX,OACsE,CAAC;AAE1E,yEAAyE;AACzE,eAAO,MAAM,YAAY,UAChB,UAAU,YACP,aAAa,KACtB,eAGQ,CAAC;AAEZ,wEAAwE;AACxE,eAAO,MAAM,gBAAgB,UACpB,SAAS,QAAQ,CAAC;IACvB,YAAY,EAAE,SAAS,QAAQ,CAAC;QAA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esInProgress = (pulls) => new Set(pulls.flatMap(({ linkedIssues
40
40
 
41
41
 
42
42
 
43
-
44
43
  export const referenceStatusOf = (facts) => {
45
44
  if (facts.state.toLowerCase() === 'open') {
46
45
  return 'waiting';
@@ -1 +1 @@
1
- {"version":3,"file":"start-after.mjs","sourceRoot":"","sources":["../src/start-after.mts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AA8B1E;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CACtB,IAAY,EACZ,SAA4B,EACT,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;AAoB1E;;;;GAIG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CACxB,MAA6C,EAC7C,gBAAyB,EACV,EAAE,CACjB,gBAAgB,IAAI,QAAQ,CAAC,MAAM,EAAE,iBAAiB,CAAC;IACrD,CAAC,CAAC,aAAa;IACf,CAAC,CAAC,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;QAC/B,CAAC,CAAC,SAAS;QACX,CAAC,CAAC,MAAM,CAAC;AAEf;;;;GAIG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CACtB,MAA6C,EAC7C,IAAY,EACH,EAAE,CACX,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;AAE1E,yEAAyE;AACzE,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,KAAiB,EACjB,QAAuB,EACN,EAAE,CACnB,QAAQ,KAAK,MAAM,I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,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,KAAK,IAAI,CAAC,CAC/C,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC;gBAC3B,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC;aACjD;SACO,CAAC;IACb,CAAC,CAAC,CACH,CAAC;AACJ,CAAC,CAAC"}
@@ -5,8 +5,8 @@ import type { ReportEntry, Summary } from './types.mjs';
5
5
  *
6
6
  * Here rather than in whoever displays it. Two of these are questions this
7
7
  * repository's conventions answer — `queued` is a label, and `failing` is the
8
- * verdict reached over the contexts the ruleset requires — and both
9
- * `pr-report` and the Pull Requests Manager page lead with them.
8
+ * verdict reached over the contexts the ruleset requires — and both `pr-report`
9
+ * and the Pull Requests Manager page lead with them.
10
10
  */
11
11
  export declare const summarize: (entries: readonly ReportEntry[]) => Summary;
12
12
  //# sourceMappingURL=summarize.d.mts.map
@@ -1,17 +1,17 @@
1
1
  /**
2
- * GitHub's timestamps, as the numbers the page and the claims
3
- * (`claim.mts`) do arithmetic with.
2
+ * GitHub's timestamps, as the numbers the page and the claims (`claim.mts`) do
3
+ * arithmetic with.
4
4
  */
5
5
  /**
6
- * Milliseconds since the epoch, or `undefined` for a string that is not
7
- * the one shape GitHub sends: `2026-09-24T09:39:18Z`, UTC, sometimes with a
8
- * fraction of a second.
6
+ * Milliseconds since the epoch, or `undefined` for a string that is not the one
7
+ * shape GitHub sends: `2026-09-24T09:39:18Z`, UTC, sometimes with a fraction of
8
+ * a second.
9
9
  *
10
- * Counted out field by field rather than handed to `Date`, whose parse is
11
- * left to the engine for anything but the exact format ECMAScript defines
12
- * and whose months count from zero, and rather than to `Temporal`, which not
13
- * every browser the page may be opened in has yet, nor every Node.js version
14
- * this package is tested on.
10
+ * Counted out field by field rather than handed to `Date`, whose parse is left
11
+ * to the engine for anything but the exact format ECMAScript defines and whose
12
+ * months count from zero, and rather than to `Temporal`, which not every
13
+ * browser the page may be opened in has yet, nor every Node.js version this
14
+ * package is tested on.
15
15
  */
16
16
  export declare const epochMsOf: (timestamp: string) => number | undefined;
17
17
  //# sourceMappingURL=timestamp.d.mts.map
package/dist/tree.d.mts CHANGED
@@ -17,11 +17,11 @@ export type Forest = Readonly<{
17
17
  * nothing and is dropped — the pull request it named has merged, which is
18
18
  * exactly the constraint being satisfied.
19
19
  *
20
- * Two things a forest cannot hold are handled rather than drawn. A pull
21
- * request that declared several predecessors appears under each of them, but
22
- * is expanded under the first only ({@link TreeNode.repeated} marks the rest),
23
- * so a diamond does not duplicate everything below it. A pull request on a
24
- * cycle is left out altogether and reported through {@link Forest.cycles}:
20
+ * Two things a forest cannot hold are handled rather than drawn. A pull request
21
+ * that declared several predecessors appears under each of them, but is
22
+ * expanded under the first only ({@link TreeNode.repeated} marks the rest), so
23
+ * a diamond does not duplicate everything below it. A pull request on a cycle
24
+ * is left out altogether and reported through {@link Forest.cycles}:
25
25
  * every member of a cycle waits, in the end, for itself, so there is no
26
26
  * position in a merge order to draw it at.
27
27
  */