|
| 1 | +<!-- |
| 2 | +SPDX-FileCopyrightText: 2026 LibreCode coop and contributors |
| 3 | +SPDX-License-Identifier: AGPL-3.0-or-later |
| 4 | +--> |
| 5 | + |
| 6 | +# Nextcloud release planning |
| 7 | + |
| 8 | +The reusable release-plan workflow is intentionally non-mutating. It validates |
| 9 | +release prerequisites before any tag, GitHub Release, signing or App Store |
| 10 | +publication occurs. |
| 11 | + |
| 12 | +## Architecture |
| 13 | + |
| 14 | +The reusable workflow owns orchestration concerns: permissions, runner selection |
| 15 | +and checking out the caller plus the workflow tooling repository. |
| 16 | + |
| 17 | +The release-plan operation itself is exposed as the local composite action |
| 18 | +`actions/release-plan`. The action maps its declared inputs to a small, |
| 19 | +namespaced environment contract and invokes `scripts/release_plan.py`. |
| 20 | + |
| 21 | +Business rules, input parsing, GitHub API checks, exit status and step-summary |
| 22 | +rendering live in the Python script and are covered by unit tests. The workflow |
| 23 | +does not contain release decision logic. |
| 24 | + |
| 25 | +This follows GitHub's distinction between reusable workflows, which reuse whole |
| 26 | +workflow/job structures, and composite actions, which encapsulate a reusable |
| 27 | +sequence of steps within a job. |
| 28 | + |
| 29 | +## Checks |
| 30 | + |
| 31 | +The first implementation validates: |
| 32 | + |
| 33 | +- semantic release version in `MAJOR.MINOR.PATCH` form; |
| 34 | +- execution from the declared stable branch; |
| 35 | +- `appinfo/info.xml` version matches the requested release; |
| 36 | +- changelog contains a level-2 section for the requested version; |
| 37 | +- optional milestone exists, is closed and has zero open issues; |
| 38 | +- optional GitHub blocker queries return zero open issues or pull requests. |
| 39 | + |
| 40 | +Blocker queries are caller-owned. This keeps project conventions out of the |
| 41 | +shared workflow. A caller can model pending backports with a label query without |
| 42 | +making that label part of the reusable workflow contract. |
| 43 | + |
| 44 | +## Example caller |
| 45 | + |
| 46 | +```yaml |
| 47 | +jobs: |
| 48 | + release-plan: |
| 49 | + uses: LibreCodeCoop/github-workflows/.github/workflows/release-plan.yml@<full-release-sha> # v0.1.0 |
| 50 | + with: |
| 51 | + version: 16.0.0 |
| 52 | + stable_branch: stable36 |
| 53 | + milestone: 16.0.0 |
| 54 | + blocker_queries: '["label:\"backport pending\""]' |
| 55 | +``` |
| 56 | +
|
| 57 | +The workflow only needs read permissions. Signing keys and App Store tokens are |
| 58 | +deliberately not accepted by the planning stage. |
| 59 | +
|
| 60 | +Publication will be implemented as a separate privileged workflow after the |
| 61 | +planning contract is proven with LibreSign and at least one additional app. |
0 commit comments