Edit this page

Contributing

How to contribute code, translations and docs to Gitpay, and get paid for it on some issues.

Gitpay is built in the open at github.com/worknenjoy/gitpay, under the MIT license. Contributions of every size are welcome.

Pick something to work on

  • Browse issues on GitHub.
  • Some of Gitpay’s own issues are funded on Gitpay. They’re paid like any bounty: see Submit a solution.
  • For a bigger change, open an issue first to agree on the approach.

The workflow

  1. Fork the repository and create a branch from master.
  2. Make your change, with tests. See Testing.
  3. Run npm run lint-fix and npm run typecheck.
  4. Open a pull request that references the issue, for example Fixes #123, and fill in the template.
  5. Check that CI is green before asking for review.

Code conventions

  • TypeScript for new code, with async/await.
  • Two spaces for indentation. ESLint and Prettier enforce the rest.
  • Money goes through getPaymentProvider(), never a provider SDK directly.
  • New scheduled jobs go in Inngest, not cron.ts. See Scheduled jobs.
  • UI components go in the design library, with a Storybook story. See Design system.

AI agents and automation

  • AGENTS.md and CLAUDE.md in the repository root describe the project, commands and conventions for AI coding agents. Keep them current when you change how things are built or tested.
  • Three experimental GitHub Actions workflows draft a pull request from an issue when it gets a label: AIPR (.github/workflows/AIPR.yml), AutoPR (autopr.yml) and Code Generation (chatgpt-code-generation.yml). A comment on a pull request can trigger them too.
  • Those drafts are opened by a bot, so they can’t claim a bounty. Treat them as a starting point: review, test and finish the work, and open the pull request from your own account.

See Working with AI.

Translations

The app is in English and Portuguese.

  • UI text uses React Intl. Write the English message in code with an ID, then run npm run translate in frontend/. Don’t edit the generated translation files by hand.
  • Portuguese comes through Crowdin, configured in crowdin.yml.
  • Emails use the server-side strings in locales/.

Documentation

These docs are a Jekyll site on the gh-pages branch.

  • Every page has Edit this page on GitHub at the bottom.
  • English pages are in _docs/en/, Portuguese pages in _docs/br/, with the same file name. Update both, or open an issue for the translation.
  • The sidebar is _data/navigation_docs.yml.
  • Diagrams are generated from _scripts/diagrams/specs.js with node _scripts/diagrams/build.js.

Report a bug

Open an issue with a short summary, steps to reproduce, what you expected, and what happened. Report security issues privately to contact@gitpay.me.

Next steps