Commit Graph

  • 14b02cbc45 Refactor argument handling in entrypoint.sh for improved clarity and robustness workflow-optimizations Luke Hagar 2025-11-14 21:00:34 +00:00
  • 241246499d Implement mutex for thread-safe URLCache operations and optimize job handling in CheckURLs function Luke Hagar 2025-11-14 20:57:29 +00:00
  • 27718b695e Refactor action.yml input names for consistency and update example workflow Luke Hagar 2025-11-14 20:52:38 +00:00
  • e1295a63bf Update action.yml, README.md, and example workflow to clarify GITHUB_TOKEN usage Luke Hagar 2025-11-14 20:38:56 +00:00
  • eb6a7a4366 Update action.yml and check.go to clarify PR comment behavior Luke Hagar 2025-11-14 20:36:58 +00:00
  • bd21420b3e testing some optimizations Luke Hagar 2025-11-14 20:33:15 +00:00
  • 4fb0c9b375 Add watch mode functionality to Slinky for real-time link checking main v1.0.58 v1 latest Luke Hagar 2025-09-23 19:26:00 +00:00
  • 5ff8337397 Enhance ignore logic in CollectURLsWithIgnoreConfig to include debug output for ignored paths. This change improves visibility into the URL collection process by logging paths that are ignored based on specified patterns, while also cleaning up redundant checks for ignored paths. v1.0.57 Luke Hagar 2025-09-19 19:19:33 +00:00
  • f74fe031f2 Add debug logging for filesystem traversal in URL collection functions v1.0.56 Luke Hagar 2025-09-19 19:06:44 +00:00
  • 1b5d18b4a4 Remove debug logging from URL collection functions in fsurls.go. This change cleans up the code by eliminating unnecessary debug output during filesystem traversal, streamlining the URL collection process. v1.0.55 Luke Hagar 2025-09-19 19:04:06 +00:00
  • b4f2754ad1 Add PatternMatcher for improved include/ignore logic in fsurls.go v1.0.54 Luke Hagar 2025-09-19 18:54:52 +00:00
  • b31745a4da Refactor URL collection functions to utilize pre-loaded ignore configurations v1.0.53 Luke Hagar 2025-09-19 18:26:40 +00:00
  • c42386c8e8 Add debug logging for ignored files and .slinkignore detection in fsurls.go v1.0.52 Luke Hagar 2025-09-19 18:12:37 +00:00
  • 993579a389 Refactor action inputs and entrypoint script to use 'targets' instead of 'path' and 'patterns'. Update README to reflect new input structure and provide examples for target usage. This change enhances flexibility in specifying scan targets. v1.0.51 Luke Hagar 2025-09-19 16:49:45 +00:00
  • a3c7a2adf2 Update CheckURLs function to treat HTTP 429 status as valid links alongside 401, 403, and 408. This enhancement improves the URL validation logic by accommodating scenarios where links may be valid but indicate rate limiting. v1.0.50 Luke Hagar 2025-09-16 21:00:05 +00:00
  • 2c3a5b5c04 Update CheckURLs function to treat HTTP 408 status as valid links alongside 401 and 403. This change enhances the URL validation logic by allowing for additional scenarios where links may be valid but require authorization or indicate a timeout. v1.0.49 Luke Hagar 2025-09-16 20:57:56 +00:00
  • f3acb36e36 Add logic to skip .slinkignore files during URL collection in fsurls.go v1.0.48 Luke Hagar 2025-09-16 19:55:54 +00:00
  • 3427464985 Refactor ignore path handling in fsurls.go to improve whitespace trimming and add recursive matching for directory-like patterns. Enhance the logic to compile ignore lines more effectively, ensuring better support for various ignore scenarios. v1.0.47 Luke Hagar 2025-09-13 03:42:12 +00:00
  • 7808f2337b Enhance URL ignoring logic in fsurls.go to support wildcard patterns and add tests for ignoring specific URLs. Introduce a new function to convert wildcard patterns to regex for improved matching accuracy. v1.0.46 Luke Hagar 2025-09-13 03:34:12 +00:00
  • d2dbfe9dd1 Update .slinkignore to include additional SailPoint API URLs and enhance test coverage for ignored URLs. Modify tests to ensure proper handling of ignored paths and URLs, including node_modules and package-lock.json. v1.0.45 Luke Hagar 2025-09-13 03:17:44 +00:00
  • 4af80ed208 Refactor .slinkignore loading logic in fsurls.go to improve configuration detection and error handling. Introduce findSlinkyConfig function to search for .slinkignore files in parent directories. Enhance JSON parsing with relaxed error handling and emit warnings for misconfigurations. v1.0.44 Luke Hagar 2025-09-13 02:27:37 +00:00
  • 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. v1.0.43 Luke Hagar 2025-09-13 01:59:11 +00:00
  • 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. v1.0.42 Luke Hagar 2025-09-13 01:49:22 +00:00
  • 2df17e8247 Refactor URL extraction in fsurls.go to improve handling of matches and offsets. Replace extractCandidates with extractCandidateMatches for better clarity and accuracy in URL processing. Update WriteMarkdown function to enhance link formatting in reports, ensuring correct display and linking of file paths with line numbers. v1.0.41 Luke Hagar 2025-09-13 01:14:55 +00:00
  • 7c52360fbe Update progress logging format in check.go to use "::progress::" instead of "::notice::" for better clarity in output. v1.0.40 Luke Hagar 2025-09-12 21:01:16 +00:00
  • 54d7797089 Add .slinkignore support for URL and path exclusions v1.0.39 Luke Hagar 2025-09-12 20:56:45 +00:00
  • ae5fcf868c Enhance URL extraction in fsurls.go by introducing new trimming functions for leading and trailing delimiters, improving URL sanitization. Update regex patterns for better markdown handling and adjust the extractCandidates function to support relative paths. Add tests to validate URL sanitization and preservation of balanced parentheses. v1.0.38 Luke Hagar 2025-09-12 20:37:23 +00:00
  • 1c32afafa6 Remove unnecessary HTML details tags from markdown output in WriteMarkdown function, streamlining the generated report format. v1.0.37 Luke Hagar 2025-09-12 20:06:57 +00:00
  • 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. v1.0.36 Luke Hagar 2025-09-12 19:51:39 +00:00
  • 2ac0d7d5a0 Enhance error handling and debug output in upsertPRComment function of check.go, ensuring proper response processing and improved troubleshooting for PR comment operations. v1.0.35 Luke Hagar 2025-09-12 19:34:07 +00:00
  • b1c1df217b Add debug output in check.go for environment detection and PR comment handling, enhancing troubleshooting capabilities during execution. v1.0.34 Luke Hagar 2025-09-12 19:24:51 +00:00
  • 3a9fdfb479 Improve timezone handling in WriteMarkdown function of markdown.go by adding error checking for LoadLocation and providing a fallback to a fixed timezone if loading fails. v1.0.33 Luke Hagar 2025-09-12 19:06:00 +00:00
  • 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. v1.0.32 Luke Hagar 2025-09-12 18:32:42 +00:00
  • f0c3f3f912 Modify entrypoint.sh to allow execution continuation on failure, ensuring PR comments are posted even if the run fails. Update exit handling to reflect the SLINKY_EXIT_CODE. v1.0.31 Luke Hagar 2025-09-12 17:30:16 +00:00
  • 0c8486d289 Refactor URL checking in check.go to run CheckURLs concurrently, improving performance and responsiveness during URL scanning. v1.0.30 Luke Hagar 2025-09-12 16:56:08 +00:00
  • 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. v1.0.29 Luke Hagar 2025-09-12 16:50:40 +00:00
  • 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. v1.0.28 Luke Hagar 2025-09-12 15:52:45 +00:00
  • c563c8026f Add debug output for path walking in CollectURLs function in fsurls.go to aid in troubleshooting. v1.0.27 Luke Hagar 2025-09-12 15:04:39 +00:00
  • 302eddc97e Add debug output for consolidated configuration and CLI arguments in entrypoint.sh v1.0.26 Luke Hagar 2025-09-12 14:55:53 +00:00
  • d12791ef42 Refactor error handling and formatting in WriteMarkdown function of markdown.go for improved readability and consistency. v1.0.25 Luke Hagar 2025-09-11 22:23:00 +00:00
  • 631a571ecf Refactor markdown report generation in markdown.go to improve formatting and structure, including reordering summary details and consolidating optional root path handling. v1.0.24 Luke Hagar 2025-09-11 22:18:52 +00:00
  • ca102c687d Refactor COMMENT_BODY construction in entrypoint.sh to use printf for improved formatting of markdown report. v1.0.23 Luke Hagar 2025-09-11 22:10:37 +00:00
  • 3040577b67 Update test cases in fsurls_test.go and lang_files_test.go to include the new parameter for URL collection in CollectURLs function. v1.0.22 Luke Hagar 2025-09-11 22:06:20 +00:00
  • 90845181d9 Update fsCollect function in fs_bridge.go to include an additional parameter for URL collection, enhancing its functionality. v1.0.21 Luke Hagar 2025-09-11 22:03:05 +00:00
  • 6d9be77a14 Update markdown report generation to combine last run and duration details into a single line for improved clarity. v1.0.20 Luke Hagar 2025-09-11 21:43:08 +00:00
  • 666294151e Add message for no issues found in markdown report generation and handle file creation accordingly in markdown.go v1.0.19 Luke Hagar 2025-09-11 21:29:15 +00:00
  • 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. v1.0.18 Luke Hagar 2025-09-11 21:02:14 +00:00
  • 9148a9108c Enhance PR comment handling in entrypoint.sh to update existing comments or create new ones, and improve markdown report generation in markdown.go by adding optional root path and duration details. v1.0.17 Luke Hagar 2025-09-11 20:00:18 +00:00
  • a0598ac3e9 Fix trailing delimiter check in fsurls.go to include double quotes for accurate string trimming v1.0.16 Luke Hagar 2025-09-11 19:41:56 +00:00
  • 1f593407ca Add debug logging for scanned files in fsurls.go to improve visibility during URL collection v1.0.15 Luke Hagar 2025-09-11 18:58:43 +00:00
  • d3072d1f64 Add debug logging for URL status in check.go to enhance troubleshooting in GitHub Actions v1.0.14 Luke Hagar 2025-09-11 18:40:26 +00:00
  • f1f09e0fe5 Refactor PR comment logic in entrypoint.sh to improve error handling and remove dependency on GITHUB_TOKEN in action.yml v1.0.13 Luke Hagar 2025-09-11 18:05:23 +00:00
  • 55ef013182 Add GITHUB_TOKEN input to action.yml for enhanced authentication v1.0.12 Luke Hagar 2025-09-11 17:50:36 +00:00
  • 59e4bad1c5 Update CI workflow to disable failure on action failures for improved stability during runs. v1.0.11 Luke Hagar 2025-09-11 17:18:53 +00:00
  • 72f740471d Refactor Dockerfile to remove unnecessary user creation and streamline image build process by directly installing dependencies. v1.0.10 Luke Hagar 2025-09-11 17:14:19 +00:00
  • 746af385c4 Fix argument formatting in entrypoint.sh for fail-on-failures option to ensure consistent syntax. v1.0.9 Luke Hagar 2025-09-11 17:11:24 +00:00
  • 82b9299288 Remove Slinky action files including action.yml, Dockerfile, and entrypoint.sh to streamline the repository. v1.0.8 Luke Hagar 2025-09-11 17:06:41 +00:00
  • 56bd74b49d Update test file paths to use 'testdata' directory for consistency in URL collection tests v1.0.7 Luke Hagar 2025-09-11 17:01:01 +00:00
  • e57f8c0d73 Update action.yml to use specific Docker image and refactor entrypoint.sh for improved argument handling; add GitHub Actions workflow for building and publishing container image. v1.0.6 Luke Hagar 2025-09-11 16:47:41 +00:00
  • b0c7ffe677 Refactor input and output parameter names in action.yml for consistency v1.0.5 Luke Hagar 2025-09-11 16:28:22 +00:00
  • eae00e0da1 Remove unused parameters from Slinky action in README v1.0.4 Luke Hagar 2025-09-11 16:20:44 +00:00
  • 6a957f4c57 Update README to reference the correct Slinky action repository v1.0.3 Luke Hagar 2025-09-11 16:19:24 +00:00
  • a47630c7ef moved test files, adjusted publishing and repo structure v1.0.2 Luke Hagar 2025-09-11 16:17:47 +00:00
  • cd45e4ccdb moving action files, adding publishing, adjusted usage v1.0.1 v1.0.0 Luke Hagar 2025-09-11 16:09:36 +00:00
  • c753d4031a pushing the rest Luke Hagar 2025-09-11 15:59:53 +00:00
  • 4b08a5b8e0 first commit Luke Hagar 2025-09-11 15:57:46 +00:00