amireh / polygerrit-plugins

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

polygerrit-plugins

A set of plugins for PolyGerrit, Gerrit's web interface.

Plugin Purpose
ent Display the hierarchy of patches pending review.
ent
fff Browse the current patchset file listing by pressing F.
fff

Installation

TBD

Development setup

You will need Docker and Node.js to be available.

Start Gerrit:

docker-compose up

Gerrit should become available at http://localhost:8080

Build the plugin artifacts:

# one-off:
npm install && npm run build

# or, keep building:
npm install && npm start

Add your public SSH key to the Administrator account in the SSH Settings panel and verify you can connect to Gerrit via SSH:

ssh -p 29418 admin@localhost gerrit

Accessing Gerrit over SSH

ssh -p 29418 admin@localhost gerrit [arguments]

Or use the helper bin/gerrit.sh which invokes the above for you:

bin/gerrit.sh [arguments]

Seeding Gerrit with sample data

Install gerrit-seed:

gem install gerrit-seed

Use the provided seed:

gerrit-seed < share/git/banana.yml

If you want to remove the sample data, use this:

gerrit-unseed < share/git/banana.yml

Adding a new plugin

Clone the sample plugin share/sample-plugin into src/[name], restart your build runner, and start amending the source files as needed.

cp -rf share/sample-plugin src/meme &&
echo 'Gerrit.install(() => { console.log("hi!") })' >> src/meme/index.js &&
npm run build &&
open http://localhost:8080

Have fun!

Credits

About


Languages

Language:HTML 57.7%Language:JavaScript 41.2%Language:Shell 1.1%