feat(code-review): Add custom actions for collapse, update_and_collapse#72
Conversation
91319e0 to
9e683db
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit d81cfae. Configure here.
There was a problem hiding this comment.
Update the bin scripts and test your changes on a GitHub and GitLab app. You can ask AI to update the bin scripts.
Run bin/github-server in one window and bin/github-client collapse-pull-request <id> <id> <id> in another.
This is what my .credentials file looks like:
GITHUB_APP_ID=...
GITHUB_PRIVATE_KEY_PATH=...
GITHUB_INSTALLATION_ID=...
GITHUB_REPOSITORY_NAME=...
GITLAB_ACCESS_TOKEN=...
GITLAB_PROJECT_ID=...
Thanks! Updated and posted the results in the updated PR description |

Add custom actions for some behavior in code review:
collapse_pull_request_commentcontents:write) from orgs, but not all have accepted it yet (and may never accept it).contents:writeis there to determine whether to call "resolve" vs. "minimize".update_and_collapse_pull_request_commentcommit1resulted in a PR comment predicted bug. Whencommit2is pushed up and contains a fix for the bug, we edit the body of the comment to say at the top "Resolved in commit1" (example), and also collapse (via resolve or minimize) the old comment.Closes CW-1371
results of running smoketests
github
collapse_pull_request_review_commenthttps://github.com/getsentry/seer-test-sandbox/pull/122#discussion_r3204396926
update_and_collapse_pull_request_review_commenthttps://github.com/getsentry/seer-test-sandbox/pull/122#discussion_r3204396926
gitlab
collapse_pull_request_review_commenthttps://gitlab.com/seer-sandbox/seer-test-sandbox/-/merge_requests/1#note_3353092075
update_and_collapse_pull_request_review_commenthttps://gitlab.com/seer-sandbox/seer-test-sandbox/-/merge_requests/1#note_3352895688