Add link on badge when using GH Action Summary#492
Add link on badge when using GH Action Summary#492pchalamet wants to merge 2 commits intodorny:mainfrom
Conversation
|
Hi @pchalamet, thanks for this contribution. I like this change. How would it work if there are multiple Workflow test summaries in an action? I think a unique ID should be added to the anchor label. |
|
Yes you are right as on my project (link to a GH build - check the first summary output link: https://github.com/MagnusOpera/Terrabuild/actions/runs/10595006592) I add to do this for my own summary output (the first one). As I obviously only use one single test report, it's ok (for me !). Anyway, probably this would require a more broad fix as link navigation is non-functional in test report summary as of now. It seems to me, that anchors in markdown in summary do not work correctly unless prefix with I can of course add a random uuid in this PR, but I would suggest to fix all anchors in another PR. Well, let me know ! |
|
@pchalamet FYI, anchors have been fixed (I believe) in #567 |
|
Hi @pchalamet, thanks for this contribution. Does this PR #588 fixes the links? |
Problem
As of now, clicking on the badge on GH Action Summary:

goes to nowhere interesting (
https://camo.githubusercontent.com/xxx).This PR
This (completely unsolicited) PR introduces a new feature: the badge is now in an anchor, and when clicked, this open the collapsed section and goes to the top of the tests report. At least, I can click roughly on a bigger thing than a small collapsed section 🤷♂️
Next
Nothing fancy, I just like it this way 🤷♂️ Hope you like it too! Thanks for this gh action btw.