Commit 0843d63
authored
fix(workflows): safe PR body parsing and idempotent summary comments (#74)
## Summary
- Fix bot-sync-status PR body parsing that caused shell errors with
newlines
- Add idempotency check to prevent duplicate 'Generation Complete'
comments
## Changes
| File | Fix |
|------|-----|
| bot-sync-status.yml | Safely fetch PR body via gh pr view instead of
direct variable interpolation |
| gen-new-plot.yml | Check if summary comment exists before posting
(prevents duplicates) |
## Root Cause
- The PR_BODY variable syntax breaks when the body contains newlines
- The approved label was added 3 times to issue #53, causing 3 duplicate
comments
## Test plan
- Merge to main
- Create new simple plot request
- Verify sync-status works without errors
- Verify no duplicate comments1 parent 3296b4c commit 0843d63
2 files changed
Lines changed: 20 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
321 | 337 | | |
| 338 | + | |
322 | 339 | | |
323 | 340 | | |
324 | 341 | | |
325 | 342 | | |
326 | 343 | | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | 344 | | |
337 | 345 | | |
338 | 346 | | |
| |||
0 commit comments