Repository navigation
Add central run-version-check workflow (unblocks PRs where per-repo Actions are unavailable) - #91
Merged
Merged
Conversation
version-check is a required status check in the NEMAR branch protection ruleset, but it only exists as a per-repo workflow. Where per-repo Actions are unavailable the check can never be produced, so enrichment PRs stay BLOCKED forever even though Run BIDS Validation already passes centrally. This mirrors run-bids-validation.yml: mint a per-repo App token, post a check-run named exactly 'version-check' on the PR head SHA, compare dataset_description.json Version between the branch and main, and complete the check. Currently 37 sourcedata PRs are blocked on this.
bruAristimunha
added a commit
to bruAristimunha/nemar-cli
that referenced
this pull request
Aug 12, 2026
version-check is a REQUIRED status check in the NEMAR branch protection ruleset, but it shipped as a full per-repo workflow. On any dataset repo where per-repo Actions do not run, the check can never be produced, so PRs stay BLOCKED indefinitely even when Run BIDS Validation already passes centrally. This mirrors the BIDS Validation shim (Phase 4, nemarOrg#610): the per-repo file now just dispatches repository_dispatch[run-version-check] at nemarDatasets/.github, where run-version-check.yml performs the comparison and posts the required 'version-check' check-run back onto the PR head SHA. Central workflow: nemarDatasets/.github#91 (merged). Unblocked 37 sourcedata-enrichment PRs that were stuck on this.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
version-checkis a required status check in the NEMAR branch protection ruleset, but it exists only as a per-repo workflow. Where per-repo Actions are unavailable the check can never be produced, so PRs stayBLOCKEDindefinitely — even thoughRun BIDS Validationalready passes via the central workflow.This adds
run-version-check.yml, mirroringrun-bids-validation.yml:repository_dispatch[run-version-check]with{dataset_id, ref, head_sha, pr_number}, plusworkflow_dispatchfor manual recoveryversion-checkon the PR head SHAVersionindataset_description.jsonbetween the branch andmain, same logic as the per-repo workflowContinues the centralisation in nemarOrg/nemar-cli#601 (
run-enrichmentPhase 1,run-version-doiPhase 2).Context: 37 sourcedata-enrichment PRs are currently blocked on exactly this, each already passing
Run BIDS Validation.