fix: consolidate support URL validation into single script#6870
Open
fix: consolidate support URL validation into single script#6870
Conversation
Copilot stopped work on behalf of
jstirnaman due to an error
February 25, 2026 14:24
Replace three redundant checks (Vale rule, inline LeftHook grep, standalone script) with one script callable from both LeftHook and CI. - Update check-support-links.sh to accept file args and allow both https://support.influxdata.com and .../s/contactsupport - Add separate LeftHook command replacing inline grep - Add CI step in pr-link-check.yml before Node.js setup - Delete dead SupportLink.yml Vale rule (TokenIgnores strips URLs) - Update DOCS-CONTRIBUTING.md with both allowed URLs
ff6e5ee to
5f47d3d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add support URL validation that runs in both local pre-commit hooks (LeftHook) and CI (GitHub Actions), enforcing two allowed URLs:
https://support.influxdata.com(Support home)https://support.influxdata.com/s/contactsupport(Contact Support)All other
support.influxdata.comvariations (trailing slashes, login redirects, other paths) are rejected.Changes
.ci/scripts/check-support-links.shcontent/**/*.mdlefthook.ymlcheck-support-linkspre-commit command calling the script.github/workflows/pr-link-check.ymlDOCS-CONTRIBUTING.mdContext
Extracted from PR #6867. Replaces three earlier redundant checks (dead Vale rule, inline LeftHook grep, standalone script) with a single script callable from both LeftHook and CI.
Test plan
.ci/scripts/check-support-links.shon a file withhttps://support.influxdata.com/— should failhttps://support.influxdata.com/s/contactsupport— should passhttps://support.influxdata.com— should pass