Skip to content

Collaboration & the Lifecycle

Every NEMAR dataset lives in two phases, and the collaboration model is different in each:

  • Private (draft). The repository is closed. You add collaborators, who get push access and edit the data directly. This is where curation happens.
  • Public (published). The repository is open and has a DOI. Anyone can contribute through pull requests; nobody pushes to main directly. Collaborators are no longer needed to contribute, but can still help review proposed changes. A NEMAR administrator performs the final merge after checks and review.

The short version: private data uses collaborators, public data uses pull requests.

Lifecycle at a glance:

  1. Upload — NEMAR creates a private repository and storage area.
  2. Curate privately — the owner and collaborators push changes directly while the dataset is a draft.
  3. Request publication — an administrator reviews the request and approves or denies it.
  4. Publish — the repository becomes public, the release receives a DOI, and the public branch is protected.
  5. Improve through pull requests — anyone can propose a change; a NEMAR administrator reviews the checks and merges it.
  6. Create the next version — a merged public change becomes a new release with a version DOI, returning to step 5.

A new dataset is created private: a private GitHub repo, a private S3 prefix, and you as owner. Sandbox training is a one-time prerequisite.

Terminal window
nemar sandbox # one-time, required before your first upload
nemar dataset validate ./study # optional; upload validates too
nemar dataset upload ./study

See Uploading Datasets for the full walkthrough.

While the dataset is private, main is open to push, so collaborators iterate directly without pull requests.

Terminal window
nemar dataset invite <username> <dataset-id>

Only the owner or an admin can invite. The invitee must be an approved NEMAR user with a linked GitHub account. They receive:

  • push access to the GitHub repo, and
  • upload access to the dataset’s S3 storage.

A user can request access to a private dataset; the owner approves or denies.

Terminal window
# Requester
nemar dataset request-access <dataset-id>
# Owner or admin
nemar dataset access list <dataset-id> # pending requests
nemar dataset access approve <username> <dataset-id> # grants push + upload
nemar dataset access deny <username> <dataset-id>

Approving grants exactly the same access as an invite. A denied user may request again later.

Terminal window
nemar dataset clone <dataset-id>
cd <dataset-id>
nemar dataset get . # fetch the data files (needs auth on a private dataset)
# make changes, then:
nemar dataset save -m "Add subjects 10-15"
nemar dataset push # pushes commits + data straight to main

List who has access at any time with nemar dataset collaborators <dataset-id>. To remove someone, contact an admin.

Publication is a request the owner submits and an admin approves. It cannot be self-served.

Terminal window
nemar dataset publish request <dataset-id>
nemar dataset publish status <dataset-id>

The request is blocked until BIDS validation passes, and (for original submissions) until the dataset meets the submission standards. On approval, an admin runs an automated pipeline that makes the repo public, opens S3 read access, and mints a permanent DOI. See Publishing Datasets for every step.

For published datasets, policy prohibits direct pushes and force-pushes to main (a privacy correction under the Takedown Procedure is the one exception), and every change must go through a PR that passes BIDS validation and the version check. This is why collaborators are no longer required to contribute, anyone can propose a change.

For published datasets, including changes proposed by owners or administrators:

  1. Put data or metadata edits on a branch and open a PR against main; do not push changes directly to main.
  2. Include a new version and a matching CHANGES entry. See Versioning.
  3. Complete the applicable dataset checks and review. Required checks must pass on the PR’s current head commit, not an earlier revision; resolve blocking findings before merging.
  4. A NEMAR administrator verifies the current head, check results, review findings and mergeability, then merges the PR. A green check or an automated review is not itself permission to merge.

This is the review policy, not a claim that GitHub permissions alone enforce every step. Existing write access or an administrative bypass does not authorize skipping the workflow. The separately documented privacy-correction procedure is not a routine update path.

Exceptional force-merge authority is limited to NEMAR administrators or NEMAR organization owners. This means an explicit override on a PR, not a direct push or a routine substitute for checks and review. Dataset ownership or collaborator write access alone does not grant that authority. Whether GitHub permits an override depends on the repository’s actual role and ruleset configuration; automated NEMAR App permissions are separate from human authority.

Anyone can contribute by forking the repo and opening a pull request.

The owner and collaborators use the CLI wrappers, which push to a branch and open the PR for you:

Terminal window
nemar dataset update <dataset-id> -m "Fix channel locations" # data or metadata change
nemar dataset release <dataset-id> --type minor # version bump only

Whichever route you take, give the pull request a title that says what changed in plain words, and a description that says what changed and why. Pull Request Titles and Descriptions has the rules and an example.

Merging a PR tags a new release and mints a version DOI automatically. See Versioning for the release workflow.

Eligible commits of a pull request to a published dataset get an automated review from NEMAR (unless the pull request is a draft, opened by a bot, or not aimed at main). It shows up as the NEMAR PR Review check on the commit and as a comment on the pull request. The review reads the change and asks whether anything the dataset already held was lost, whether the revision advances (a new version, and an entry for it in CHANGES), whether the dataset is materially better, and whether the title and description are clear. Versioning lists what it looks for in a revision.

Add to a dataset; do not rewrite what its original authors published. The review fails a pull request that:

  • alters, moves or removes a line of the README that the dataset already had at its first version, beyond a minor edit such as a typo, or puts new lines inside one of the original paragraphs;
  • edits, moves or removes any line that CHANGES already had (it keeps its history, so add a new entry instead);
  • alters or removes one of the dataset’s author fields in dataset_description.json (Name, Authors, License, ReferencesAndLinks, Funding, Acknowledgements, HowToAcknowledge, DatasetDOI, EthicsApprovals), or changes a value a participant already has in participants.tsv or participants.json.

Put your account of the change in CHANGES, add new information in a new section, or ask a NEMAR administrator to correct a line or a field. Adding to Authors, Funding, EthicsApprovals or ReferencesAndLinks, filling in an empty field, and adding text to the README after the dataset’s first version are fine. Replacing the content of a recording file is not decided automatically; a person looks at it.

The pull request title must not contain a citation (an author and a year, as in Lee2019 EEG dataset, or a DOI) or an unfilled template field, and a pull request may not rename the dataset to such a name.

What the check says:

Check What it means for you
Passes The review found nothing lost, the revision advances, and the dataset is materially better. A person still merges.
Needs changes The review found a problem; its comment says what to change. Push a fix.
Could not decide The review could not reach a verdict, or a fact needs a person. A pull request that is too large for one review is asked to be split. A NEMAR administrator will look.
Not reviewed No review of this commit is on record, for example because an administrator has paused the reviews of that contributor; a person looks.

Each new eligible commit is reviewed again, subject to the exceptions below. Editing the title, the description or the target branch re-reviews the same commit, up to five times; a NEMAR administrator can also run a review again. The deployed automated reviewer still exempts qualifying NEMAR owners and administrators. That implementation does not waive the review policy above; removal of the automatic exemption is tracked in nemar-cli issue #2209. The title rule applies to their pull requests too.

An upstream re-pull’s own pull request may show Waived: upstream re-pull when its repository, branch and exact head match NEMAR’s recorded re-pull. This is not a blanket exemption for every change to a mirrored dataset.

GitHub enforcement depends on the repository’s configured rulesets. Where NEMAR PR Review is not a required check, administrators must still apply the review policy above and resolve blocking findings before merging. A pass is not a merge.

Publishing does not remove collaborators. They retain write access and can propose and review changes, but must follow the workflow above: no direct updates to main, and final merge by a NEMAR administrator after checks and review. GitHub may expose a merge control to a collaborator; that capability does not change the policy.

Action Owner Collaborator Anyone (public repo)
Push directly to main (private) ✅ ✅ — repo is closed
Push directly to main (public) ❌ policy ❌ policy ❌ policy
Open a pull request (public) ✅ ✅ ✅ (via fork)
Merge a pull request (public) Only as a NEMAR admin after checks and review Only as a NEMAR admin after checks and review ❌
Invite collaborators / review access ✅ ❌ ❌
Request publication ✅ ❌ ❌
  • Sandbox training is required once before your first upload.
  • Invitees must be approved NEMAR users with a linked GitHub account, or the grant is refused.
  • request-access on a public dataset grants nothing — the repo is already open, so fork it and open a PR (owners and collaborators also use the PR workflow).
  • Publication is gated: BIDS validation must be green, and original submissions must meet the submission standards.