Skip to content

Commit 1cec886

Browse files
committed
Update sidebar PR with devel integration workflow
# Conflicts: # docs/releases.md
2 parents 8e84e46 + 061d19a commit 1cec886

9 files changed

Lines changed: 314 additions & 69 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CI
22

33
on:
44
pull_request:
5-
branches: [release]
5+
branches: [devel, release]
66
types: [opened, synchronize, reopened, ready_for_review, edited]
77

88
permissions:

‎.github/workflows/release.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ concurrency:
1818
jobs:
1919
release:
2020
name: Publish from release and open promotion PR
21-
if: github.event_name == 'push' || github.event.pull_request.merged == true
21+
if: github.event_name == 'push' || (github.event.pull_request.merged == true && github.event.pull_request.head.ref == 'devel' && github.event.pull_request.head.repo.full_name == github.repository)
2222
runs-on: ubuntu-latest
2323
timeout-minutes: 25
2424
permissions:
@@ -37,7 +37,7 @@ jobs:
3737
cache: npm
3838
- name: Install pipeline dependencies
3939
run: npm ci --ignore-scripts
40-
- name: Prepare version, publish package, and promote through a PR
40+
- name: Publish, prepare main PR, and synchronize devel
4141
env:
4242
GH_TOKEN: ${{ github.token }}
4343
run: node scripts/release-pipeline.mjs

‎AGENTS.md‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ Use English for all user-facing prompts, UI labels, errors, generated bot messag
44

55
Never push commits directly to `main` or modify its files through GitHub APIs.
66
All changes reach `main` by merging a PR from `release`. Feature PRs target
7-
`release`; version and post-publication README commits belong on `release`.
7+
`devel`. Only a reviewed `devel` → `release` PR starts automatic publication.
8+
Version and post-publication README commits belong on `release`; after a stable
9+
publication, automation merges that published head back into `devel` without a
10+
PR or force push. Never reset development work to match release.
811

912
## Project context
1013

@@ -28,7 +31,7 @@ steps, project setup, headless operation, and removal.
2831
| [docs/runtime.md](docs/runtime.md) | User-visible behavior while the bot runs: GitHub questions and permission replies, branch selection, media inputs, prompt loading, follow-up comments, session tabs, runtime sidebar/status freshness, and routine management commands. | Use when changing issue conversations, session continuation, runtime tools, or TUI behavior. |
2932
| [docs/advanced.md](docs/advanced.md) | Separate scheduler/dispatcher setup, multiple repositories, custom RPC jobs, full options, timeouts, management and retry commands, persistence, reconciliation, locks, and known limits. | Use for low-level configuration, operational troubleshooting, recovery, or ownership/concurrency changes. |
3033
| [docs/installation.md](docs/installation.md) | Loader registration, config-directory precedence, prerequisites, source installation, project-local installation, upgrade conflicts, testing on another machine, and migration limits. | Use when working on packaging, installers, registration, upgrades, or deployment troubleshooting. |
31-
| [docs/releases.md](docs/releases.md) | Feature-to-release PR checks, automatic patch versions, manual npm version/tag releases, exact changelog notes, publication recovery, README commits on release, and promotion PRs into protected main. | Use for CI triggers, versioning, packaging, GitHub Release publication, branch permissions, or recovery after a failed release. |
34+
| [docs/releases.md](docs/releases.md) | Feature-to-devel and devel-to-release PR checks, automatic patch versions, manual npm version/tag releases, exact changelog notes, publication recovery, README commits on release, automatic release-to-devel synchronization, and promotion PRs into protected main. | Use for CI triggers, versioning, packaging, GitHub Release publication, branch permissions, or recovery after a failed release. |
3235

3336
For common investigations:
3437

‎CHANGELOG.md‎

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Changelog
22

33
Release descriptions come from the exact version section committed with the tag.
4-
Add feature changes under `Unreleased`; after a PR merges into `release`, automation
4+
Add feature changes under `Unreleased`; after a `devel` PR merges into `release`, automation
55
moves them into the new patch version's section. For a manual release, prepare
66
and commit the exact version section before creating its tag. Prerelease headings
77
include the full version, for example `## 0.7.0-beta.1`.
@@ -34,6 +34,15 @@ include the full version, for example `## 0.7.0-beta.1`.
3434
its saved stage, preserving worktrees, sessions, PRs, and feedback. Checkpoint
3535
continuation requests across restarts without bypassing checks or permissions.
3636

37+
### Changed
38+
39+
- Collect feature PRs on `devel` without publishing a release. Run CI on PRs to
40+
`devel` and `release`, and publish automatic patches only after a same-repository
41+
`devel` to `release` PR is merged.
42+
- After stable publication and README update, automatically merge the published
43+
release head into `devel` without a synchronization PR. Preserve new development
44+
commits, retry concurrent updates, and fail safely on conflicts or denied pushes.
45+
3746
## 0.6.5
3847

3948
### Fixed
@@ -70,7 +79,7 @@ include the full version, for example `## 0.7.0-beta.1`.
7079

7180
- Run full CI when feature PRs target `release`, including new commits to open PRs.
7281
Ordinary feature pushes no longer run CI or build packages.
73-
- Publish an automatic patch after a PR merges into `release`, and support manual
82+
- Publish an automatic patch after a `devel` PR merges into `release`, and support manual
7483
version tags on that branch without a second version bump.
7584
- Recover interrupted publication without moving tags or republishing completed
7685
packages. Commit README on `release` before opening or updating its PR to `main`.

‎README.md‎

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -303,21 +303,27 @@ copy it to another machine and follow the `.tgz` instructions above.
303303

304304
## GitHub Actions and releases
305305

306-
1. Work on a feature branch and add release notes under `Unreleased` in
307-
[CHANGELOG.md](CHANGELOG.md). Ordinary branch pushes do not run CI or publish packages.
308-
2. Open a PR into the long-lived `release` branch. CI runs lint, type checking,
309-
tests, a build, and an installation check on Node 22 and 24. New commits to
310-
the open PR rerun these checks. Review and merge after they pass.
311-
3. The merge starts **Release**. It increments the patch version on `release`,
312-
moves the unreleased notes into that version's changelog section, and pushes
313-
the version commit and tag atomically. It builds and verifies the tagged
314-
package, then publishes the GitHub Release with `.tgz`, SHA-256, and exact
315-
version notes. No package is published to npm.
316-
4. Only after publication succeeds, automation commits the versioned README link
317-
on `release` and opens or updates a PR from `release` into `main`.
318-
5. Review and merge that PR with a **merge commit**. All code, version metadata,
319-
release notes, and README changes reach protected `main` through this PR.
320-
The automation never pushes to `main` or writes its files through the API.
306+
1. Create a feature branch from `devel` and add release notes under `Unreleased`
307+
in [CHANGELOG.md](CHANGELOG.md). Pushes without an open PR do not run CI.
308+
2. Open a PR into `devel`. CI runs lint, type checking, tests, a build, and an
309+
installation check on Node 22 and 24. New commits to the open PR rerun checks.
310+
Review and merge after they pass. Merging into `devel` does not publish a package.
311+
3. When ready to publish the accumulated changes, open a `devel` → `release` PR.
312+
After its checks pass, review and merge it with a **merge commit**.
313+
4. The merge starts **Release**: an automatic patch version, exact changelog notes,
314+
atomic version/tag push, and publication of the verified `.tgz` and SHA-256.
315+
No package is published to npm.
316+
5. After publication, automation commits the new README download link on `release`
317+
and opens or updates the `release` → `main` promotion PR. It also automatically
318+
merges that published head into `devel`, including version metadata and README,
319+
preserving newer development work. No synchronization PR is created.
320+
6. Review and merge the promotion PR with a **merge commit**. Protected `main`
321+
receives all released code, metadata and README through that PR only.
322+
323+
A synchronization conflict or rejected push fails the Release job without
324+
resetting `devel` or undoing publication. Resolve the conflict or permissions and
325+
rerun the job; it reuses the published version. Synchronization does not wait for
326+
the main PR to merge and does not trigger another release.
321327

322328
To choose a version manually, prepare and commit its exact changelog section on
323329
`release`, then use `npm version`, for example:
@@ -333,7 +339,8 @@ git push --atomic origin release v1.0.0
333339
The pushed tag publishes exactly `1.0.0`, without another version bump. Both
334340
`v1.0.0` and `1.0.0` tag names are accepted. The next automatic patch is `1.0.1`.
335341
Version tags must point to code on `release`; ordinary pushes to that branch
336-
never start publication. Finish the active release before merging another feature.
342+
never start publication. Finish the active release before merging another `devel` → `release` PR.
343+
Feature PRs may continue to accumulate on `devel`.
337344

338345
The README on `release` is updated after publication; the README on `main` changes
339346
when the promotion PR is merged. The tag and packaged README remain snapshots

‎docs/installation.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ and troubleshooting.
77
The README's package installation command contains the versioned GitHub asset URL
88
for the stable release promoted into that branch. After publication, automation
99
updates README on `release`; its PR carries the update into `main` when merged.
10-
While that PR awaits review, `release` contains the newer download link. For
10+
While that PR awaits review, `release` contains the newer download link. The
11+
publisher also merges the released version and README into `devel` automatically,
12+
without waiting for the main PR or creating another PR. For
1113
upgrades, use that branch's current README rather than a copy from an old archive
1214
or tag, and keep the same installation prefix. Prereleases do not replace the
1315
stable link. Maintainer setup and retries are in [Release process](releases.md).

0 commit comments

Comments
 (0)