Skip to content

No pull request comment when nothing changed (comment_when_unchanged, off by default) - #90

Merged
ndbroadbent merged 1 commit into
mainfrom
pr-comment-when-unchanged
Dec 2, 2026
Merged

ndbroadbent merged 1 commit into
mainfrom
pr-comment-when-unchanged

Conversation

@ndbroadbent

Copy link
Copy Markdown
Member

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.

  • With the project's new comment_when_unchanged on, it comments anyway.
  • A comment that's already there (an earlier build had changes) keeps being updated, so it shows the pull request is clean now. GitHub doesn't email about edits.
  • Builds with changes are commented exactly as before.

The setting, projects.comment_when_unchanged (migration m20261203_000049):

  • off by default for every project, existing ones included (the pre-launch rule);
  • one checkbox in project settings, "Comment on pull requests when nothing changed" (a label only);
  • in the REST and MCP project settings (get_project / update_project, through SettingsChange).

Docs: the agents page says when the comment appears. Skills are regenerated, and the plugin is bumped to 0.1.46.

Tests:

  • unit tests for 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;
  • an MCP request test: off by default, then turned on.

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.

@visualci-com

visualci-com Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

VisualCI

docspring/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
ndbroadbent force-pushed the pr-comment-when-unchanged branch from 0ff7835 to e8cdeae Compare December 2, 2026 20:39
@ndbroadbent
ndbroadbent merged commit c2da705 into main Dec 2, 2026
11 checks passed
@ndbroadbent
ndbroadbent deleted the pr-comment-when-unchanged branch December 2, 2026 20:52
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant