Skip to content

Apply branch protection to existing dataset repos #127

Closed

Description

@neuromechanist

Problem

Branch protection (requiring BIDS validation + version check CI to pass before merge) is applied during dataset creation, but datasets created before this feature was added (nm000103-nm000107, nm099999) have no branch protection.

Current Protection Rules (applied to new datasets)

From github.ts:applyBranchProtection():

  • Required status checks: bids-validation, version-check
  • strict: true (branch must be up to date)
  • PR reviews required (0 approvals, owner can self-merge)
  • No force pushes, no deletions
  • enforce_admins: false (admins can bypass)

Fix

Add an admin command or one-time script to apply branch protection to all existing dataset repos:

nemar admin repo protect <dataset-id>
# or
nemar admin repo protect --all

This calls the existing applyBranchProtection() function.

Affected Repos

  • nemarDatasets/nm000103
  • nemarDatasets/nm000104
  • nemarDatasets/nm000105
  • nemarDatasets/nm000106
  • nemarDatasets/nm000107
  • nemarDatasets/nm099999

Acceptance Criteria

  • All existing dataset repos have branch protection applied
  • Admin CLI command available for future one-off applications

Activity

  1. added
    bug
    on Feb 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions