Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

priha

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

priha

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Priha

If you are a guy who always find something wrong only after sending a pull requset, Priha will help you because Priha lets you examine files' diff between the parent branch and HEAD of the current branch in a real GitHub pull request.

Installation

gem install priha

Usage

CAUTION: DO NOT use Priha for your secret repostitory. Since Priha pushes some commits to another repository on GitHub, it easily cause a security incident, espacially the branch you set for Priha is "public". Also, Priha removes all branches on the repository specified in config, so you MUST create a new repository for this purpose and DO NOT use the existing one.

Create config file

Priha requires a YAML config file ($HOME/.priha_config.yml or $USERPROFILE\.priha_config.yml for Windows) where your GitHub information is set like the followings.

username: <your github username>
repo: <your github repository to push for a temporary pull request>
parent_branch: <default parent branch to merge> (optional)
access_token: <your github access token> (optional)

Note that you can specify parent_branch by passing that name as an argument, and access_token will be overwritten by "GITHUB_ACCESS_TOKEN" environment variable when exists.

Let's see files' diff on a GitHub pull request

Simply run priha when you are in the topic branch which you want to diff with the parent branch.

$ priha

Or you can specify the parent branch by passing it as an argument.

$ priha develop

Then you can see files' diff in your web browser (OS X only), or copy/paste displayed URL.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/5t111111/priha.

FAQs

Package last updated on 28 Jan 2016

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