@codedrifters/configulator 0.0.222 → 0.0.223
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +347 -1
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +347 -1
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -5454,6 +5454,81 @@ var prReviewerSubAgent = {
|
|
|
5454
5454
|
"gh issue view <issue-number> --json number,title,body,labels,state,issueType",
|
|
5455
5455
|
"```",
|
|
5456
5456
|
"",
|
|
5457
|
+
"## Phase 2.5: Gather Comments",
|
|
5458
|
+
"",
|
|
5459
|
+
"Before deciding review mode, collect every human comment on the PR so",
|
|
5460
|
+
"that Phase 3.5 can classify each one and Phase 4.5 can render the",
|
|
5461
|
+
"sticky **Reviewer notes** summary. GitHub exposes PR comments across",
|
|
5462
|
+
"three distinct endpoints; the reviewer merges all three into a single",
|
|
5463
|
+
"queue.",
|
|
5464
|
+
"",
|
|
5465
|
+
"### Step 1: Fetch all three comment sources",
|
|
5466
|
+
"",
|
|
5467
|
+
"```bash",
|
|
5468
|
+
"# PR-level issue comments (top-level discussion thread)",
|
|
5469
|
+
"gh pr view <pr-number> --json comments",
|
|
5470
|
+
"",
|
|
5471
|
+
"# Inline code-review comments (line-anchored in the diff)",
|
|
5472
|
+
"gh api repos/{{repository.owner}}/{{repository.name}}/pulls/<pr-number>/comments",
|
|
5473
|
+
"",
|
|
5474
|
+
"# Formal review bodies and their APPROVED / CHANGES_REQUESTED / COMMENTED state",
|
|
5475
|
+
"gh api repos/{{repository.owner}}/{{repository.name}}/pulls/<pr-number>/reviews",
|
|
5476
|
+
"```",
|
|
5477
|
+
"",
|
|
5478
|
+
"For each item, capture: the comment id, author login, body, creation",
|
|
5479
|
+
"time, the URL, and any reactions already present (including which",
|
|
5480
|
+
"reactions the reviewer itself has previously applied). For inline",
|
|
5481
|
+
"review comments, also capture the thread / conversation resolution",
|
|
5482
|
+
"state so Step 2 can drop resolved threads.",
|
|
5483
|
+
"",
|
|
5484
|
+
"### Step 2: Apply filtering rules",
|
|
5485
|
+
"",
|
|
5486
|
+
"Drop a comment from classification when **any** of the following hold:",
|
|
5487
|
+
"",
|
|
5488
|
+
"1. **Reviewer's own comments.** The author login matches the invoking",
|
|
5489
|
+
" agent identity (for example, the bot account used to post prior",
|
|
5490
|
+
" reviewer replies, sticky summaries, or fix-list comments). The",
|
|
5491
|
+
" reviewer never classifies or reacts to its own output.",
|
|
5492
|
+
"2. **Bot authors.** The author login matches `*[bot]` \u2014 CI bots,",
|
|
5493
|
+
" Dependabot, CodeRabbit, GitHub Actions, and similar automation.",
|
|
5494
|
+
"3. **Terminal reviewer reactions already present.** The comment",
|
|
5495
|
+
" already carries a reaction **authored by the reviewer** in the set",
|
|
5496
|
+
" `+1` (accepted), `rocket` (landed), or `-1` (declined as",
|
|
5497
|
+
" out-of-scope). These signal the item has reached a terminal state",
|
|
5498
|
+
" on a previous pass and requires no further action.",
|
|
5499
|
+
"4. **Resolved threads.** Inline comments belonging to a conversation",
|
|
5500
|
+
" that GitHub marks as resolved.",
|
|
5501
|
+
"",
|
|
5502
|
+
"A comment whose only reviewer-authored reaction is `eyes` is **not**",
|
|
5503
|
+
'terminal. `eyes` means "seen on a previous pass but not yet resolved"',
|
|
5504
|
+
"\u2014 keep it in the queue so Phase 3.5 can re-evaluate and possibly",
|
|
5505
|
+
"promote it to a terminal state once the corresponding action",
|
|
5506
|
+
"completes.",
|
|
5507
|
+
"",
|
|
5508
|
+
"A comment whose only reviewer-authored reaction is `thinking_face` is",
|
|
5509
|
+
"also **not** terminal \u2014 it indicates an open dispute the reviewer",
|
|
5510
|
+
"raised on a prior pass that has not yet been resolved by the human.",
|
|
5511
|
+
"Phase 4 uses the presence of unresolved `thinking_face` reactions as",
|
|
5512
|
+
"the pushback gate.",
|
|
5513
|
+
"",
|
|
5514
|
+
"### Step 3: Record the gathered set",
|
|
5515
|
+
"",
|
|
5516
|
+
"Persist the filtered comment list in memory for Phase 3.5 and Phase",
|
|
5517
|
+
"4.5. For each surviving comment record at minimum:",
|
|
5518
|
+
"",
|
|
5519
|
+
"```",
|
|
5520
|
+
"- id: <comment or review id>",
|
|
5521
|
+
" source: <pr-comment | inline-comment | review-body>",
|
|
5522
|
+
" author: <login>",
|
|
5523
|
+
" url: <html_url>",
|
|
5524
|
+
" body: <text>",
|
|
5525
|
+
" reactions: <list of reactions with authors>",
|
|
5526
|
+
"```",
|
|
5527
|
+
"",
|
|
5528
|
+
"If there are no unhandled comments after filtering, record that fact",
|
|
5529
|
+
"and proceed \u2014 Phase 3.5 will short-circuit, and the Phase 4.5 sticky",
|
|
5530
|
+
"summary will simply list no outstanding items.",
|
|
5531
|
+
"",
|
|
5457
5532
|
"## Phase 2.75: Determine Review Mode",
|
|
5458
5533
|
"",
|
|
5459
5534
|
"Before comparing the diff to the acceptance criteria, evaluate the PR",
|
|
@@ -5542,8 +5617,175 @@ var prReviewerSubAgent = {
|
|
|
5542
5617
|
"- **CI status** \u2014 `gh pr checks` reports all required checks passing",
|
|
5543
5618
|
"- **Scope creep** \u2014 diff stays within the issue's stated scope",
|
|
5544
5619
|
"",
|
|
5620
|
+
"## Phase 3.5: Classify Comments",
|
|
5621
|
+
"",
|
|
5622
|
+
"For every comment that survived Phase 2.5 filtering, assign exactly",
|
|
5623
|
+
"one classification and take the corresponding action. The reviewer",
|
|
5624
|
+
"acts only on unhandled comments; anything already in a terminal state",
|
|
5625
|
+
"was dropped in Phase 2.5 and is left alone.",
|
|
5626
|
+
"",
|
|
5627
|
+
"### Classifications",
|
|
5628
|
+
"",
|
|
5629
|
+
"#### `in-scope`",
|
|
5630
|
+
"",
|
|
5631
|
+
"The comment requests a change that falls **inside** the linked",
|
|
5632
|
+
"issue's acceptance criteria (or is an obvious defect in code the PR",
|
|
5633
|
+
"itself introduced).",
|
|
5634
|
+
"",
|
|
5635
|
+
"Action on this pass:",
|
|
5636
|
+
"",
|
|
5637
|
+
"- React `eyes` on the comment to mark it seen.",
|
|
5638
|
+
"- Queue the comment for later delegation. **Delegation wiring is out",
|
|
5639
|
+
" of scope for this phase** \u2014 the fix-list comment and the",
|
|
5640
|
+
" issue-worker hand-off land in a follow-up issue. For now, record",
|
|
5641
|
+
" the queued items in memory so Phase 4.5 can list them as",
|
|
5642
|
+
" outstanding.",
|
|
5643
|
+
"- Do **not** apply `+1` or `rocket` yet. Those are terminal",
|
|
5644
|
+
" reactions reserved for later passes once the fix has been accepted",
|
|
5645
|
+
" into the PR (`+1`) and actually landed on the branch (`rocket`).",
|
|
5646
|
+
"",
|
|
5647
|
+
"```bash",
|
|
5648
|
+
"# React eyes on a PR-level issue comment",
|
|
5649
|
+
"gh api repos/{{repository.owner}}/{{repository.name}}/issues/comments/<comment-id>/reactions \\",
|
|
5650
|
+
" -X POST -f content=eyes",
|
|
5651
|
+
"",
|
|
5652
|
+
"# React eyes on an inline code-review comment",
|
|
5653
|
+
"gh api repos/{{repository.owner}}/{{repository.name}}/pulls/comments/<comment-id>/reactions \\",
|
|
5654
|
+
" -X POST -f content=eyes",
|
|
5655
|
+
"```",
|
|
5656
|
+
"",
|
|
5657
|
+
"#### `out-of-scope`",
|
|
5658
|
+
"",
|
|
5659
|
+
"The comment requests work that falls **outside** the linked issue's",
|
|
5660
|
+
"acceptance criteria \u2014 new functionality, a refactor that would",
|
|
5661
|
+
"expand the diff, a cleanup in a neighbouring module, and so on. It",
|
|
5662
|
+
"is a legitimate request, just not for this PR.",
|
|
5663
|
+
"",
|
|
5664
|
+
"Action:",
|
|
5665
|
+
"",
|
|
5666
|
+
"1. Create a new tracking issue following the `Create Issue Workflow`",
|
|
5667
|
+
" in CLAUDE.md. Derive the title prefix (`feat:`, `fix:`, `chore:`,",
|
|
5668
|
+
" etc.) from the content of the comment. Apply the correct",
|
|
5669
|
+
" `type:*`, `priority:*`, and `status:*` labels and assign the",
|
|
5670
|
+
" GitHub issue type via the documented GraphQL mutation.",
|
|
5671
|
+
"2. Reply to the original comment with a link to the new issue:",
|
|
5672
|
+
" `Tracked separately in #<new-issue>.`",
|
|
5673
|
+
"3. React `-1` on the original comment. `-1` is the terminal",
|
|
5674
|
+
" reaction for out-of-scope and is only applied **after** the new",
|
|
5675
|
+
" issue has been successfully created and the reply posted.",
|
|
5676
|
+
"",
|
|
5677
|
+
"```bash",
|
|
5678
|
+
"# Reply on the same thread",
|
|
5679
|
+
"gh pr comment <pr-number> --body 'Tracked separately in #<new-issue>.'",
|
|
5680
|
+
"",
|
|
5681
|
+
"# React -1 on the original comment once the new issue exists",
|
|
5682
|
+
"gh api repos/{{repository.owner}}/{{repository.name}}/issues/comments/<comment-id>/reactions \\",
|
|
5683
|
+
" -X POST -f content=-1",
|
|
5684
|
+
"```",
|
|
5685
|
+
"",
|
|
5686
|
+
"#### `dispute`",
|
|
5687
|
+
"",
|
|
5688
|
+
"The comment conflicts with an acceptance criterion, a documented",
|
|
5689
|
+
"CLAUDE.md convention, or the project-context doc; or it is ambiguous",
|
|
5690
|
+
"enough that implementation would require guessing at intent. The",
|
|
5691
|
+
"reviewer pushes back rather than silently complying.",
|
|
5692
|
+
"",
|
|
5693
|
+
"Action:",
|
|
5694
|
+
"",
|
|
5695
|
+
"1. React `thinking_face` on the comment to mark it as disputed.",
|
|
5696
|
+
" This reaction is **not** terminal \u2014 it persists until the human",
|
|
5697
|
+
" resolves the dispute.",
|
|
5698
|
+
"2. Post a reply on the same thread explaining the pushback. Cite",
|
|
5699
|
+
" the specific acceptance criterion, convention, or project-context",
|
|
5700
|
+
" section that the comment conflicts with, or name the ambiguity",
|
|
5701
|
+
" that needs resolution.",
|
|
5702
|
+
"3. The presence of an unresolved `thinking_face` reaction by the",
|
|
5703
|
+
" reviewer blocks auto-merge in Phase 4 regardless of the review",
|
|
5704
|
+
" mode decided in Phase 2.75.",
|
|
5705
|
+
"",
|
|
5706
|
+
"```bash",
|
|
5707
|
+
"# React thinking_face on the disputed comment",
|
|
5708
|
+
"gh api repos/{{repository.owner}}/{{repository.name}}/issues/comments/<comment-id>/reactions \\",
|
|
5709
|
+
" -X POST -f content=confused",
|
|
5710
|
+
"",
|
|
5711
|
+
"# Post the pushback reply",
|
|
5712
|
+
"gh pr comment <pr-number> --body '<pushback explanation>'",
|
|
5713
|
+
"```",
|
|
5714
|
+
"",
|
|
5715
|
+
"Note: GitHub's reactions API uses `confused` as the content string",
|
|
5716
|
+
"for the `thinking_face` reaction; use `content=confused` when",
|
|
5717
|
+
"POSTing the reaction.",
|
|
5718
|
+
"",
|
|
5719
|
+
"#### `nit` / `question`",
|
|
5720
|
+
"",
|
|
5721
|
+
"The comment is a minor stylistic preference, a clarifying question",
|
|
5722
|
+
"with a short answer, or a drive-by note that does not request a",
|
|
5723
|
+
"code change.",
|
|
5724
|
+
"",
|
|
5725
|
+
"Action:",
|
|
5726
|
+
"",
|
|
5727
|
+
"- React `eyes` to mark the comment seen.",
|
|
5728
|
+
"- Optionally post a brief reply when the question has a short,",
|
|
5729
|
+
" factual answer. Skip the reply when there is nothing useful to",
|
|
5730
|
+
" add \u2014 an `eyes` reaction alone is sufficient.",
|
|
5731
|
+
"- Never apply `+1`, `rocket`, or `-1` to a `nit` / `question`",
|
|
5732
|
+
" comment; those reactions are reserved for their documented",
|
|
5733
|
+
" terminal meanings.",
|
|
5734
|
+
"",
|
|
5735
|
+
"### Reaction protocol summary",
|
|
5736
|
+
"",
|
|
5737
|
+
"| Reaction | Meaning | Terminal? |",
|
|
5738
|
+
"|----------|---------|-----------|",
|
|
5739
|
+
"| `eyes` | Seen by reviewer; awaiting further action | No |",
|
|
5740
|
+
"| `thinking_face` (`confused`) | Reviewer disputes this comment | No |",
|
|
5741
|
+
"| `+1` | Reviewer accepts the comment's request | **Yes** |",
|
|
5742
|
+
"| `rocket` | The accepted change has landed on the branch | **Yes** |",
|
|
5743
|
+
"| `-1` | Reviewer declined as out-of-scope; tracked in a new issue | **Yes** |",
|
|
5744
|
+
"",
|
|
5745
|
+
"Terminal reactions (`+1`, `rocket`, `-1`) **must only be applied**",
|
|
5746
|
+
"when the corresponding action is truly complete:",
|
|
5747
|
+
"",
|
|
5748
|
+
"- `+1` \u2014 only after the reviewer has confirmed the comment's",
|
|
5749
|
+
" request is in-scope and the fix has been accepted for this PR.",
|
|
5750
|
+
"- `rocket` \u2014 only after the accepted fix has actually landed on the",
|
|
5751
|
+
" PR's branch (a commit addressing the comment is present).",
|
|
5752
|
+
"- `-1` \u2014 only after a new tracking issue has been successfully",
|
|
5753
|
+
" created for the out-of-scope request and the reply linking to it",
|
|
5754
|
+
" has been posted.",
|
|
5755
|
+
"",
|
|
5756
|
+
"Never pre-emptively apply a terminal reaction. Applying one signals",
|
|
5757
|
+
"to humans and to future reviewer passes that the item is closed;",
|
|
5758
|
+
"applying it early creates a false record of completion.",
|
|
5759
|
+
"",
|
|
5545
5760
|
"## Phase 4: Decide and Act",
|
|
5546
5761
|
"",
|
|
5762
|
+
"### Pushback gate (runs before every merge decision)",
|
|
5763
|
+
"",
|
|
5764
|
+
"Before taking any merge-enabling action in this phase, verify that no",
|
|
5765
|
+
"**unresolved `thinking_face` reactions by the reviewer** remain on",
|
|
5766
|
+
"any comment gathered in Phase 2.5.",
|
|
5767
|
+
"",
|
|
5768
|
+
"A `thinking_face` reaction is considered **unresolved** when:",
|
|
5769
|
+
"",
|
|
5770
|
+
"- The reviewer applied it on this pass or a prior pass, and",
|
|
5771
|
+
"- The underlying comment has not since received a resolution signal",
|
|
5772
|
+
" from the human \u2014 for example, the comment has not been withdrawn,",
|
|
5773
|
+
" the human has not posted a clarifying reply that the reviewer has",
|
|
5774
|
+
" since marked `+1`, and no `review:auto-ok` label has been applied",
|
|
5775
|
+
" to the PR as an explicit override.",
|
|
5776
|
+
"",
|
|
5777
|
+
"If any unresolved `thinking_face` reaction exists, **do not enable",
|
|
5778
|
+
"auto-merge** and **do not apply `review:awaiting-human` as a success",
|
|
5779
|
+
"hand-off**. This gate fires regardless of the review mode decided in",
|
|
5780
|
+
"Phase 2.75 \u2014 pushback blocks the merge pathway even when the mode is",
|
|
5781
|
+
"`auto-merge`. Skip straight to Phase 4.5 to update the sticky summary",
|
|
5782
|
+
"with the outstanding pushbacks, then stop. A downstream issue",
|
|
5783
|
+
"refines this gate further; for now, pushback simply blocks the",
|
|
5784
|
+
"merge pathway.",
|
|
5785
|
+
"",
|
|
5786
|
+
"If no unresolved `thinking_face` reactions exist, proceed with the",
|
|
5787
|
+
"branches below based on the review mode decided in Phase 2.75.",
|
|
5788
|
+
"",
|
|
5547
5789
|
"### If all acceptance criteria are met and CI is green",
|
|
5548
5790
|
"",
|
|
5549
5791
|
"Branch on the **review mode** decided in Phase 2.75:",
|
|
@@ -5601,6 +5843,82 @@ var prReviewerSubAgent = {
|
|
|
5601
5843
|
"--request-changes`: it is lighter-weight, doesn't require the author to",
|
|
5602
5844
|
"dismiss a formal review, and composes cleanly with the multi-PR loop.",
|
|
5603
5845
|
"",
|
|
5846
|
+
"## Phase 4.5: Update Sticky Summary",
|
|
5847
|
+
"",
|
|
5848
|
+
"On **every pass**, create or update a single **`## Reviewer notes`**",
|
|
5849
|
+
"comment on the PR. This sticky comment is the human-facing single",
|
|
5850
|
+
"source of truth for the PR's state \u2014 one comment per PR, edited in",
|
|
5851
|
+
"place across passes, never duplicated. Do not post a fresh",
|
|
5852
|
+
'"pass N summary" on each iteration.',
|
|
5853
|
+
"",
|
|
5854
|
+
"### Step 1: Find the existing sticky comment (if any)",
|
|
5855
|
+
"",
|
|
5856
|
+
"List PR-level comments and look for one authored by the reviewer",
|
|
5857
|
+
"whose body starts with `## Reviewer notes`:",
|
|
5858
|
+
"",
|
|
5859
|
+
"```bash",
|
|
5860
|
+
"gh api repos/{{repository.owner}}/{{repository.name}}/issues/<pr-number>/comments",
|
|
5861
|
+
"```",
|
|
5862
|
+
"",
|
|
5863
|
+
"If multiple candidates exist (an older run double-posted before this",
|
|
5864
|
+
"phase existed), keep the earliest and plan to delete the duplicates",
|
|
5865
|
+
"on a later pass. Never delete another author's comment.",
|
|
5866
|
+
"",
|
|
5867
|
+
"### Step 2: Compose the sticky body",
|
|
5868
|
+
"",
|
|
5869
|
+
"The body uses the following shape:",
|
|
5870
|
+
"",
|
|
5871
|
+
"```",
|
|
5872
|
+
"## Reviewer notes",
|
|
5873
|
+
"",
|
|
5874
|
+
"**Mode:** auto-merge | human-required \u2014 <reason from Phase 2.75>",
|
|
5875
|
+
"**AC status:** <met / partial / missing> (evidence links)",
|
|
5876
|
+
"**CI status:** green | pending | red",
|
|
5877
|
+
"**Outstanding:** <list of comments still open with their classification and author>",
|
|
5878
|
+
"**Pushbacks:** <list of disputes with reasons>",
|
|
5879
|
+
"**Last pass:** <ISO timestamp>",
|
|
5880
|
+
"```",
|
|
5881
|
+
"",
|
|
5882
|
+
"Populate each field from the phases above:",
|
|
5883
|
+
"",
|
|
5884
|
+
"- **Mode / reason** \u2014 the mode and reason recorded in Phase 2.75.",
|
|
5885
|
+
"- **AC status** \u2014 the checklist produced in Phase 3 (met, partial,",
|
|
5886
|
+
" or missing), with links to the files or tests that provide the",
|
|
5887
|
+
" evidence.",
|
|
5888
|
+
"- **CI status** \u2014 derived from `gh pr checks`.",
|
|
5889
|
+
"- **Outstanding** \u2014 the comments still carrying a non-terminal",
|
|
5890
|
+
" reviewer reaction from Phase 3.5 (typically `eyes` for queued",
|
|
5891
|
+
" in-scope items and `nit` / `question` items that remain open).",
|
|
5892
|
+
" List each as `<classification>: <author> \u2014 <short summary> (<url>)`.",
|
|
5893
|
+
"- **Pushbacks** \u2014 every comment the reviewer reacted",
|
|
5894
|
+
" `thinking_face` to on this or any prior pass, with the reason",
|
|
5895
|
+
" captured in the pushback reply. Empty list when there are none.",
|
|
5896
|
+
"- **Last pass** \u2014 the ISO 8601 timestamp of this run.",
|
|
5897
|
+
"",
|
|
5898
|
+
"### Step 3: Create or edit in place",
|
|
5899
|
+
"",
|
|
5900
|
+
"If no existing sticky comment was found in Step 1, create one:",
|
|
5901
|
+
"",
|
|
5902
|
+
"```bash",
|
|
5903
|
+
"gh pr comment <pr-number> --body '<sticky body>'",
|
|
5904
|
+
"```",
|
|
5905
|
+
"",
|
|
5906
|
+
"If an existing sticky comment was found, edit it in place using the",
|
|
5907
|
+
"comment id. Do not delete and re-create \u2014 editing preserves the",
|
|
5908
|
+
"comment's URL and any reactions humans have added to the summary:",
|
|
5909
|
+
"",
|
|
5910
|
+
"```bash",
|
|
5911
|
+
"gh api repos/{{repository.owner}}/{{repository.name}}/issues/comments/<sticky-comment-id> \\",
|
|
5912
|
+
" -X PATCH -f body='<sticky body>'",
|
|
5913
|
+
"```",
|
|
5914
|
+
"",
|
|
5915
|
+
"The sticky summary must be updated on every pass through Phase 4.5,",
|
|
5916
|
+
"including passes that ended in a pushback-gated skip, a",
|
|
5917
|
+
"`NEEDS_CHANGES` findings comment, or the `human-required` hand-off.",
|
|
5918
|
+
"Humans rely on the sticky comment to see the current state of the",
|
|
5919
|
+
"PR at a glance \u2014 it must never go stale while the reviewer is",
|
|
5920
|
+
"actively processing the PR.",
|
|
5921
|
+
"",
|
|
5604
5922
|
"## Phase 5: Branch Cleanup and Issue Closure Verification",
|
|
5605
5923
|
"",
|
|
5606
5924
|
"Skip this phase entirely when the review mode from Phase 2.75 is",
|
|
@@ -5695,7 +6013,35 @@ var prReviewerSubAgent = {
|
|
|
5695
6013
|
"8. **In loop mode (`/review-prs`), never stop early.** If any review",
|
|
5696
6014
|
" fails, comment and move to the next PR. Only abort the loop on a",
|
|
5697
6015
|
" fatal error (e.g. `gh` auth failure, network outage).",
|
|
5698
|
-
"9. **Follow CLAUDE.md conventions** for all `git` and `gh` operations."
|
|
6016
|
+
"9. **Follow CLAUDE.md conventions** for all `git` and `gh` operations.",
|
|
6017
|
+
"10. **Follow the reaction protocol.** Use `eyes` to mark a comment",
|
|
6018
|
+
" seen, `thinking_face` (`confused`) to dispute it, `+1` to accept",
|
|
6019
|
+
" its request, `rocket` when the accepted change has landed, and",
|
|
6020
|
+
" `-1` when the request is out-of-scope and has been tracked in a",
|
|
6021
|
+
" new issue. Apply reactions on the same comment endpoint the",
|
|
6022
|
+
" comment came from (`issues/comments/...` for PR-level, ",
|
|
6023
|
+
" `pulls/comments/...` for inline).",
|
|
6024
|
+
"11. **Terminal reactions require completed actions.** `+1`, `rocket`,",
|
|
6025
|
+
" and `-1` must only be applied once the corresponding action is",
|
|
6026
|
+
" truly complete (respectively: the fix accepted, the fix landed,",
|
|
6027
|
+
" or the new out-of-scope issue created and linked in a reply).",
|
|
6028
|
+
" Never apply a terminal reaction pre-emptively; doing so falsely",
|
|
6029
|
+
" signals to humans and to future reviewer passes that the item",
|
|
6030
|
+
" is closed.",
|
|
6031
|
+
"12. **Maintain one sticky `## Reviewer notes` comment per PR.** On",
|
|
6032
|
+
" each pass, find the existing sticky comment authored by the",
|
|
6033
|
+
" reviewer and edit it in place with `gh api ... -X PATCH`;",
|
|
6034
|
+
" create it only when none exists. Never post per-pass summary",
|
|
6035
|
+
" comments alongside the sticky \u2014 the sticky is the single",
|
|
6036
|
+
" human-facing source of truth for PR state.",
|
|
6037
|
+
"13. **Pushback blocks auto-merge.** Any unresolved `thinking_face`",
|
|
6038
|
+
" reaction authored by the reviewer on any comment must prevent",
|
|
6039
|
+
" Phase 4 from enabling auto-merge, regardless of the review mode",
|
|
6040
|
+
" decided in Phase 2.75. The gate clears only when the human has",
|
|
6041
|
+
" resolved the dispute \u2014 by withdrawing the comment, by replying",
|
|
6042
|
+
" in a way that satisfies the reviewer (who then replaces the",
|
|
6043
|
+
" `thinking_face` with `+1`), or by applying the `review:auto-ok`",
|
|
6044
|
+
" label as an explicit override."
|
|
5699
6045
|
].join("\n")
|
|
5700
6046
|
};
|
|
5701
6047
|
var reviewPrSkill = {
|