Skip to content

Conversation

@casperdcl
Copy link
Contributor

@casperdcl casperdcl commented Feb 7, 2020

@casperdcl casperdcl added the type: enhancement Something is not clear, small updates, improvement suggestions label Feb 7, 2020
@casperdcl casperdcl self-assigned this Feb 7, 2020
@shcheklein shcheklein temporarily deployed to dvc-landing-link-diff-c-xf87ol February 7, 2020 03:02 Inactive
@shcheklein shcheklein temporarily deployed to dvc-landing-link-diff-c-xf87ol February 7, 2020 03:06 Inactive
@shcheklein shcheklein merged commit 7837e28 into master Feb 7, 2020
#!/usr/bin/env bash
set -euxo pipefail
$(dirname "$0")/link-check.sh <(git diff origin/master -U0)
$(dirname "$0")/link-check.sh <(git diff $(git merge-base HEAD origin/master) -U0 | grep '^\+')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you can just use lint-staged (used/configured in package.json) to sent the staged files into this script @casperdcl ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't because that would affect the pre-commit hook

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(and we can't assume devs have the prereqs to run the checks)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: enhancement Something is not clear, small updates, improvement suggestions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

broken links detection CI looks broken

3 participants