Skip to content

Latest commit

 

History

History
55 lines (43 loc) · 2.99 KB

CONTRIBUTING.md

File metadata and controls

55 lines (43 loc) · 2.99 KB

Contributing to OpenBot

Thanks for helping. Open a pull request against main from your fork, and say in its description what it changes and why.

Don't break the API or the database

Before you change anything under api/, an app's requests, a database change or release-policy.json, read docs/api-and-migrations.md. Not optional. OpenBot is live. Anything a released app uses keeps working for 12 months, and a migration never breaks a running server. CI enforces most of it; the page says what and how.

The release note goes in the description, not in CHANGELOG.md

CHANGELOG.md is written by the release, and by nothing else. Your pull request's description carries its note, under ## Changelog (the template has the heading): what a deployment does differently afterwards, for the person deciding whether to upgrade, each line under a bold heading on a line of its own, the way CHANGELOG.md groups them. Write none when nobody running OpenBot would notice. Preparing a release collects the notes of every pull request it ships into its section of CHANGELOG.md.

## Changelog

**API.**

- **Added: reading an app with its actions in a body.** What changes for a deployment.

CI's release note check fails a pull request that changes CHANGELOG.md, has no note, or deprecates part of the API without naming it in the note with its sunset. It reads the description at the end of the run, so an edit made while CI runs counts; after the run, a maintainer re-runs it for a pull request from a fork, and a branch of this repository's re-runs on its own when the description is edited. Nothing needs to be pushed. A note can still be corrected after the pull request merges, by editing its description before the release is prepared.

How CI runs on your pull request

  • A maintainer approves it first. CI on a pull request from an outside contributor waits for a maintainer to approve it before it runs.
  • It runs on GitHub's standard runners, one contributor run at a time. Runs from forks share one queue, so yours may wait for another contributor's to finish.
  • It may be paused when the team needs the runners. If CopilotKit's own CI is waiting for a runner, contributor runs in progress are stopped and a comment on your pull request says so. Your CI re-runs on its own once the runners are free. Nothing is needed from you, and a pause says nothing about your change.
  • A new push starts a new run. If you push again while a run is waiting, the newer commit is the one that gets checked.
  • It merges through a merge queue. Once it is approved and CI passes, a maintainer adds it to main's merge queue, which runs CI once more on top of main and the pull requests queued ahead of it, and merges it when that passes. You never need to update your branch from main for it to merge.

Locally, bun install and then bun test runs the suite, bun run lint and bun run format:check run the linters, and bun run typecheck checks the types.