17 Commits

Author SHA1 Message Date
Luke Hagar
4fb0c9b375 Add watch mode functionality to Slinky for real-time link checking
This update introduces a watch mode that monitors file changes and automatically re-scans for broken links. The feature enhances the user experience during development by providing real-time updates and ensuring links remain valid as files are modified. Additionally, the README has been updated to include usage instructions and details about the new watch mode capabilities.
2025-09-23 19:26:00 +00:00
Luke Hagar
b31745a4da Refactor URL collection functions to utilize pre-loaded ignore configurations
Enhance the CollectURLs and CollectURLsProgress functions in fsurls.go to accept pre-loaded ignore configurations, reducing redundant loading of .gitignore and .slinkignore files. Update the init function in check.go to load these configurations once for all targets, improving efficiency in URL collection processes.
2025-09-19 18:26:40 +00:00
Luke Hagar
04fb6f150a Fix markdown chunking in check.go by removing extra newline and comment out debug logging in fsurls.go for cleaner output during URL collection. 2025-09-13 01:59:11 +00:00
Luke Hagar
211fafe931 Refactor string splitting in check.go and fsurls.go to use strings.SplitSeq for improved performance. Enhance debug output for .gitignore and .slinkignore file handling, providing clearer logging during file checks and reads. 2025-09-13 01:49:22 +00:00
Luke Hagar
7c52360fbe Update progress logging format in check.go to use "::progress::" instead of "::notice::" for better clarity in output. 2025-09-12 21:01:16 +00:00
Luke Hagar
54d7797089 Add .slinkignore support for URL and path exclusions
Introduce a new .slinkignore file format to allow users to specify paths and URLs to ignore during scanning. Update the CollectURLs and CollectURLsProgress functions to respect these ignore rules. Add tests to verify the functionality of the .slinkignore file, ensuring that specified paths and URLs are excluded from results. Update README.md to document the new feature and its usage.
2025-09-12 20:56:45 +00:00
Luke Hagar
30a69f35a3 Refactor PR comment handling in check.go to support chunked posting of comments, ensuring compliance with GitHub's comment body limit. Enhance markdown processing by introducing chunkMarkdownByURL function and updating upsertPRComments to delete existing comments before posting new ones. 2025-09-12 19:51:39 +00:00
Luke Hagar
2ac0d7d5a0 Enhance error handling and debug output in upsertPRComment function of check.go, ensuring proper response processing and improved troubleshooting for PR comment operations. 2025-09-12 19:34:07 +00:00
Luke Hagar
b1c1df217b Add debug output in check.go for environment detection and PR comment handling, enhancing troubleshooting capabilities during execution. 2025-09-12 19:24:51 +00:00
Luke Hagar
d54ac41670 Refactor PR comment handling by moving it to the CLI in check.go, removing the previous implementation from entrypoint.sh. Enhance report summary to include the number of files scanned and ensure markdown report generation is streamlined. 2025-09-12 18:32:42 +00:00
Luke Hagar
0c8486d289 Refactor URL checking in check.go to run CheckURLs concurrently, improving performance and responsiveness during URL scanning. 2025-09-12 16:56:08 +00:00
Luke Hagar
64c05b380c Enhance URL scanning functionality in check.go by allowing comma-separated targets and improving debug output. Refactor root.go and run.go to support new target handling and display scanned file counts in the TUI. Introduce CollectURLsProgress in fsurls.go for detailed file processing feedback. 2025-09-12 16:50:40 +00:00
Luke Hagar
1085baa766 Refactor entrypoint.sh, check.go, and run.go to support positional targets for URL scanning, enhancing flexibility. Update README.md to reflect changes in target handling and provide clearer usage instructions. 2025-09-12 15:52:45 +00:00
Luke Hagar
f3804fcd2d Add respect_gitignore input to action.yml and update related logic in entrypoint.sh, check.go, and fsurls.go to support .gitignore handling during URL collection. 2025-09-11 21:02:14 +00:00
Luke Hagar
1f593407ca Add debug logging for scanned files in fsurls.go to improve visibility during URL collection 2025-09-11 18:58:43 +00:00
Luke Hagar
d3072d1f64 Add debug logging for URL status in check.go to enhance troubleshooting in GitHub Actions 2025-09-11 18:40:26 +00:00
Luke Hagar
c753d4031a pushing the rest 2025-09-11 15:59:53 +00:00