Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.71 KB

File metadata and controls

45 lines (30 loc) · 1.71 KB

Open Source Setup Guide

This guide describes the manual steps required to configure your GitHub repository for open source best practices.

1. Repository Settings

Go to Settings > General:

  • Features: Enable Issues, Discussions (optional but recommended for community building).
  • Pull Requests:
    • Allow merge commits: Disabled (keeps history clean)
    • Allow squash merging: Enabled (best for PRs)
    • Allow rebase merging: Disabled (can appear complex for some contributors)
    • Automatically delete head branches: Enabled (cleanup)

2. Branch Protection Rules

Go to Settings > Branches > Add branch ruleset or Add rule: Target branch: main

  • Require a pull request before merging:
    • Require approvals: 1 (at least)
    • Dismiss stale pull request approvals when new commits are pushed: Enabled
  • Require status checks to pass before merging:
    • Search for and select your CI jobs: Test, Lint, Build (from your ci.yml).
    • Require branches to be up to date before merging: Enabled
  • Do not allow bypassing the above settings: Enabled (applies to admins too).

3. Community Profile

Go to Insights > Community Standards to verify that GitHub recognizes all your new files (CODE_OF_CONDUCT, CONTRIBUTING, templates, etc.).

4. Security

Go to Settings > Security & analysis:

  • Dependabot alerts: Enabled
  • Secret scanning: Enabled
  • Code scanning: Enabled (if available)

5. Topics

Go to the main repository page (Code tab) and click the gear icon next to "About".

  • Add topics: tui, go, cli, spreadsheet, terminal for better discoverability.