pr-report-core 0.2.0 → 0.2.1

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 (77) hide show
  1. package/dist/checks.d.mts +61 -62
  2. package/dist/checks.d.mts.map +1 -1
  3. package/dist/checks.mjs +0 -1
  4. package/dist/checks.mjs.map +1 -1
  5. package/dist/claim.d.mts +13 -14
  6. package/dist/claim.d.mts.map +1 -1
  7. package/dist/claim.mjs +0 -1
  8. package/dist/claim.mjs.map +1 -1
  9. package/dist/closing-issues.d.mts +18 -19
  10. package/dist/closing-issues.d.mts.map +1 -1
  11. package/dist/closing-issues.mjs +0 -1
  12. package/dist/closing-issues.mjs.map +1 -1
  13. package/dist/code-owners.d.mts +33 -34
  14. package/dist/code-owners.d.mts.map +1 -1
  15. package/dist/code-owners.mjs +0 -2
  16. package/dist/code-owners.mjs.map +1 -1
  17. package/dist/labels.d.mts +38 -40
  18. package/dist/labels.d.mts.map +1 -1
  19. package/dist/labels.mjs +0 -2
  20. package/dist/labels.mjs.map +1 -1
  21. package/dist/merge-after.d.mts +22 -16
  22. package/dist/merge-after.d.mts.map +1 -1
  23. package/dist/merge-after.mjs +87 -24
  24. package/dist/merge-after.mjs.map +1 -1
  25. package/dist/queue-comments.d.mts +2 -2
  26. package/dist/queue-order.d.mts +32 -32
  27. package/dist/queue-order.mjs +0 -2
  28. package/dist/queue-order.mjs.map +1 -1
  29. package/dist/queue-owner.d.mts +13 -13
  30. package/dist/queue-owner.mjs.map +1 -1
  31. package/dist/report.d.mts +4 -4
  32. package/dist/review-hold.d.mts +14 -14
  33. package/dist/ruleset.d.mts +10 -11
  34. package/dist/ruleset.d.mts.map +1 -1
  35. package/dist/ruleset.mjs +0 -1
  36. package/dist/ruleset.mjs.map +1 -1
  37. package/dist/set-aside.d.mts +28 -28
  38. package/dist/stack.d.mts +14 -15
  39. package/dist/stack.d.mts.map +1 -1
  40. package/dist/stack.mjs +0 -1
  41. package/dist/stack.mjs.map +1 -1
  42. package/dist/start-after.d.mts +20 -21
  43. package/dist/start-after.d.mts.map +1 -1
  44. package/dist/start-after.mjs +0 -1
  45. package/dist/start-after.mjs.map +1 -1
  46. package/dist/summarize.d.mts +2 -2
  47. package/dist/timestamp.d.mts +10 -10
  48. package/dist/tree.d.mts +5 -5
  49. package/dist/types.d.mts +32 -33
  50. package/dist/types.d.mts.map +1 -1
  51. package/package.json +8 -8
  52. package/src/checks.mts +64 -65
  53. package/src/checks.test.mts +30 -31
  54. package/src/claim.mts +13 -14
  55. package/src/closing-issues.mts +18 -19
  56. package/src/closing-issues.test.mts +2 -2
  57. package/src/code-owners.mts +39 -41
  58. package/src/labels.mts +38 -40
  59. package/src/merge-after.mts +142 -49
  60. package/src/merge-after.test.mts +80 -3
  61. package/src/queue-comments.mts +2 -2
  62. package/src/queue-order.mts +60 -62
  63. package/src/queue-order.test.mts +6 -6
  64. package/src/queue-owner.mts +25 -25
  65. package/src/queue-owner.test.mts +2 -2
  66. package/src/report.mts +9 -9
  67. package/src/review-hold.mts +14 -14
  68. package/src/review-hold.test.mts +3 -3
  69. package/src/ruleset.mts +10 -11
  70. package/src/set-aside.mts +28 -28
  71. package/src/stack.mts +14 -15
  72. package/src/stack.test.mts +4 -4
  73. package/src/start-after.mts +20 -21
  74. package/src/summarize.mts +2 -2
  75. package/src/timestamp.mts +14 -14
  76. package/src/tree.mts +5 -5
  77. package/src/types.mts +32 -33
@@ -2,26 +2,26 @@
2
2
  * Who is to move each pull request in the queue next: the worker
3
3
  * (`pnpm run unblock-prs`), a skill, a person, or — which is a bug — nobody.
4
4
  *
5
- * The worker and the `/unblock-prs` skill move the same queue side by side
6
- * and cannot see each other. Each used to decide for itself whether a
5
+ * The worker and the `/unblock-prs` skill move the same queue side by side and
6
+ * cannot see each other. Each used to decide for itself whether a
7
7
  * set-aside still stood, from its own reading of the tip of the default
8
- * branch, and when the two readings differed each left the pull request to
9
- * the other (#2267). So the answer is decided here, once, and every reader
10
- * asks this function: the worker before it acts, `pr-report` for the skill,
8
+ * branch, and when the two readings differed each left the pull request to the
9
+ * other (#2267). So the answer is decided here, once, and every reader asks
10
+ * this function: the worker before it acts, `pr-report` for the skill,
11
11
  * `claim-pr` before it lets a claim be written, and `report-unowned-prs` to
12
12
  * turn `none` into an issue.
13
13
  *
14
14
  * **It reads the comments and the pull request, never the tip of the base.**
15
- * The set-aside comment is the hand-off: it stands until the worker rewrites
16
- * it as resolved — when the head moves, when a retry is asked for, or, for a
15
+ * The set-aside comment is the hand-off: it stands until the worker rewrites it
16
+ * as resolved — when the head moves, when a retry is asked for, or, for a
17
17
  * reason tied to the base, when the base moves and the worker takes the pull
18
- * request back to try again. Until then it is the skill's or a person's, and
19
- * a worker that has stopped running leaves it so rather than nobody's.
18
+ * request back to try again. Until then it is the skill's or a person's, and a
19
+ * worker that has stopped running leaves it so rather than nobody's.
20
20
  *
21
21
  * **Every reason the worker sets aside for has an owner**
22
22
  * ({@link setAsideOwner}, exhaustive over {@link SET_ASIDE_REASONS}), so `none`
23
- * is only ever a combination nothing here expected: a reason this module
24
- * does not know, written by a worker newer than the reader.
23
+ * is only ever a combination nothing here expected: a reason this module does
24
+ * not know, written by a worker newer than the reader.
25
25
  */
26
26
  import { type ClaimComment } from './claim.mjs';
27
27
  import type { QueueComments } from './queue-comments.mjs';
@@ -30,8 +30,8 @@ import type { ReportEntry } from './types.mjs';
30
30
  export declare const QUEUE_OWNERS: readonly ['worker', 'skill', 'human', 'none'];
31
31
  /**
32
32
  * `skill` is the `/unblock-prs` skill, which fixes every queued pull request
33
- * the worker sets aside — a branch the repository generates included, which
34
- * it builds again rather than rebases (`generatedBranches` in
33
+ * the worker sets aside — a branch the repository generates included, which it
34
+ * builds again rather than rebases (`generatedBranches` in
35
35
  * `.github/unblock-prs.json`).
36
36
  */
37
37
  export type QueueOwner = Readonly<{
@@ -1 +1 @@
1
- {"version":3,"file":"queue-owner.mjs","sourceRoot":"","sources":["../src/queue-owner.mts"],"names":[],"mappings":"A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CAAC,mDAAmD;QACrD,CAAC,CAAC,SAAS,CAAC"}
package/dist/report.d.mts CHANGED
@@ -4,8 +4,8 @@ import type { IssueDeclarations, MergedPullRequest, OpenIssue, PrReport, PullReq
4
4
  /**
5
5
  * Reads the declared merge order and the check verdicts out of the facts.
6
6
  *
7
- * Nothing here talks to GitHub, which is what lets the whole shape of a
8
- * report be tested against a handful of literals.
7
+ * Nothing here talks to GitHub, which is what lets the whole shape of a report
8
+ * be tested against a handful of literals.
9
9
  */
10
10
  export declare const buildReport: ({ repo, defaultBranch, generatedAt, required, authenticated, pulls, merged, mergedWithinDays, issues, issuesLimit, issueDeclarations, references, }: Readonly<{
11
11
  repo: RepoRef;
@@ -34,8 +34,8 @@ export declare const buildReport: ({ repo, defaultBranch, generatedAt, required,
34
34
  export declare const buildEntries: ({ required, defaultBranch, pulls, issues, skipCiPauses, }: Readonly<{
35
35
  /**
36
36
  * The contexts the ruleset requires, or `undefined` for a repository that
37
- * declares none: each pull request is then judged over every context
38
- * reported on its head.
37
+ * declares none: each pull request is then judged over every context reported
38
+ * on its head.
39
39
  */
40
40
  required: readonly string[] | undefined;
41
41
  defaultBranch: string;
@@ -5,18 +5,18 @@
5
5
  * `main`'s ruleset asks for two things no check reports: an approval from a
6
6
  * code owner of every owned path the pull request touches, and every review
7
7
  * conversation resolved. A queued pull request missing either goes green and
8
- * sits there, and a rebase cannot change that. Released anyway, it costs a
9
- * full matrix and holds the queue for the length of a watch; and because
10
- * `main` moving is what puts it back in the running, it would be rebased and
11
- * run again every time anything else merged. So triage reads both before
12
- * picking, and leaves a pull request they hold in the queue with a note,
13
- * until an approval or a resolved conversation changes the answer.
8
+ * sits there, and a rebase cannot change that. Released anyway, it costs a full
9
+ * matrix and holds the queue for the length of a watch; and because `main`
10
+ * moving is what puts it back in the running, it would be rebased and run again
11
+ * every time anything else merged. So triage reads both before picking, and
12
+ * leaves a pull request they hold in the queue with a note, until an approval
13
+ * or a resolved conversation changes the answer.
14
14
  *
15
15
  * Except when nothing can change it: GitHub does not let an author approve
16
16
  * their own pull request, so one whose waiting paths only its author owns
17
- * merges by a ruleset bypass or not at all. Holding that one would hold it
18
- * for ever, with `skip-ci` on and no verdict for whoever makes the bypass
19
- * merge to go by. So it is released and watched like any other, with
17
+ * merges by a ruleset bypass or not at all. Holding that one would hold it for
18
+ * ever, with `skip-ci` on and no verdict for whoever makes the bypass merge to
19
+ * go by. So it is released and watched like any other, with
20
20
  * auto-merge left off — it could never fire — until its checks report, and
21
21
  * then left for that person (`awaiting-bypass`).
22
22
  *
@@ -46,11 +46,11 @@ export type ReviewRules = Readonly<{
46
46
  codeOwners: readonly CodeOwnersRule[];
47
47
  }>;
48
48
  /**
49
- * What the review does to the pull request: `held` waits for an approval or
50
- * a resolved conversation, `bypass` waits for nobody — only its author owns
51
- * what is waiting — and `undefined` holds nothing. What cannot be told for
52
- * sure — changed files past what could be read — holds nothing: the watch
53
- * still catches a pull request that goes green and does not merge, and
49
+ * What the review does to the pull request: `held` waits for an approval or a
50
+ * resolved conversation, `bypass` waits for nobody — only its author owns what
51
+ * is waiting — and `undefined` holds nothing. What cannot be told for sure —
52
+ * changed files past what could be read — holds nothing: the watch still
53
+ * catches a pull request that goes green and does not merge, and
54
54
  * `demotions.mts` is what follows.
55
55
  */
56
56
  export type ReviewHold = Readonly<{
@@ -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. */
@@ -19,11 +19,10 @@ export type RulesetRequirements = Readonly<{
19
19
  * `pnpm run pr-report`, which reads the checkout. The file is the desired
20
20
  * state; what GitHub enforces is {@link requirementsOfRules} over
21
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.
22
+ * Manager read and which wants no more than read access. The gap is that a file
23
+ * under `repo-settings/` changes nothing until `pnpm run repo-settings:apply`
24
+ * runs, so a context added here and not applied is reported as missing on every
25
+ * pull 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,MAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG7B,CAAC;AAEH,QAAA,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,KAA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AAsB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;KACnE,CAAC;CACH,CAAC,CAAC;AAEH,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,IAAI,EAAE,CAAC,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,11 @@ 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.
97
97
  */
98
98
  export declare const setAsideStillApplies: (setAside: Readonly<{
99
99
  reason: string;
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":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,GAAG,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,CA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@ export const issuesInProgress = (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,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U,CAAC,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
  */