Repository navigation
No pull request comment when nothing changed (comment_when_unchanged, off by default) - #90
Merged
Merged
Conversation
VisualCIdocspring/visualci · build #383 · 333 unchanged · no changes This PR vs base: 22 changed, 2 added since #371, across 2 builds Updated as builds change. Agents can review with VisualCI's MCP tools. |
… whose suites' newest builds are all unchanged (no changed, added, removed or failed snapshots) gets no VisualCI comment, only the passing check, unless the project's new comment_when_unchanged is on (off by default, for every project); a comment already there keeps being updated (GitHub doesn't email about edits), and builds with changes are commented as before; the setting in project settings (one checkbox), the REST and MCP project settings, and the agents docs (skills regenerated, plugin 0.1.46)
ndbroadbent
force-pushed
the
pr-comment-when-unchanged
branch
from
December 2, 2026 20:39
0ff7835 to
e8cdeae
Compare
ndbroadbent
added a commit
that referenced
this pull request
Dec 2, 2026
…igration, the model, domain::projects' Settings and SettingsChange, get_project and update_project; its test and golden
ndbroadbent
added a commit
that referenced
this pull request
Dec 2, 2026
…igration, the model, domain::projects' Settings and SettingsChange, get_project and update_project; its test and golden
ndbroadbent
added a commit
that referenced
this pull request
Dec 2, 2026
…igration, the model, domain::projects' Settings and SettingsChange, get_project and update_project; its test and golden
ndbroadbent
added a commit
that referenced
this pull request
Dec 2, 2026
* app/: project settings in domain::projects (sc-8900): Settings, SettingsChange, change_settings (a gallery turned off is purged first), create, valid_slug and repository_seen_in_ci, for the MCP tools and subdomains' web UI alike * app/: the rest of the public MCP server (sc-8900): whoami (with via), list_organizations, get_organization, create_project, get_project, update_project and download_build; list_builds as one short line per build (sc-8891, part 1); create_project_token, delete_project_token, invite_member and create_organization registered, waiting for #70; the comment anchor's schema text as today's; golden files can be rewritten on purpose (VISUALCI_GOLDEN_UPDATE) * app/: comment_when_unchanged (c2da705, #90) as a project setting: a migration, the model, domain::projects' Settings and SettingsChange, get_project and update_project; its test and golden * app/: format the comment_when_unchanged migration and test * app/: create_organization, invite_member, create_project_token and delete_project_token on #70's functions (create_org, invite_to, make_project_token, remove_project_token), with today's role checks and messages; the personal-token test's settings goldens gain comment_when_unchanged * app/: #91 review fixes: list_builds keeps the whole commit, adds numeric stats and blocked on each line; whoami's via.source in the words reviews record (personal_token, project_token, oauth, web); new MCP tests for invite_member (who may invite, the daily limit), download_build, list_organizations and create_organization's taken slug
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.
Nathan's request: his inbox fills with VisualCI pull request comments that say nothing changed.
The rule (
workers/pr_comment.rs,posts()): when every suite's newest build for the pull request has completed with no changed, added, removed or failed snapshots and no error, and the pull request has no VisualCI comment yet, VisualCI doesn't create one. The VisualCI check still passes.comment_when_unchangedon, it comments anyway.The setting,
projects.comment_when_unchanged(migrationm20261203_000049):get_project/update_project, throughSettingsChange).Docs: the agents page says when the comment appears. Skills are regenerated, and the plugin is bumped to 0.1.46.
Tests:
posts(): no comment when unchanged; one with the setting on; an existing comment still updated; changed, added, removed and failed always posted; mixed suites; a build still processing; a failed build;The worker itself isn't exercised against GitHub in tests, because the API base is fixed. The decision is the pure function the worker calls.
server fmt, clippy (workspace) and tests, frontend tsc and vitest: all pass on docspring-dev. The project settings page's screenshot will change (the new checkbox); I'll review that build close up.