Skip to content

ci(docs): dispatch docs updates on releases only - #27

Merged
jack-arturo merged 2 commits into
mainfrom
ci/docs-dispatch-on-release
Oct 19, 2026
Merged

jack-arturo merged 2 commits into
mainfrom
ci/docs-dispatch-on-release

Conversation

@jack-arturo

@jack-arturo jack-arturo commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Summary

Docs on automem.ai now follow published releases. docs-dispatch.yml fires on every push to main, and since verygoodplugins/automem-website#370 merged, the website skips any dispatch that isn't a published release. Same change as verygoodplugins/mcp-automem#251.

  • release-please.yml gets a docs-dispatch job. It calls docs-dispatch.yml once release-please creates a release (release_created == 'true') and passes tag_name. The release-please step had no id and the job had no outputs, so both are added. Without them the docs job would silently never run.
  • docs-dispatch.yml is now a reusable workflow (workflow_call) plus a manual run that defaults to the latest release. It diffs the release against the previous automem-graph-viewer-v* tag, so the docs audit sees the whole release. The push trigger is gone.
  • AGENTS.md now describes the release-only dispatch instead of the old push trigger (Codex review finding).
  • The payload adds release_tag and release_version and drops head_sha and commit_url. client_payload allows at most 10 top-level properties, source_sha already is the release commit, and automem-website falls back for both.

Release flow check

0.4.0 and 0.5.0 were created by release-please on main, tagging the merged chore(main): release automem-graph-viewer X.Y.Z commit 8 to 10 seconds after the release PR merged. Tags carry the component prefix (automem-graph-viewer-v0.5.0), and release_version strips through the last v, giving 0.5.0.

The docs job runs inside the same workflow run, so it fires even if release-please ever falls back to GITHUB_TOKEN. The dispatch itself still uses RELEASE_PLEASE_TOKEN, same as today. A release published by hand never sets release_created. Recovery is a manual Docs Dispatch run with that tag.

The oldest tag is unprefixed v0.2.0, so a manual backfill of automem-graph-viewer-v0.3.0 would warn and diff from the first commit. Every newer release resolves fine.

Validation

  • Both workflows parse (Ruby YAML).
  • Pulled the Get changed files script out of the edited YAML and ran it locally for automem-graph-viewer-v0.5.0. Base resolves to the automem-graph-viewer-v0.4.0 commit 1e7ea81, head to c6338d1. That's 30 changed files and 2 affected doc pages against the website's current file-doc-map.json. An empty release_tag resolves the same way through releases/latest.
  • Ran the dispatch step's jq with those values, gh api swapped for a key count: exactly 10 client_payload keys.
  • actionlint passes for both workflows. Not exercised end to end: the first real run is the next release.

🤖 Generated with Claude Code

Docs on automem.ai follow published releases. docs-dispatch.yml becomes
a reusable workflow that release-please.yml calls once a release is
created, diffing the release against the previous release tag. A manual
run documents a given release tag, or the latest release by default.

The payload adds release_tag and release_version and drops head_sha and
commit_url, since client_payload allows at most 10 top-level properties.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-19T20:08:06.405808Z 09ba829 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@jack-arturo jack-arturo added the babysit:waiting-codex 👀 Codex reviewing current head label Oct 19, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 09ba829cc3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/docs-dispatch.yml Resolved
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jack-arturo jack-arturo added babysit:waiting-ci Babysit waiting for CI checks on current head and removed babysit:waiting-codex 👀 Codex reviewing current head labels Oct 19, 2026
@jack-arturo

Copy link
Copy Markdown
Member Author

Babysit: verified green at 0da24aead0. Codex flagged the stale AGENTS.md CI note on the first head. Fixed in 0da24aead0 and the thread is resolved. That head got no auto-review inside the 10-minute grace window. lint-build passes, no open review threads, mergeable. Not merged.

@jack-arturo jack-arturo added babysit:ready 👍 Codex all clear + gates pass; human may merge and removed babysit:waiting-ci Babysit waiting for CI checks on current head labels Oct 19, 2026
@jack-arturo
jack-arturo merged commit 2b3a6c0 into main Oct 19, 2026
1 check passed
@jack-arturo
jack-arturo deleted the ci/docs-dispatch-on-release branch October 19, 2026 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

babysit:ready 👍 Codex all clear + gates pass; human may merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant