Commit 84a65af
committed
Merge #7251: ci: convert clang-format diff check to informational PR comment
0bb5009 ci: convert clang-format diff check to informational PR comment (PastaClaw)
Pull request description:
## Summary
Convert the clang-format diff check from a blocking CI job to an informational-only PR comment, per UdjinM6's suggestion.
Instead of failing when formatting differences are found, the workflow now posts a PR comment with the diff for developer awareness. The check never blocks a PR.
## Changes
- Remove `exit 1` — the check no longer fails
- Add `pull-requests: write` permission
- Post formatting diffs as PR comments using `peter-evans/create-or-update-comment`
- Include machine-readable markers (`<!-- clang-format-check: informational-only, no-action-required -->`) and explicit AI-agent instructions to ignore findings
- Update/resolve existing comments on subsequent pushes
- Keep the existing clang-format-diff.py invocation unchanged
Based on UdjinM6's prototype: UdjinM6/dash@82a49b2360
Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>
ACKs for top commit:
UdjinM6:
ACK 0bb5009
Tree-SHA512: 605fbf628a41927de69e56534156740cf410eb2a8ee7246e4a5c239051bcfa56974a63ee3ddaa77abfffa48b1c00824c78506e8dc42a73c1249384292e5ed6671 file changed
Lines changed: 54 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
19 | | - | |
20 | | - | |
21 | | - | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
| 26 | + | |
24 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
0 commit comments