This repository has adopted the Contributor Covenant as it's Code of Conduct. It is expected that participants adhere to it.
If you are unsure about whether or not a change is desired, you can create an issue. This is useful because it creates the possibility for a discussion that's visible to everyone.
When fixing a bug it is fine to submit a pull request right away.
Steps to be performed to submit a pull request:
- Fork the repository and create your branch from
main. - Run
bun installin the repository root. - If you've fixed a bug or added code that should be tested, add tests!
- If you changed anything under
dist/, stage it (git add dist), then runbun run build:assetsandbun run buildand commit the results. Embedded assets are read from the git index, so unstaged changes are refused. - Run
bun run verify. It replays every step of the CI Tests job locally, in order, and stops at the first failure. - Fill out the description, link any related issues and submit your pull request.
You have Bun at the version in package.json's packageManager, Node,
PowerShell 7 (pwsh), the .NET SDK and
the GitHub CLI (gh, signed in or with GH_TOKEN set) installed: the Tests job runs scripts
with each of them.
Make sure your editor and terminal that run the tests are set to Powershell 7 or above with
Git's Unix tools for Windows installed. Some tests require you to be able to run sh and other unix commands.
By contributing to this repository, you agree that your contributions will be licensed under its MIT license.
Always cut a release with scripts/release/cut-release.sh <tag> from a checkout of the commit you intend to release,
rather than gh release create directly. cliVersion: latest and the v0 major tag resolve to a release the instant
it's published, but binary build+attach happens asynchronously afterward and can fail on one platform without failing
the others visibly - a plain gh release create leaves "latest" pointing at a release with no usable binaries until
someone notices and fixes it (this took ~6 hours once, breaking every consumer on latest in the meantime - see
#285).
The script creates the release as a draft (never resolved by /releases/latest), builds and attaches binaries to it
while still a draft, verifies every expected asset actually landed, and only then publishes - so latest never resolves
to an incomplete release.