Skip to content

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

Notifications You must be signed in to change notification settings

itaditya/probot-on-mention

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

probot-on-mention

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

Example -

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.

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published