Add assignee (reviewer) to PRs
- Dominant language
- JavaScript
- Stars
- 78
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
The Facebook/mention-bot offers a programmatic API (source).
It think we could easily integrate it in the Babel-bot.
Usage example:
```js
mentionBot
.guessOwnersForPullRequest(
'https://github.com/babel/babel', // repo
65, // pull request number
'babel-bot', // user that created the pull request
'master', // branch
{ maxReviewers: 3 }, // config
[...]
)
.then(function(users) {
// array with user names which should be included in review
console.log(users);
})
.catch(function(err) {
console.error(err);
});
```
It will be triggered in `src/handlers/pull_request/opened.js`.
Instead of babel/babel#5057
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.