web-platform-tests / wpt-pr-bot

Home of the wpt-pr-bot
Apache License 2.0
29 stars 36 forks source link

Don't assign the owner of a PR #78

Open foolip opened 5 years ago

foolip commented 5 years ago

On https://github.com/web-platform-tests/wpt/pull/18677 @wpt-pr-bot assigned me even though I sent the PR. That's not very helpful.

foolip commented 5 years ago

It looks like this shouldn't happen: https://github.com/web-platform-tests/wpt-pr-bot/blob/b6b7fd1efb22d63f5c94cc39e04cdbd74ac1a8ab/lib/metadata/choose-assignee.js#L16

So the question then becomes why it did. The PR was initially a draft, might that explain it?

jugglinmike commented 5 years ago

That pull request was reviewed by its author, and as per gh-55, the script assigns the latest reviewer.

That review came hours after the pull request was opened, though. So the new question is: why didn't the bot assign a reviewer initially?

It's not that the pull request was a draft since (per gh-69) we know the script responds to such events.

foolip commented 5 years ago

Oh, I was just "reviewing" to get inline comments grouped together in a batch, I didn't even consider that activity as a review. But that explains what happened here, thanks!