Skip to content

fix: read .templatesyncignore from template remote in GitLab sync#17

Merged
h13 merged 1 commit intomainfrom
fix/sync-template-include-list
Mar 27, 2026
Merged

fix: read .templatesyncignore from template remote in GitLab sync#17
h13 merged 1 commit intomainfrom
fix/sync-template-include-list

Conversation

@h13
Copy link
Copy Markdown
Owner

@h13 h13 commented Mar 27, 2026

Summary

  • GitLab の template sync スクリプトがローカルの .templatesyncignore を読んでいたため、テンプレート側で新ファイル追加と .templatesyncignore 更新が同時に行われた場合、新ファイルが sync MR に含まれなかった
  • git show template/main:.templatesyncignore でテンプレート側のホワイトリストを読むように修正

Root Cause

sync-template.yml の include リスト構築がローカルの .templatesyncignore に依存していた。テンプレートで同時に追加された新ファイルはリストに含まれず、.templatesyncignore だけが更新される不整合な MR が生成されていた。

Test plan

  • GitLab Template Project で template_sync を手動トリガーし、新ファイルが MR に含まれることを確認
  • templatesyncignore_check が通ることを確認

The sync script was reading the local .templatesyncignore to build
the include list. When the template adds new files and updates
.templatesyncignore in the same commit, the local copy doesn't
include the new entries yet, so the new files are never copied.

Read from template/main:.templatesyncignore instead, falling back
to the local copy if unavailable.
@h13 h13 merged commit 1da732e into main Mar 27, 2026
4 checks passed
@h13 h13 deleted the fix/sync-template-include-list branch March 27, 2026 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant