Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/itaditya/probot-on-mention

A Probot extension to trigger events when someone mentions a username in a comment
https://github.com/itaditya/probot-on-mention

mentions probot probot-extension trigger-events webhooks

Last synced: 20 days ago
JSON representation

A Probot extension to trigger events when someone mentions a username in a comment

Awesome Lists containing this project

README

        

# probot-on-mention

> A Probot extension to trigger events when someone mentions a given username.

Example -

```js
const onMention = require('probot-on-mention')

module.exports = (robot) => {
onMention(robot)
robot.on('mention', async context => {
const username = context.payload.mentioned
console.log(`${username} was mentioned!`)
})
}
```

Install it with `npm i probot-on-mention`.