Socket
Book a DemoInstallSign in
Socket

pr_ai_gen

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pr_ai_gen

0.2.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

pr_ai_gen

Description

pr_ai_gen is a CLI tool that acelerate the process of creating pull requests by Generate the PR description in markdown format. It uses OpenAI to generate the content based on the differences between the two git branches beeing merged.

Installation

Install the gem by running:

gem install pr_ai_gen

Setup

pr_ai_gen init

The tool will ask you to input the OPENAI_TOKEN to make the ChatGPT calls. If you don't have one, please generate one here. After input the token if you want to change it you can change it in ~/.pr_gem/credentials.

Usage

When the setup is already done you will be good to use the tool.

Commands:

  • generate <directory_location> <branch>:<target-branch=main>: Generate the PR description based on diff from the branch and target-branch (default main)

Development

To develop you must:

  • make the script in exe directory executable chmod -x ./exe/pr_ai_gen
  • run the script directly as it is the cli tool ./exe/pr_ai_gen generate <directory_location> <branch>:<target-branch=main>

FAQs

Package last updated on 13 Mar 2024

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.