feat: reconcile Zulip emoji reactions on website PR messages - #890
Open
bryangingechen wants to merge 9 commits into
Open
feat: reconcile Zulip emoji reactions on website PR messages#890bryangingechen wants to merge 9 commits into
bryangingechen wants to merge 9 commits into
Conversation
Wire up mathlib-ci's zulip-emoji-reconcile action so messages about this repo's PRs (e.g. the ones message_zulip_on_prs.yml posts to 'mathlib reviewers' > 'blog and website PRs') carry emoji reflecting PR state: merged/closed/awaiting-author plus CI status. - .github/zulip-emoji-config.json: repo config (mirrors mathlib4's emoji); no pr_reviews key since that channel's #N topics are mathlib4 PRs - .github/workflows/zulip_emoji_reconcile.yml: hourly sweep + workflow_dispatch (dry-run by default) - bibtool.yml: TEMPORARILY replaced with a dispatch-only copy so the setup can be tested from this branch (dispatch only resolves workflows registered on the default branch); restore before merging Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
bryangingechen
marked this pull request as ready for review
July 17, 2026 07:31
pull_request_target (labeled/unlabeled/closed/reopened) and workflow_run on 'build site (pull request)' (requested/completed) give few-seconds latency; the sweep stays as the safety net. workflow_dispatch now defaults to a real run (dry-run remains available as an input) since the config has been validated. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Two interleaved runs could re-assert stale reactions (read-then-write); a single group with cancel-in-progress: false makes the newest queued run converge to the final state. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
bryangingechen
commented
Jul 17, 2026
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.
Wires up mathlib-ci's
zulip-emoji-reconcileaction so that Zulip messages about this repo's PRs (e.g. the onesmessage_zulip_on_prs.ymlposts to mathlib reviewers > blog and website PRs) carry emoji reactions reflecting the PR's state: merged / closed / awaiting-author, plus CI status..github/zulip-emoji-config.json: repo-specific config (emoji mirror mathlib4's). Nopr_reviewschannel key on purpose: that channel's#Ntopics are mathlib4 PRs, so website PRs are matched by URL only (thewebsite#Nlinkifier expands to a full PR URL in rendered content)..github/workflows/zulip_emoji_reconcile.yml: event triggers for few-seconds latency —pull_request_target(labeled/unlabeled/closed/reopened) andworkflow_runon "build site (pull request)" (requested/completed, PR resolved from the run's head commit) — plus an hourly sweep as the self-healing safety net andworkflow_dispatchfor manual resyncs (with a dry-run option).Notes:
leanprover-community-repo-update-bothad to be subscribed to mathlib reviewers (done 2026-07-17). The channel has protected history, so the bot can only see messages posted after that date — older PR announcement messages will never get reactions.ci=running→ :yellow:,ci=success→ swap to :check:,awaiting-authorlabel add/remove → :writing: add/remove, idempotent re-runs, and human reactions (a stray 🎉) left untouched. Thepull_request_target/workflow_runtriggers can only fire once this lands onlean4; if an event misbehaves, the sweep repairs the emoji within the hour.🤖 Generated with Claude Code