ci: post canvas deploy reminder after every main merge - #38
Merged
Conversation
Adds a `canvas-deploy-reminder` job to ci.yml that fires on every push to main once `canvas-build` passes. It posts a commit comment via the built-in GITHUB_TOKEN (no new secrets needed) reminding whoever monitors CI to run: cd /g/personal_programs/molecule-monorepo git pull origin main docker compose build canvas && docker compose up -d canvas The comment includes the commit SHA and a direct link to the build log. Rationale: 5 consecutive merge cycles (PRs #21, #25, #30, #32, #34) went undeployed because there is no auto-deploy hook and the manual step was silently forgotten. A commit comment on the merge commit is the lowest-friction reminder that requires no external secrets or infra. Does NOT run on PRs — only on direct pushes to main (i.e. post-merge). Uses `needs: canvas-build` so the reminder only fires after build+tests pass; a failing build produces no comment. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
Author
|
7-gate verification passed. CI 6/6 green + 1 expected skip (the new reminder job itself, only fires on push to main). Diff is workflow-only. Security: minimal permissions (contents: write for commit comments), GITHUB_TOKEN via env, heredoc body uses quoted 'BODY' delimiter preventing expansion, no user-input interpolation into run:. Design: posts commit comment only, no auto-deploy. Merging. |
molecule-ai Bot
pushed a commit
that referenced
this pull request
Apr 21, 2026
ci: post canvas deploy reminder after every main merge
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
5 consecutive merge cycles (PRs #21, #25, #30, #32, #34) went undeployed because the canvas container is not auto-rebuilt after CI passes and the manual rebuild step was silently forgotten each time.
Solution
Adds a
canvas-deploy-reminderjob toci.yml. After every push tomainwherecanvas-buildpasses, it posts a commit comment via the built-inGITHUB_TOKEN(no new secrets needed) with the exact commands to rebuild the container.The comment looks like:
Properties
GITHUB_TOKENwithcontents: write(minimum scope for commit comments)if: github.event_name == 'push' && github.ref == 'refs/heads/main'; PR builds are unaffectedneeds: canvas-buildmeans a failing build produces no commentgit logTest plan
🤖 Generated with Claude Code