Commit 41ce206
fix: annotate each comment-hygiene violation once per CI job
The build step runs build.ps1 and the test step runs test.ps1, so the gate ran
twice over the same tree and GitHub registered every violation twice. Verified
on a probe commit: two real violations produced four annotations. The first run
in a job now records a marker in GITHUB_ENV and later steps skip reporting.
Scoped to GitHub Actions on purpose. A marker in the process environment would
persist across runs in one interactive session, so an agent fixing a comment and
re-running would get a false pass on the second run. Local runs always scan.
The marker is appended with UTF8Encoding($false); a BOM part way through the
environment file would break the parse the runner does when the step ends.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 15afec5 commit 41ce206
1 file changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
174 | 189 | | |
175 | 190 | | |
176 | 191 | | |
| |||
0 commit comments