[NoQA] [AI Reviewer] Validate AI reviewer comments#75424
Conversation
|
@ZhenjaHorbach Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@mateuuszzzzz I added |
There are two minor shell check errors, which should be easy to fix. |
kacper-mikolajczak
left a comment
There was a problem hiding this comment.
Thanks for this effort! One tiny comment left.
| gh api -X POST "/repos/$GITHUB_REPOSITORY/pulls/$PR_NUMBER/comments" \ | ||
| --input - <<< "$PAYLOAD" || exit 1 |
There was a problem hiding this comment.
Curious whether this call matches 1:1 to what mcp__github_inline_comment__create_inline_comment do. I am mostly thinking about ability to update/create comments with same reference. IIRC we were discussing such functionality, but please correct me if this take is outdated.
There was a problem hiding this comment.
I'm not sure about that 🤔 I'll keep that in mind as we work on the re-reviews. I think there should be an issue for that somewhere. If not, I will create one as it sounds as a reasonable next step to work on
|
Let us know when this is full ready for a revie,w I see some lint issue and issue @mateuuszzzzz flagged |
|
@mateuuszzzzz are we going to move this one ahead? |
|
@mountiny fixed linting issues |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
mountiny
left a comment
There was a problem hiding this comment.
Looks good to me, I assume the agentic comments then will not have to follow these guidelines though @adamgrzybowski @mateuuszzzzz
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/AndrewGable in version: 9.2.78-0 🚀
|
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.2.78-8 🚀
|
Explanation of Change
We decided to programmatically validate comments posted by an AI reviewer to make sure every comment has a specific rule in the body
I replaced the mcp inline comment tool with a bash script
createInlineComment.shthat is exposed to the Claude agent as a tool. This script will cross-validate the body comment with a list of rule IDs extracted in the earlier step from the prompt.Fixed Issues
$ #74223
PROPOSAL:
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop