Skip to content

Latest commit

 

History

History
64 lines (46 loc) · 2.71 KB

CONTRIBUTING.md

File metadata and controls

64 lines (46 loc) · 2.71 KB

Contributing

Thanks for helping. Bug reports, price updates and pull requests are all welcome.

Developer Certificate of Origin

Contributions are accepted under the Developer Certificate of Origin (DCO), not a CLA. Every commit must carry a sign-off line that matches its author:

Signed-off-by: Your Name <you@example.com>

git commit -s adds it. CI rejects commits without one. To fix a branch: git rebase --signoff main and force-push.

By signing off you certify the DCO 1.1: that you wrote the change or have the right to submit it under the license of the part of the repository it touches.

Licenses

  • Everything outside ee/ is Apache-2.0 (LICENSE).
  • ee/ is under LICENSE-EE.
  • Code outside ee/ must never import from ee/; CI checks this. Capture, the local ledger, the command line, upload, the server and the dashboard must work with no license present. ee/ plugs in through the server's extension points (extensions, migrations and hosting in apps/server/src/run.ts).
  • Running Sessionly as a service for many organisations (signing up, signing in with Google or GitHub, SESSIONLY_HOSTED=true) is ee/src/hosted, under LICENSE-EE.

Before you open a pull request

cargo fmt --check && cargo clippy --all-targets -- -D warnings && cargo test
pnpm install
pnpm typecheck && pnpm test && pnpm build

Documentation

The documentation is the pages in docs-site/, published at docs.sessionly.dev. A change to what a command, a setting or an endpoint does comes with the change to its page. docs-site/README.md says how to preview the site; README.md stays short and points there.

Releases

A release is made by pushing a tag: set version in crates/sessionly/Cargo.toml, commit (with the updated Cargo.lock), and push the tag v<version> on that commit. The Release workflow builds the Linux and macOS binaries and publishes them with SHA256SUMS; it stops if the tag and the version disagree. Run by hand from the Actions page, the workflow builds the same archives without publishing, which is a way to try the build.

A published archive is never replaced: the script that sessionly install --repo writes into other people's repositories carries its checksum. A fix is a new version.

The GitHub Action has its own version, version in action/package.json. Bump it, and CURRENT_ACTION in apps/server/src/pulls.ts to the same value, with every change to what a report contains. A test fails when the two differ.

Prices

Model prices live in crates/sessionly/src/pricing.rs. Never guess one: a model without a published price stays out of the table, and its requests are reported as unpriced.