mirror of
https://github.com/penpot/penpot.git
synced 2026-11-26 21:00:32 +00:00
📚 Consolidate changelog workflow guidance
Move helper constraints into the release workflow and remove the separate overlapping memory. AI-assisted-by: gpt-6.1-terra
This commit is contained in:
parent
e4e31c962b
commit
ea458b85ca
@ -44,7 +44,7 @@ This is a monorepo. Principles that apply to one module do *not* generally apply
|
||||
- `scripts/gh.py` — GitHub operations helper: list milestone issues, fetch PR details, compare against CHANGES.md, create issues with their Issue Type in one command. Requires `gh` CLI. See `mem:scripts/gh`.
|
||||
- Before changing coverage summaries or PR comments, read `mem:scripts/coverage-reporting` for metrics, concurrent comment updates, and fork permissions.
|
||||
- `scripts/project-anomalies.py` — Main-board anomaly check for a milestone (`check` writes `tmp/<MILESTONE>-ANOMALIES.md`). Bulk resolution via `scripts/gh.py`. See `mem:scripts/project-anomalies`.
|
||||
- `scripts/changelog.py` — Changelog checks for `mem:workflow/updating-changelog`: `boom` (generate the `:boom:` section from `breaking change` issues), `check-merged` (PR merge status), `cross-ref` (milestone PRs vs changelog section), `report` (anomaly report to CHANGES-ISSUES.md). Calls `scripts/gh.py` via subprocess. See `mem:scripts/changelog`.
|
||||
- Changelog release and audit workflow: `mem:workflow/updating-changelog`.
|
||||
- `scripts/error-reports.mjs` — Query error reports via RPC API with token authentication. Supports list/get operations with filtering and pagination. See `mem:scripts/error-reports`.
|
||||
- `scripts/clean-node-modules` — Remove stale `node_modules` from all pnpm workspaces (root, modules, member packages). Keeps the shared pnpm store at `<repo>/.pnpm-store` unless `--store`; ignores `external/` and `.opencode/`. Usage and reinstall steps: `mem:workflow/updating-pnpm`.
|
||||
- `scripts/setup-opencode` — Install the opencode CLI in-container as a global pnpm package in `$PNPM_HOME`. Not part of the devenv image; see `mem:devenv/core`.
|
||||
|
||||
@ -1,7 +0,0 @@
|
||||
# Changelog helper
|
||||
|
||||
Use `python3 scripts/changelog.py <subcommand> --help` for current CLI options. For release policy, eligibility and approval order see `mem:workflow/updating-changelog`.
|
||||
|
||||
- `collect` reads GitHub and the local changelog and prints a JSON snapshot; the snapshot can include unpublished release or security material. The consuming commands accept `--snapshot` for the same milestone. `cross-ref` and `report` still read the current changelog; `report` can query GitHub for additional references missing from the snapshot.
|
||||
- `boom` and `security` print by default. `--write` replaces or removes their named subsection only. `cross-ref` checks the version section without writing; `report` overwrites the report file even without a write flag. `dev-only-bugs --apply` is a GitHub write, not a report option.
|
||||
- Keep version lookup, reference parsing and eligibility shared across commands. Do not replace link-aware matching with bare issue numbers; legacy links are still supported. Batch unknown references through `scripts/gh.py`; keep queries out of per-entry loops.
|
||||
@ -5,4 +5,4 @@ Use authenticated `gh` with `python3 scripts/gh.py <subcommand> --help` for curr
|
||||
- `issues` lists issues by milestone (exact title) or with no milestone; milestone queries default to closed issues. `issue` and `comments` fetch issue details and comments. `prs` fetches specific PRs or lists a milestone (merged only by default); request all states when auditing unmerged PRs.
|
||||
- `create-issue` creates the issue and then sets its Issue Type; this is not atomic. For authorization, metadata, and recovery after a partial creation, read `mem:workflow/creating-issues`. `link-issue` sets the Development association, not the PR body; follow `mem:workflow/creating-prs`. The helper trusts the successful mutation because GitHub's link readback can omit mutation-created links.
|
||||
- `advisories` lists or inspects repo advisories. Patched-version matching compares exact tokens, not prefixes, and does not require publication. The endpoint uses cursor pagination: use `gh api --paginate --slurp`, not numeric pages, which can repeat the same data.
|
||||
- `issues --compare` can mistake a same-numbered Taiga reference or prose token for a GitHub issue. Use the changelog-specific reconciliation in `mem:scripts/changelog` when reference targets matter.
|
||||
- `issues --compare` can mistake a same-numbered Taiga reference or prose token for a GitHub issue. Use the changelog-specific reconciliation in `mem:workflow/updating-changelog` when reference targets matter.
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# Updating the changelog
|
||||
|
||||
Use this runbook to prepare a release or audit a version. Only update `CHANGES.md` when authorized under `AGENTS.md`. GitHub is the source for release entries; generate the breaking and security sections, not hand-written substitutes. See `mem:scripts/changelog` for command behavior and `mem:scripts/gh` for GitHub lookups.
|
||||
Use this runbook to prepare a release or audit a version. Only update `CHANGES.md` when authorized under `AGENTS.md`. GitHub is the source for release entries; generate the breaking and security sections, not hand-written substitutes. Use `python3 scripts/changelog.py <subcommand> --help` for CLI options and see `mem:scripts/gh` for GitHub lookups.
|
||||
|
||||
## Sources and eligibility
|
||||
|
||||
@ -23,6 +23,8 @@ Use this runbook to prepare a release or audit a version. Only update `CHANGES.m
|
||||
|
||||
Confirm the release version. Save `python3 scripts/changelog.py collect "<VERSION>"` output in a private temporary file (`$snapshot`); it can contain unpublished advisories and PR text. Reuse it through review and verification. Collect again if GitHub changes, or if new references now need to be resolved.
|
||||
|
||||
The consuming commands accept a snapshot for the same milestone, but `cross-ref` and `report` still read the current changelog; `report` can query GitHub for references absent from the snapshot.
|
||||
|
||||
### Review
|
||||
|
||||
- Reconcile the current version before adding entries. Remove duplicates already listed in an earlier version (earlier wins for backports), stale milestone entries, deleted or transferred issues, and issues now open or excluded. Move retyped issues to the proper section, or remove them if now `Task`. Fix stale PR references, but don't silently drop cross-milestone discrepancies; use **Anomaly report** below. Reconcile the labels for breaking changes and highlights, then add eligible missing issues.
|
||||
@ -31,7 +33,7 @@ Confirm the release version. Save `python3 scripts/changelog.py collect "<VERSIO
|
||||
|
||||
### Write
|
||||
|
||||
- When authorized, reconcile and draft regular and highlight entries. Preview generated sections first by omitting `--write`. The version header must exist before replacing the generated sections.
|
||||
- When authorized, reconcile and draft regular and highlight entries. Preview generated sections first by omitting `--write`; with it, `boom` and `security` replace or remove only their named subsection. The version header must exist before replacing the generated sections.
|
||||
|
||||
```bash
|
||||
python3 scripts/changelog.py boom "<VERSION>" --snapshot "$snapshot" --write
|
||||
@ -53,3 +55,7 @@ python3 scripts/changelog.py report "<VERSION>" --snapshot "$snapshot"
|
||||
- A breaking entry without the label needs a source correction or classification as a regular entry; a missing breaking entry needs regeneration or label correction. Highlight entries must match the eligible labels; resolve the underlying decision instead of silently selecting different highlights.
|
||||
- Treat missing major/minor highlights and highlights lacking issue or PR references as warnings, not the same as counted mismatches. A patch release should not require a highlights section. Treat unconfirmed dev-only bug candidates as warnings as well; see `scripts/changelog.py` for the report codes.
|
||||
- A deleted or transferred issue can lose its normal entry while a related advisory stays in `:lock:`. For historical Taiga references, resolve the actual GitHub issue from its text or fix PR; matching bare numbers are not enough.
|
||||
|
||||
## Maintaining the helper
|
||||
|
||||
- Keep version lookup, reference parsing and eligibility shared across commands. Preserve link-aware matching, including legacy links; batch unknown references through `scripts/gh.py` rather than querying inside per-entry loops.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user