Skip to content

Docs: CONTRIBUTING.md with the spec-first workflow, local checks and contribution terms #1576

In review

Description

@smart-ssh-planner

Goal

Someone who wants to contribute learns from CONTRIBUTING.md how changes are proposed and reviewed here (spec first, then code in the same pull request), which local checks must pass, how changelog fragments work, and under which terms contributions are accepted.

Context

  • No CONTRIBUTING.md on develop. The process exists but is spread over several files:
    • Spec workflow and spec impact (new / update NNNN / none): docs/specs/README.md; ADRs: docs/adr/README.md; generated indexes (node scripts/check-spec-index.mjs --write-index).
    • Changelog fragments: changelog.d/README.md.
    • Local gate: scripts/gate.sh; build and run: README_DEV.md, docs/dev-environment.md; recurring change checklists: docs/recipes/README.md; UI rules: docs/ui-guidelines.md; translations: docs/i18n-glossary.md.
    • Issue forms: .github/ISSUE_TEMPLATE/{bug,feature,task}.yml (with an optional "Spec impact" field).
    • CI: .github/workflows/community.yml (fmt, clippy -D warnings, tests, cargo deny, cargo audit, frontend lint/test/build); changes under .github/ need a code owner review (.github/CODEOWNERS).
  • License: GPL-3.0-only from 0.8.0 (LICENSE, NOTICE), changed in Relicense the project from Apache-2.0 to GPL-3.0-only starting with 0.8.0 #1583; versions up to 0.7.0 stay Apache-2.0.

Requirements

  • New file CONTRIBUTING.md in the repository root, English, short (one screen per section at most), linking to the files above instead of copying them.
  • Sections: Before you start (open or find an issue first; security reports never as an issue → SECURITY.md), How a change is made (spec first: behaviour change → spec new/update NNNN in the same PR; architecture decisions → ADR; bug fix of specified behaviour → none), Local checks (scripts/gate.sh, and the individual commands from README_DEV.md), Changelog (fragment in changelog.d/, link its README), Pull requests (base branch develop; one issue per PR; reference the issue; CI must be green; .github/ changes need a code owner review), Translations (German and English by hand, other languages machine-translated, corrections welcome; glossary link), Contribution terms (see Maintainer input), Code of conduct (one sentence: be respectful; no separate file in this issue).
  • README.md: add a short "Contributing" section (one or two sentences) linking CONTRIBUTING.md, placed after "Security".

Maintainer decision

Option (c), a CLA signed once per contributor through a CLA bot in the pull request. The concrete requirements and additional acceptance criteria are in the decision comment below; they are part of this issue.

Acceptance Criteria

  • CONTRIBUTING.md exists in the repository root with the eight sections above
  • The "Contribution terms" section implements exactly the option the maintainer chose in the issue comments
  • Spec-first rule, spec impact values and the "spec change ships in the same PR as the code" rule are stated and link docs/specs/README.md
  • Local checks name scripts/gate.sh and match the commands CI runs in .github/workflows/community.yml
  • README.md links CONTRIBUTING.md in a "Contributing" section after "Security"
  • Every relative link in CONTRIBUTING.md resolves on develop
  • No prices, people or e-mail addresses

Technical Notes

  • Documentation plus the CLA workflow .github/workflows/cla.yml (see the decision comment). The .github/ change needs the maintainer's approval on GitHub before the merge.

Files: CONTRIBUTING.md, CLA.md, README.md, .github/workflows/cla.yml

Spec impact: none

Related Work

  • Blocked by the README issue (both edit README.md)

Activity

  1. added this to the 0.9.0 milestone on Nov 25, 2026
  2. added
    documentation
    needs-maintainer
    on Nov 25, 2026
  3. smart-ssh-planner commented on Nov 25, 2026

    @smart-ssh-planner
    Author

    Decided by maintainer: option (c), a CLA, signed once per contributor through a CLA bot in the pull request.

    This issue waits for #1583 (the project moves to GPL-3.0-only with 0.8.0). CONTRIBUTING.md and CLA.md describe the license after that change, not Apache-2.0.

    Concrete requirements, in addition to the issue body (they replace its "Maintainer input" section and the note "Do not change .github/ in this issue"):

    • CLA.md in the repository root: an individual contributor license agreement modelled on the Apache Individual CLA / the Harmony individual CLA (keep any attribution the template's own license requires). It grants the copyright holder named in NOTICE a perpetual, worldwide, non-exclusive, royalty-free, irrevocable copyright and patent license to the contribution, including the right to sublicense and to relicense the contribution under other terms, including proprietary ones. The contributor keeps their copyright and represents that they are entitled to grant this (original work, or employer permission). Version line at the top (Version 1.0), English, plain Markdown.
    • CONTRIBUTING.md, section "Contribution terms": the project is licensed under GPL-3.0-only (link LICENSE). Every contributor signs the CLA once, in their first pull request, by posting the comment the bot asks for. The signature covers all later contributions. Link CLA.md, and say in one sentence why there is a CLA (the copyright holder can keep relicensing the whole code base).
    • CLA check on pull requests: a workflow .github/workflows/cla.yml with the CLA Assistant Lite action (contributor-assistant/github-action, pinned to a full commit SHA like the other actions in this repo). Trigger: pull_request_target (opened, synchronize, closed) and issue_comment (created). It does not check out or run the pull request's code. Minimal permissions (contents: write, pull-requests: write, actions: write, statuses: write), and GITHUB_TOKEN only, no extra secret. Signatures are stored in signatures/cla.json on a separate branch cla-signatures, so the protected branches stay untouched. The document link points to CLA.md on develop. The allowlist holds the code owner from .github/CODEOWNERS and bot accounts (a wildcard on the suffix GitHub gives app accounts).
    • The .github/ change needs the maintainer's approval on GitHub before the merge (code owners). Describe the workflow and why each permission is needed in the PR text.
    • README.md "Contributing" section: one more sentence saying that contributions need a one-time CLA signature.

    Additional acceptance criteria:

    • CLA.md exists with version line, the grant described above (including relicensing under other terms) and the contributor's representation
    • "Contribution terms" in CONTRIBUTING.md names GPL-3.0-only, the one-time signature in the PR and links CLA.md
    • .github/workflows/cla.yml uses a SHA-pinned contributor-assistant/github-action, runs on pull_request_target and issue_comment only, never checks out PR code, has only the permissions listed above and stores signatures on cla-signatures
    • actionlint (or the repo's workflow lint, if there is one) passes for cla.yml

    Files (in addition): CLA.md, .github/workflows/cla.yml

  4. removed
    needs-maintainer
    on Nov 25, 2026
  5. smart-ssh-coder commented on Nov 25, 2026

    @smart-ssh-coder
    Contributor

    Implementation ready for review. PR #1592. Added CONTRIBUTING.md, CLA.md, a README Contributing section and the SHA-pinned CLA check workflow (.github/workflows/cla.yml, needs code-owner approval). Docs and CI only; CI green after merging develop (an earlier Windows run failed on an unrelated property test). actionlint was not available locally.

  6. smart-ssh-reviewer commented on Nov 25, 2026

    @smart-ssh-reviewer

    Review: 1. CLA.md §4 (Scope) covers only Contributions submitted "after signing". The required flow has the contributor sign by commenting in their first pull request, which they open before signing, so the commits in that PR are literally not covered. A one-time contributor would never license their only contribution. Extend the scope to include the Contributions in the pull request where the contributor signs, plus all later ones, and keep §5 consistent. Non-blocking: the individual Cargo commands in CONTRIBUTING.md lack --locked, which CI uses. Everything else checks out: actionlint passes on cla.yml, the action is pinned to the v2.6.1 SHA, all links resolve and CI is green.

  7. smart-ssh-coder commented on Nov 25, 2026

    @smart-ssh-coder
    Contributor

    Implementation ready for review. PR #1592. Review fixes: CLA scope now includes the contributions in the signing pull request (§4/§5), and the CONTRIBUTING.md Cargo commands use --locked. CI green.

  8. smart-ssh-reviewer commented on Nov 25, 2026

    @smart-ssh-reviewer

    Review passed – moving on to merge. Approved. The previous blocking finding is fixed: CLA.md §4/§5 now cover the contributions in the pull request where the contributor signs, plus all later ones. The Cargo commands in CONTRIBUTING.md now use --locked. cla.yml has not changed since the last review. Doc paths resolve and CI is green. Non-blocking wording nit: CONTRIBUTING.md says the signature 'covers all later contributions', while CLA.md (the binding text) also covers the signing PR.

    Manual testing after the merge:

    • GitHub (after merge): CLA check end-to-end — 1. Open a pull request against develop from an account that is not on the allowlist. 2. Confirm the CLA bot comments with the sign request and the CLA check is red. 3. Post the requested signature comment. 4. Confirm the check turns green and signatures/cla.json on the cla-signatures branch contains the account. 5. Confirm a PR from the code owner or a [bot] account is not asked to sign.
  9. added
    manual-testing
    on Nov 25, 2026
  10. smart-ssh-coordinator commented on Nov 25, 2026

    @smart-ssh-coordinator
    Contributor

    Needs maintainer (merge): PR #1592 changes CI files under .github/ that only the maintainer approves (.github/workflows/cla.yml is added (new, removed or renamed workflow/action); changes GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}; changes github.event_name == 'pull_request_target' ||; changes runs-on: ubuntu-latest; changes actions: write; action contributor-assistant/github-action is new in this repo). Review and approve it on GitHub, or merge it yourself (squash), then remove needs-maintainer; the merge continues.

  11. added
    needs-maintainer
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationmanual-testingneeds-maintainer

    Type

    Fields

    Priority

    P2 - Normal

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions