Skip to content

Commit 317026d

Browse files
committed
fix(ci): correct press-kit preview URL in sync-untranslated-issue script
1 parent cf306b3 commit 317026d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/scripts/sync-untranslated-issue.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,14 @@ function generatePreviewPath(filepath) {
7373
.replace(/\/README\.md$/, '') // READMEの場合はディレクトリのみ
7474
.replace(/\.md$/, '');
7575

76+
// reference 配下の特殊なパス変換
77+
if (basePath === 'reference/press-kit') {
78+
return 'press-kit';
79+
}
80+
if (basePath === 'reference/roadmap') {
81+
return 'roadmap';
82+
}
83+
7684
// チュートリアルの特殊なパス変換
7785
if (basePath.startsWith('tutorials/')) {
7886
// tutorials/first-app/intro -> tutorials/first-app

0 commit comments

Comments
 (0)