Patrik Oldsberg
8f9c1d64b8
verify-links: catch broken anchors, directory links, and invisible characters ( #33713 )
...
* verify-links: catch broken anchors, directory links, and invisible characters
Enhances the link verification script to catch several categories of
broken links that were previously missed:
- Broken anchors (cross-file and same-file) by extracting heading slugs
from target documents and verifying anchors resolve
- Directory links missing index.md suffix within docs/
- Invisible/zero-width characters in URLs
- Case-sensitive anchor mismatches
Also strips fenced code blocks before scanning for links to avoid false
positives, and handles duplicate heading slug deduplication (GitHub and
Docusaurus append -1, -2, etc.).
Fixes a few newly-caught broken links in existing docs.
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
Made-with: Cursor
* Fix CodeQL incomplete multi-character sanitization alert
Apply HTML tag stripping in a loop so that nested fragments
like <scr<script>ipt> are fully removed.
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
Made-with: Cursor
---------
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2026-04-03 17:48:40 +02:00
Gabriel Dugny
49171c9de4
chore: Update all imports to zod/v3
...
Signed-off-by: Gabriel Dugny <gabriel.dugny@believe.com >
2026-03-17 16:48:42 +01:00
Patrik Oldsberg
db612a84ab
Allow frontend-dev-utils in dependency verification exceptions
...
Add @backstage/frontend-dev-utils to the except list for the rule
that prevents web-library packages from depending on frontend-plugin
packages, since it legitimately wraps @backstage/plugin-app for
development environments.
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
Made-with: Cursor
2026-03-16 16:10:28 +01:00
Fredrik Adelöw
a22c0a368e
use a distinct hash instead
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2026-02-26 14:45:34 +01:00
Fredrik Adelöw
2690d416f8
Update scripts/check-docs-quality.js
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2026-02-26 14:37:07 +01:00
Fredrik Adelöw
b35f3595aa
run vale directly instead of through the action
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2026-02-26 14:37:07 +01:00
Andre Wanlin
7c2d5021df
Script fix
...
Signed-off-by: Andre Wanlin <awanlin@spotify.com >
2026-02-19 06:10:13 -06:00
Andre Wanlin
d00a492570
Changes based on feedback
...
Signed-off-by: Andre Wanlin <awanlin@spotify.com >
2026-02-17 17:15:07 -06:00
Andre Wanlin
29e27ac704
Clean up and prettier
...
Signed-off-by: Andre Wanlin <awanlin@spotify.com >
2026-02-16 19:01:13 -06:00
Andre Wanlin
3961a51cbe
Fix logic
...
Signed-off-by: Andre Wanlin <awanlin@spotify.com >
2026-02-16 18:45:25 -06:00
Andre Wanlin
ca1c1dd03f
Updates
...
Signed-off-by: Andre Wanlin <awanlin@spotify.com >
2026-02-16 18:42:25 -06:00
Andre Wanlin
a3ce046b95
Reactivate
...
Signed-off-by: Andre Wanlin <awanlin@spotify.com >
2026-02-16 18:35:50 -06:00
Andre Wanlin
e0b8296067
Update script and initial run
...
Signed-off-by: Andre Wanlin <awanlin@spotify.com >
2026-02-16 17:43:09 -06:00
Andre Wanlin
af4511c376
Add active flag
...
Signed-off-by: Andre Wanlin <awanlin@spotify.com >
2026-02-16 17:26:29 -06:00
Patrik Oldsberg
23916a0b5c
Merge pull request #32548 from backstage/rugvip/patch-refinement
...
.patches: ignore already applied patches, remove broken cleanup workflow
2026-01-28 15:20:00 +01:00
Andre Wanlin
5d21916c0d
Updates based on feedback
...
Signed-off-by: Andre Wanlin <awanlin@spotify.com >
2026-01-28 06:26:25 -06:00
Patrik Oldsberg
f107bd5c8c
Apply suggestions from code review
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2026-01-28 12:11:53 +01:00
Patrik Oldsberg
90e8283458
.patches: ignore already applied patches, remove broken cleanup workflow
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2026-01-28 11:25:10 +01:00
Andre Wanlin
4977f58b9a
Refactored into a script using zod based on feedback
...
Signed-off-by: Andre Wanlin <awanlin@spotify.com >
2026-01-27 19:14:44 -06:00
Fredrik Adelöw
7455dae884
require the use of node prefix on native imports
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2026-01-26 13:22:53 +01:00
Andre Wanlin
9b2c9a9b9e
initial script
...
Signed-off-by: Andre Wanlin <awanlin@spotify.com >
Plugins - Added plugin directory audit script
Signed-off-by: Andre Wanlin <awanlin@spotify.com >
Remove comments
Signed-off-by: Andre Wanlin <awanlin@spotify.com >
Updated log statement
Signed-off-by: Andre Wanlin <awanlin@spotify.com >
2025-12-06 11:11:38 -06:00
Patrik Oldsberg
d8b7285f88
scripts/patch-release-for-pr: include PR link in generated body
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2025-11-21 13:54:12 +01:00
Patrik Oldsberg
fb5c157262
add new patch release process
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2025-11-21 11:04:32 +01:00
Patrik Oldsberg
4e4d4cfee7
scripts/verify-links: add support for verifying links to new API reference
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2025-11-12 15:29:31 -05:00
Charles de Dreuille
988416baa3
Update backstage-migration-analytics.js
...
Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com >
2025-10-18 13:46:06 +01:00
Charles de Dreuille
cf7f5d9c9f
Update backstage-migration-analytics.js
...
Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com >
2025-10-18 10:43:05 +01:00
Charles de Dreuille
64e00a208d
Update backstage-migration-analytics.js
...
Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com >
2025-10-18 09:45:10 +01:00
Charles de Dreuille
e5a002a7d5
New script to track MUI to BUI migration
...
Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com >
2025-10-18 09:08:14 +01:00
Matt Brown
167b487068
techdocs-cli.js: remove -s yarn flag ( #30658 )
...
techdocs-cli.js: remove -s yarn flag
```
Signed-off-by: Matt Brown <mattbrown@spotify.com >
2025-08-12 09:41:44 -04:00
David Festal
182efca350
Add the frontend-dynamic-feature-loader
...
Signed-off-by: David Festal <dfestal@redhat.com >
2025-04-08 22:49:02 +02:00
Patrik Oldsberg
f43634fc20
scripts: add pin-workspace-versions
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2024-09-28 12:23:57 +02:00
secustor
d784231fbc
fixup microsite links
...
Signed-off-by: secustor <sebastian@poxhofer.at >
2024-09-23 14:41:42 +02:00
Patrik Oldsberg
7c80650a1e
frontend-app-api: extract createApp out into frontend-defaults
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2024-08-29 11:53:48 +02:00
Patrik Oldsberg
821bac1c73
Merge pull request #26241 from backstage/rugvip/release
...
scripts/create-release-tag: make it possible to override target sha
2024-08-27 15:13:35 +02:00
Patrik Oldsberg
b1daa52815
scripts/create-release-tag: make it possible to override target sha
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2024-08-27 15:03:24 +02:00
blam
f83f0136dc
chore: update the scripts to make frontned-app-api
...
Signed-off-by: blam <ben@blam.sh >
2024-08-27 11:38:04 +02:00
Patrik Oldsberg
e910e572e0
Revert "added the frontend-extensions package role"
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2024-08-13 14:47:00 +02:00
Fredrik Adelöw
705794def5
rename the role to frontend-extensions
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2024-08-12 11:10:54 +02:00
Fredrik Adelöw
0f7452c030
add example package
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2024-08-12 11:10:54 +02:00
Fredrik Adelöw
8669210f3b
added the frontend-extension-bundle role
...
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com >
Co-authored-by: Camila Belo <camilaibs@gmail.com >
Co-authored-by: blam <ben@blam.sh >
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2024-08-12 11:10:54 +02:00
Fredrik Adelöw
f3c5cf19ab
Merge pull request #24581 from RaphaelSve/French-Translation
...
French translation
2024-07-04 20:24:03 +02:00
Patrik Oldsberg
56b0e756d6
scripts/patch-release-for-pr: run yarn install before release
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2024-06-12 16:50:10 +02:00
Raphaël
acf66e727a
Update check-docs-quality.js
...
Add new regex for README files
Signed-off-by: Raphaël <61149845+RaphaelSve@users.noreply.github.com >
2024-06-10 11:29:51 +02:00
Patrik Oldsberg
57b612b5f5
Merge pull request #25001 from ismailmmd/check-doc-quality-script-fix
...
Fix error message when vale is not installed
2024-06-04 01:11:37 +02:00
Heikki Hellgren
c797d69730
feat: deps check to also check for violations from backend plugin modules
...
relates to #25006
Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi >
2024-06-03 13:39:49 +03:00
Ismail M
bd01494c1d
successfully exit in local and throw in CI
...
Since `vale` may not be installed locally, we can successfully exit.
Co-authored-by: Vincenzo Scamporlino <vincenzos@spotify.com >
Signed-off-by: Ismail M <37075892+ismailmmd@users.noreply.github.com >
2024-06-02 00:02:23 +03:00
Ismail Mohammed
cc2aca72f6
Fix error message when vale is not installed
...
Signed-off-by: Ismail Mohammed <ism5701@gmail.com >
2024-05-31 02:09:55 +03:00
Patrik Oldsberg
c3623c0cb6
docs: add check and fix links spanning 3 lines
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2024-05-10 11:16:11 +02:00
Patrik Oldsberg
5559acab7c
scripts/verify-links: add check for multi-line links
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2024-05-10 09:52:37 +02:00
Fredrik Adelöw
c3f03725d2
Merge pull request #24015 from brianphillips/fix-release-schedule-message
...
Fix automated release schedule message for releases >= 1.26
2024-04-19 20:28:12 +02:00