Skip to content

Commit

Permalink
chore(workflows/pr-check): validate redirects with rari + fix only en…
Browse files Browse the repository at this point in the history
…-US (#37867)

* Revert "fix(redirects): remove locale param + validate with legacy (#37844)"

This reverts commit b8cc989.

* chore(workflows/pr-check_scripts): add redirect scripts

* chore: validate redirects without --strict option

* chore(workflows/pr-check_redirects): use rari for redirect check

* fixup! chore(workflows/pr-check_scripts): add redirect scripts
  • Loading branch information
caugner authored Jan 30, 2025
1 parent c5d9dd8 commit 63f1774
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr-check_redirects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ jobs:

- name: Check redirects file(s)
if: steps.filter.outputs.required_files == 'true'
run: yarn content:legacy validate-redirects en-us --strict
run: yarn content validate-redirects en-US
4 changes: 4 additions & 0 deletions .github/workflows/pr-check_scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ jobs:

- run: yarn content --help

- run: yarn content fix-redirects en-US

- run: yarn content validate-redirects en-US

build:
runs-on: ubuntu-latest

Expand Down
4 changes: 2 additions & 2 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export default {
"files/en-us/_redirects.txt": (filenames) => [
`yarn content fix-redirects`,
`yarn content:legacy validate-redirects en-us --strict`,
`yarn content fix-redirects en-US`,
`yarn content validate-redirects en-US`,
],
"!*.md": (filenames) => [
`prettier --ignore-unknown --write ${filenames.join(" ")}`,
Expand Down

0 comments on commit 63f1774

Please sign in to comment.