Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs-lint: don't validate Fx compare links #1172

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

JacobOaks
Copy link
Contributor

The lint CI step for #1171 is failing because it adds a comparison link in the changelog that does not yet exist (the 1.20.2 tag has not been created yet).

This PR ignores these types of links when validating links during docs linting in CI.

Tested this by adding the link from #1171 into the changelog.

Before this change:

$ make docs-lint
Checking documentation
...
error:          changelog.md:19: "https://github.com/uber-go/fx/compare/v1.20.0...v1.20.2" not accessible; status code 404: Not Found
make[1]: *** [check] Error 1
make: *** [docs-lint] Error 2

After this change:

$ make docs-lint
Checking documentation

The lint CI step for uber-go#1171 is failing because it adds a comparison link
in the changelog that does not yet exist (the 1.20.2 tag has not been created yet).

This PR ignores these types of links when validating links
during docs linting in CI.

Tested this by adding the link from uber-go#1171 into the changelog.

Before this change:
```
$ make docs-lint
Checking documentation
...
error:          changelog.md:19: "uber-go/fx@v1.20.0...v1.20.2" not accessible; status code 404: Not Found
make[1]: *** [check] Error 1
make: *** [docs-lint] Error 2
```
After this change:
```
$ make docs-lint
Checking documentation
```
@JacobOaks JacobOaks requested a review from abhinav March 8, 2024 15:51
@JacobOaks JacobOaks merged commit bf48ba3 into uber-go:master Mar 8, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants