Skip to content

A collection of command line tools for manipulating stuff on Phabricator

License

Notifications You must be signed in to change notification settings

pauloppenheim-easypost/phabricator-tools

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phabricator-tools

A collection of command line tools for manipulating stuff on Phabricator

Phabricator is nice in how powerful it is, but much like other general purpose tools like Jira, the UI leaves much to be desired for focused, simple workflows.

I wish to solve that for myself.

Running

Make sure Go 1.13+ is installed on your system. Then:

make

./bin/<hit tab>

First problem

I can't directly use the conduit endpoint via the gonduit library; every time I hit it, it returns HTML trying to redirect my client to a SSO Google auth page.

So! Let's call the arc call-conduit command ourselves, it takes JSON in and out. We can still use all the types provided in gonduit, aaaand it automatically pulls and handles the .arcrc so if arc is set up then this just works too.

Second problortunity

Gonduit doesn't support all the modern methods (like user.search), and some of the entities don't use the right named fields for the installation at work (looking at you, User) so I can just drop dependency on gonduit altogether at this point.

Thanks, Phabricator

Phabricator shipped a breaking change recently: https://secure.phabricator.com/T13491 -- this has been fixed in this codebase now.

Commands

phabwhoami

Returns your user's logged in PHID to stdout

phabwhois

Returns some information about a user by PHID

phabstatuses

Lists all possible maniphest/differential task statuses

phabtasks

Lists all your assigned open tasks

phabrepos

Lists all diffusion repositories and their clone URLs

phabgrab

Clones/updates every repo in phab locally

anchormanagement

Fast text-based UI for doing daily maniphest grooming

About

A collection of command line tools for manipulating stuff on Phabricator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 98.9%
  • Makefile 1.1%