Skip to content

AI reviews 4/6: Close confirmed duplicates and items fixed elsewhere - #1471

Open
Hackwar wants to merge 4 commits into
joomla:masterfrom
Hackwar:feature/ai-reviews-close
Open

Hackwar wants to merge 4 commits into
joomla:masterfrom
Hackwar:feature/ai-reviews-close

Conversation

@Hackwar

@Hackwar Hackwar commented Nov 15, 2026

Copy link
Copy Markdown
Member

Summary

Part 4 of the AI review series. Builds on #1470; only the last commit belongs to this PR.

When an AI review names a possible duplicate, or a pull request that already fixed an item, a site admin can check the other item, edit the prepared comment and post it and close the item with one click ("Comment and close").

  • The comment and the close are made with the admin's own GitHub token, never the bot account.
  • In the tracker the item gets the status "Duplicate Report" with the relation "duplicate of", or "Fixed in Code Base" with a relation to the fixing pull request.
  • If GitHub refuses the comment, nothing is changed. If the comment was posted but GitHub refuses to close the item, the admin is told and the finding stays open.

Testing Instructions

  1. In a test repository, create two issues describing the same problem, and import an AI review with a duplicate finding for one of them.
  2. Log in as a site admin, open the finding, edit the comment and click "Comment and close".
  3. On GitHub, the comment is posted under your account and the issue is closed. In the tracker the issue has the status "Duplicate Report" and the relation to the other issue.
  4. Repeat with a "fixed elsewhere" finding: the status is "Fixed in Code Base" with the relation to the fixing PR.
  5. Log in with an account without write access: GitHub's error is shown and nothing changes.

🤖 Generated with Claude Code

Hackwar and others added 4 commits November 15, 2026 14:46
Adds the tables #__ai_reviews, #__ai_review_findings and
#__issue_promotions with their table classes, and documents the SQL
import format the external review tool writes.

The #__migrations INSERT in etc/mysql.sql was missing 20261109002,
20261110001 and 20261110002, so a fresh install would run them again
on top of the finished schema. A new test keeps the list and the
migration files in sync.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Site admins get a list of the findings of imported AI reviews at
tracker/<project>/ai-reviews, with filters for state, kind, rating,
confidence, type and a search, and a panel with the open findings on
the issue page. A finding can be dismissed or marked as done, which
changes nothing on GitHub.

Open findings are only shown while their review is still valid: the
item is open, the pull request head commit and the description are
unchanged, and nobody commented, tested or reopened the item after the
review. The next review run reviews changed items again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A site admin can edit the testing instructions proposed by an AI
review and replace the matching sections of the pull request
description with one click. The proposal uses the headings of the
joomla-cms template (Testing Instructions, Actual result BEFORE,
Expected result AFTER); each replaces the section with the same
heading, and missing sections are inserted before "Link to
documentations".

The change is made with the admin's own GitHub token, never the bot.
If GitHub refuses it, or the description on GitHub changed since the
review, nothing is changed and the admin sees why.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When an AI review names a possible duplicate, or a pull request that
already fixed an item, a site admin can check the other item, edit the
prepared comment and post it and close the item with one click.

The comment and the close are made with the admin's own GitHub token.
In the tracker the item gets the status "Duplicate Report" with the
relation "duplicate of", or "Fixed in Code Base" with a relation to
the fixing pull request. If GitHub refuses to close the item after the
comment was posted, the admin is told and the finding stays open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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