babel / babel/babel-bot

Add assignee (reviewer) to PRs

Open
#2 1 comment 0 reactions 0 assignees View on GitHub
question
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.