netstack

Contributor Setup — Working with 2cld Repos

Applies to: Anyone contributing to 2cld federation repos

Prerequisites

Repo Types

Type Platform Examples Access
Public docs/sites GitHub netstack, sl, cf, wf, hwpc Anyone can read, contributors can push
Private coordination GitHub wip Collaborators only
Infrastructure Gitea (cat9.me) ns-account, nspwa, nscallbot, ns-site-template Org members

Cloning and Working

# GitHub repos
git clone https://github.com/2cld/REPO_NAME.git

# Gitea repos
git clone https://gitea.cat9.me/nsadmin/REPO_NAME.git

Commit Convention

# Standard commit
git commit -m "Brief description of change"

# Daily review (wip repo)
git commit -m "Daily review YYYY-MM-DD @daily-review-YYYY-MM-DD"

# Weekly review (wip repo)
git commit -m "Sunday Review YYYY-MM-DD @weekly-review-YYYY-MM-DD"

Branch Strategy

Session Logging

When working on a project, maintain session logs:

mkdir -p docs/log
# Write a log entry for each work session

See Session Logging Convention for format.

Sensitive Data

Never commit:

Use .gitignore patterns. See Sensitive Data Pattern.

Adding a New Repo to the Federation

  1. Create repo on GitHub or Gitea
  2. Clone to working machine
  3. Add standard structure (docs/, ops/, .gitignore)
  4. Add session logging (docs/log/)
  5. Add to coordination repo’s inventory (repo map)
  6. Document the machine + local path where you work on it