Skip to content

Link the job summary back to the PatchRail repo - #10

Merged
PabloCodes7 merged 1 commit into
mainfrom
summary-repo-backlink
Jul 19, 2026
Merged

Link the job summary back to the PatchRail repo#10
PabloCodes7 merged 1 commit into
mainfrom
summary-repo-backlink

Conversation

@PabloCodes7

Copy link
Copy Markdown
Contributor

What

Every job summary the action writes now carries a plain backlink to github.com/patchrail/patchrail in its footer.

Why

The GitHub annotation and $GITHUB_STEP_SUMMARY are the only surface a maintainer reading their own failed run sees. The summary linked out to the per-class fix guide on getpatchrail.com, but never back to the project behind the annotation — a dead end for anyone who wanted to find the tool. This adds that one link.

Scope / safety

  • Shared SUMMARY_FOOTER used by all three summary paths: classified, no-log (--unclassified), and unreadable-schema. This also de-duplicates the Classified locally… closing line, which was copied three times.
  • Text written to $GITHUB_STEP_SUMMARY only — no PR comment, no network call, so the read-only / "nothing leaves the runner" contract is unchanged.
  • A link, not a star/upvote solicitation. tests/test_repo_backlink.py asserts, on every path, that the backlink is present and that no star/upvote cue ever appears in a summary.

Tests

python -m pytest -q → 41 passed on Python 3.12 with the shipped patchrail>=0.6.0,<0.8.0 (0.7.3).

The annotation and job summary are the only surface a maintainer reading their
own failed run sees, and neither pointed back at the project behind them. Add a
plain repo backlink to the footer shared by all three summary paths (classified,
no-log, unreadable-schema). It is text written to $GITHUB_STEP_SUMMARY, so it
keeps the read-only promise: no pull request, no comment, no network. A link,
never a star solicitation; test_repo_backlink guards both on every path.
@PabloCodes7
PabloCodes7 merged commit 1f90cee into main Jul 19, 2026
5 checks passed
@PabloCodes7
PabloCodes7 deleted the summary-repo-backlink branch July 19, 2026 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant