Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/itaditya/probot-on-mention
- Owner: itaditya
- Created: 2018-04-14T19:02:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-04-15T13:57:03.000Z (over 6 years ago)
- Last Synced: 2024-05-30T16:35:12.782Z (7 months ago)
- Topics: mentions, probot, probot-extension, trigger-events, webhooks
- Language: JavaScript
- Homepage:
- Size: 91.8 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`.