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
- Fork the repository and create a branch from
master. - Make your change, with tests. See Testing.
- Run
npm run lint-fixandnpm run typecheck. - Open a pull request that references the issue, for example
Fixes #123, and fill in the template. - 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.mdandCLAUDE.mdin 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) andCode 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 translateinfrontend/. 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.jswithnode _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.