Skip to content

Change branch protection timing (apply on public/DOI only) #47

Closed

Description

@neuromechanist

Summary

Currently branch protection is applied immediately after dataset creation. For private repos, this is unnecessarily restrictive; the owner should be able to push directly to main.

Proposed Change

  • Private repos: No branch protection on main (owner's sandbox)
  • When making public OR creating DOI: Apply branch protection (require PR)

Rationale: DOI = permanent record, needs protection. Private = owner's workspace.

Validated Approach

See .context/validated_workflows.md section 2 (GitHub Branch Protection).

Implementation

  1. Remove branch protection from dataset create flow
  2. Add branch protection call to:
    • dataset publish (making public) command
    • doi create command
  3. Document that private datasets allow direct pushes

Parent Issue

Part of #41

Activity

  1. added 2 commits that reference this issue on Jan 21, 2026
    18cc2b0
    6037765
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions