Bugfix - Deactivate comenting on bot PRs#388
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
WatermelonAI SummaryThis PR fixes a bug where comments were allowed on bot PRs. It returns a 400 error if the PR author is a bot. The PR has been tested on both bot and non-bot PRs and the behavior is as expected. Acceptance criteria and guidelines have been followed. GitHub PRs
Click here to login to Jira No results found in Linear Tickets :( Click here to login to Asana |
|
|
||
| const octokit = await app.getInstallationOctokit(installationId); | ||
|
|
||
| if (pull_request.user.type === "Bot") { |
There was a problem hiding this comment.
Yes it's uppercase. You can verify that by trying this out with a lowercase on watermelontools/watermelon-intellij#66
Description
A user reported he wouldn't like this to happen. We solve this by returning 400 if PR author user type is a bot
Type of change
Notes
Acceptance