Open-Source Wikis

/

Bubble Tea

/

How to contribute

charmbracelet/bubbletea

How to contribute

Bubble Tea welcomes pull requests. The repo's official guidance is the GitHub "Contribute" page (https://github.com/charmbracelet/bubbletea/contribute); this wiki section adds practical pointers derived from the codebase.

Where work happens

  • Default branch: main
  • CI: GitHub Actions (.github/workflows/) runs build.yml, lint.yml, coverage.yml, and examples.yml on every push and PR. Releases are cut by release.yml on tag push.
  • Issues and discussions: GitHub issues + Charm's Discord/Matrix (linked from the README).

Pickup workflow

  1. Pick an issue or describe a small change in a fresh issue first if it is non-trivial. The maintainers prefer to align on shape before code.
  2. Fork the repo, create a branch off main, write code, run lint and tests locally.
  3. Open a PR with a clear "what / why / how to test" description. Reference any issues you are closing.
  4. PRs are reviewed by the Charm team. Expect feedback on naming, error wrapping (wrapcheck is enabled), and gofumpt formatting.
  5. Once green and reviewed, a maintainer squashes-merges. Conventional Commit prefixes (feat:, fix:, chore:, docs:) are used in commit messages.

Definition of done

A PR is ready to merge when:

  • task lint passes.
  • task test (i.e. go test ./...) passes locally and on CI.
  • examples/ and tutorials/ still build (build-examples job in CI).
  • New public API has GoDoc comments. Comments use the [Type] and [Func] link format as elsewhere in the codebase.
  • Behaviour-changing edits update UPGRADE_GUIDE_V2.md or the relevant example, where applicable.
  • No unrelated gofumpt/goimports changes are introduced.

Sub-pages

Built by Factory AutoWiki from public repository content. It is a generated preview for codebase exploration, not source-maintained documentation.

How to contribute – Bubble Tea wiki | Factory