New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

create-pr-on-install

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-pr-on-install

A GitHub Extension built with Probot that helps you open a pull request when your app is installed.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

create-pr-on-install

A GitHub Extension built with Probot that helps you create a pull request against a repo your app is installed on.

Setup

To use this extension, require the npm module 'create-pr-on-install'. Then call it by passing in the context, as well as an object containing information specific to your app.

const createPR = require('create-pr-on-install')

module.exports = robot => {
  robot.on('installation.created', context => {
    // This extension can open PRs with new files at any point in time, but this
    // use case demonstrates creating one when the app is first installed on a repo
    const openPR = await createPR(context, {
      fields = {
        file: {
          path: 'path/to/file.yml',
          content: 'This is what will be in the file'
        },
        pr : {
          body: 'The body of your Pull request',
          title: 'The title of your Pull Request'
        }
      }
    })
  })
}

Contributing

If you have suggestions for how create-pr-on-install could be improved, or want to report a bug, open an issue! We'd love all and any contributions.

For more, check out the Contributing Guide.

License

ISC © 2018 Bex Warner bexmwarner@gmail.com (https://github.com/hiimbex/create-pr-on-installation)

Keywords

FAQs

Package last updated on 18 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc