lycheeverse / lychee-action

Github action to check for broken links in Markdown, HTML, and text files using lychee, a fast link checker written in Rust.
https://lychee.cli.rs
Apache License 2.0
318 stars 44 forks source link

Improved GHA workflow for centralising url status reporting in single GH issue #209

Closed VeckoTheGecko closed 5 months ago

VeckoTheGecko commented 1 year ago

I thought I would share my (imo) improved GHA workflow for link status reporting, which uses and updates a single dedicated issue opening and closing the issue depending on whether errors are reported. This allows parties to subscribe/unsubscribe to the issue, while also preventing pollution as a result of creating multiple new issues.

I personally prefer this workflow than the one in this repos README, feel free to take and adapt if you so wish.

Note this workflow doesn't work on forks.

https://gist.github.com/VeckoTheGecko/7b6bb062135e59fbc9c5703c48435f5f

mre commented 10 months ago

That's great! Would you like to add it to the official lychee documentation here?

mre commented 10 months ago

There is already something similar, which might need updating: https://lychee.cli.rs/#/github_action_recipes/reuse-issue The source code for that file is here: https://github.com/lycheeverse/lycheeverse.github.io/blob/master/github_action_recipes/reuse-issue.md

mre commented 5 months ago

@VeckoTheGecko, I just wanted to reach out and let you know that I’m still very interested in incorporating your contribution into the repository. If you find some time to create a pull request, please go ahead and submit it, and then drop a comment here. I'll make sure to reopen the issue right away.

For now, I'm going to close this issue to help keep our issue tracker organized and tidy. However, I really hope to see your contribution soon. Thanks for the interest.