Neverending Package Mountain

    probot-repos

    1.0.6 • Public • Published

    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. 😄 🔥

    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

    Install

    npm i probot-repos

    DownloadsWeekly Downloads

    2

    Version

    1.0.6

    License

    ISC

    Unpacked Size

    7.26 kB

    Total Files

    8

    Last publish

    Collaborators

    • knrt10