1.0.6 • Published 7 years ago

probot-repos v1.0.6

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

probot-repos

Probot extension for events that return undefined

What's its importance ?

Some github events like installation & installation_repositories does not work for probot's context.repo() as they return undefined because in that case their payload does not store values for which repository/repositories were added. This is just a simple hack for helping developers using probot to avoid writing large amount of code. :smile: :fire:

Installation

1.) Install using npm npm i probot-repos --save

Usage

const repos = require('probot-repos')
robot.on('installation.created', context => {
    repos(context).then((val) => {
      // val will return array of repositories added .
      [ { repo: 'Awesome-Hacking', owner: 'USERNAME' },
      { repo: 'autolabeler', owner: 'USERNAME' } ]
    })
})

Enjoy coding :peace_symbol:

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago