Skip to content

AI reviews 3/6: Adopt AI-proposed testing instructions into pull requests - #1470

Open
Hackwar wants to merge 3 commits into
joomla:masterfrom
Hackwar:feature/ai-reviews-instructions
Open

Hackwar wants to merge 3 commits into
joomla:masterfrom
Hackwar:feature/ai-reviews-instructions

Conversation

@Hackwar

@Hackwar Hackwar commented Nov 15, 2026

Copy link
Copy Markdown
Member

Summary

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

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 ("Replace in PR description").

  • The proposal uses the headings of the joomla-cms PR template: "Testing Instructions", "Actual result BEFORE applying this Pull Request" and "Expected result AFTER applying this Pull Request". Each replaces the section with the same heading; missing sections are inserted before "Link to documentations". Code fences are respected and the line endings of the description are kept.
  • The change is made with the admin's own GitHub token, never the bot account. If the admin's login has expired, they are asked to log in again.
  • If the description on GitHub changed since the review, nothing is changed and the admin is told so.
  • If GitHub refuses the change, the admin sees GitHub's error and nothing is changed.
  • On success the stored description is updated and the finding is marked as accepted, with the text that was actually sent.

Testing Instructions

  1. Use a tracker project that points to a test repository, with a pull request that follows the joomla-cms template, and import an AI review with a testing instructions finding for it.
  2. Log in as a site admin, edit the proposed text on the issue page or in the AI review list, and click "Replace in PR description".
  3. On GitHub, the three sections of the description are replaced and everything else is unchanged.
  4. Edit the PR description on GitHub after the review: the action is refused with a message and nothing changes.
  5. Log in with an account without write access to the repository: GitHub's error is shown and nothing changes.

🤖 Generated with Claude Code

Hackwar and others added 3 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>
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