Commit 68ce986
authored
fix(miner): close_pr runs unconditionally before its best-effort comment (#5494)
Per gittensory's own review on this PR: buildClosePrSpec chained gh pr comment && gh pr close, so a transient comment failure would silently leave a known-losing PR open -- the exact outcome claim-conflict resolution exists to prevent. The close now runs first and unconditionally; the explanatory comment is a best-effort follow-up that only runs once the close itself succeeds, and never blocks or masks it.
Also documents why assembleCompetingClaims deliberately excludes same-author PRs (a miner never competes against its own retry attempts).1 parent 733d0a9 commit 68ce986
3 files changed
Lines changed: 12 additions & 6 deletions
File tree
- packages
- gittensory-engine/src/miner
- gittensory-miner/lib
- test/unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
54 | | - | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
0 commit comments