Skip to content

fix(run-enrichment): git add -f to override .gitignore on .nemar/ - #6

Merged
neuromechanist merged 1 commit into
mainfrom
4-add-central-run-enrichment-workflow
May 23, 2026
Merged

neuromechanist merged 1 commit into
mainfrom
4-add-central-run-enrichment-workflow

Conversation

@neuromechanist

Copy link
Copy Markdown
Member

First smoke test of the new central workflow (gh workflow run run-enrichment.yml -f dataset_id=nm099999 -f force=true) failed at the commit step with:

The following paths are ignored by one of your .gitignore files: .nemar
hint: Use -f if you really want to add them.

The dataset repo's .gitignore includes .nemar/ as a local-dev convenience (keeps the managed metadata folder out of git status when developers edit BIDS files). But the workflow IS the authoritative writer of .nemar/metadata.json, so it must override the ignore via -f.

Same latent issue existed in the legacy per-repo llm-enrichment.yml — nm099999's .gitignore was likely added after the legacy workflow last ran successfully on it, so the issue surfaced only when the central workflow tried to write for the first time.

Test plan

After merge, re-run gh workflow run run-enrichment.yml --repo nemarDatasets/.github -f dataset_id=nm099999 -f force=true. Expect green; commit to land on nemarDatasets/nm099999@main updating .nemar/metadata.json.

First smoke test against nm099999 failed at git add because the dataset repo's .gitignore includes .nemar/ (local-dev convenience). The workflow is the authoritative writer of .nemar/metadata.json so it must override the ignore via -f. Same latent issue existed in the legacy per-repo template; nm099999's gitignore was likely added after the legacy workflow last ran successfully on it.
@neuromechanist
neuromechanist merged commit af46873 into main May 23, 2026
@neuromechanist
neuromechanist deleted the 4-add-central-run-enrichment-workflow branch May 23, 2026 14:57
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