Skip to content

Latest commit

 

History

History
31 lines (27 loc) · 1.83 KB

CONTRIBUTING.md

File metadata and controls

31 lines (27 loc) · 1.83 KB

Contributing

See docs.unstract.com.

PR titles, labels and release branches

Every change merges to main first, except a release-only change (see release-branch-only below). Release lines are release/X.Y branches, and the Backport workflow copies fixes from main to the lines that need them. The PR labels decide what it copies, so set them when you open the PR.

  • Title: TICKET [TYPE] text, or [TYPE] text with no ticket. The lint-pr check fails on any other form, whatever the labels. The type feeds the changelog; it does not decide what Backport copies.
  • A PR into main needs exactly one backport label. lint-pr fails without one:
    • backport/X.Y (for example backport/0.188): Backport also copies it to release/X.Y and to every newer active line. Name the oldest line that needs the fix. Lines still in RC get it automatically; a released line gets it only when a Backport run confirms it. A line released for cloud whose on-prem is still in RC counts as released: if only its on-prem RC needs the fix, label it backport/X.Y for that line.
    • main-only: it stays on main. Never with a backport/ label.
    • A revert takes the backport label of the PR it reverts. GitHub's Revert button opens it with no label.
    • Choose by whether a release line needs the change, never from the title type: a [FIX] can be main-only, and a [MISC] can need a backport. If unsure, ask whoever raised the PR. Never add a backport label by automation.
  • A PR into release/X.Y needs no backport label, and lint-pr refuses main-only there.
  • release-branch-only: only for a PR into release/X.Y with a change that is not on main. Add it when you open the PR. lint-pr refuses it on a PR into main.