Skip to content
This repository has been archived by the owner on Nov 29, 2019. It is now read-only.

A chrome extension to make reviewing pull requests in Github a little easier.

Notifications You must be signed in to change notification settings

mob-sakai/prettypullrequests

 
 

Repository files navigation

logo

プルリクレビューが使いやすくなるChrome拡張機能

  • Githubのプルリクファイル一覧ページに、ファイルの折りたたみ機能を追加します。
  • cs/xmlファイル以外を自動的に折りたたみます。オプションで変更可能です。
  • Githubがpjaxに対応し、旧Pretty Pull Requestsプラグインが利用できないので改造しました。

image





インストール

Macの場合

  • prettypullrequests.crx をダウンロードする
  • Chromeで「その他の機能 -> 拡張機能」を開くか、 chrome://extensions/ に移動する
  • ダウンロードした prettypullrequests.crx をドラッグ&ドロップする   image
  • 「拡張機能を追加」を押す
    image

 

Windowsの場合

  • prettypullrequests.zip をダウンロードし、展開する
  • Chromeで「その他の機能 -> 拡張機能」を開くか、 chrome://extensions/ に移動する
  • 「デベロッパーモード」にチェックを入れ、「パッケージ化されていない拡張機能を読み込む...」をクリックする
    image
  • さきほど展開したフォルダ内のprettypullrequestsフォルダを選択し、「OK」をクリックする
    image

 

注意事項 (※Windowsのみ)

  • Chromeを起動するたびに次のようなポップアップが表示されます。
    「キャンセル」をクリックしてください。
    image

 

更新

  • 【Windows】
    上記インストール方法で最新版のプラグインをインストールしてください
  • 【Mac】
    prettypullrequestsは自動的に更新がインストールされます。特に操作は不要です。





アンインストール

  • 「その他の機能 -> 拡張機能」から、prettypullrequestsを削除してください。
    image





オプション

自動で折りたたむファイルを指定する

  • デフォルトではcs/xmlファイルを自動的に折りたたむ設定になっています。
  • 変更するには、OptionsにあるAuto-Collapse Rulesを変更してください。デフォルトは ^(?!.*(cs|xml)$).*$ です。
  • 正規表現については http://uxmilk.jp/50674 を参考にしてください。 image





備考

  • ご利用は自己責任でお願いします

Pretty Pull Requests

This extension will add various features to the diff view on Github's pull request pages.

Supports both files changed and commit diffs.

Current Features

  • Click on the file name to collapse a file, or collapse from bottom up via an added button
  • Collapse/Expand all
  • Collapse/Expand all that match a regex pattern
  • Collapse/Expand added/removed lines
  • File tree view allowing you to collapse a directory, or jump directly to a file diff
  • (Optional) Use backtick/tilde to switch tabs in the pull request. Backtick goes forward, and tilde (shift-backtick) goes backward. Enable this setting in the extension's options.
  • Set regex patterns to automatically collapse all files in any PR that matches

Example Image

To install the chrome extension, visit: chrome web store / pretty pull requests

About

A chrome extension to make reviewing pull requests in Github a little easier.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 81.6%
  • CSS 17.4%
  • HTML 1.0%