dynamist / phabfive

A command line tool to interact with Phabricator
Apache License 2.0
4 stars 2 forks source link

Feature/maniphest app #36

Closed Grokzen closed 1 year ago

Grokzen commented 4 years ago

Improvements:

Create a new app within phabfive for maniphest. Also added a small helper command for getting into a REPL where access to the API is simpler to reach for testing and debugging of the internals of phabricator API client, very usefull during devleopment.

New supported commands and examples of running them

(phabfive) ➜  phabfive git:(feature/maniphest_app) ✗ phabfive maniphest add comment T1 "test from cli"
Comment successfully added              
Ticket URI: https://127.0.0.1/T1                                       
(phabfive) ➜  phabfive git:(feature/maniphest_app) ✗ phabfive maniphest show T1
Ticket ID:          1
phid:               PHID-TASK-ouldaoojg34napsdneet
authorPHID:         PHID-USER-4m66oxlehcct7p6actyb
ownerPHID:          None
ccPHIDs:            ['PHID-USER-4m66oxlehcct7p6actyb']
status:             open
statusName:         Open
isClosed:           False
priority:           Needs Triage
priorityColor:      violet
title:              gitlab testing thingy...
description:
projectPHIDs:       []
uri:                https://127.0.0.1/T1
auxiliary:          []
objectName:         T1
dateCreated:        1592474276 (2020-06-18 11:57:56)
dateModified:       1592475102 (2020-06-18 12:11:42)
dependsOnTaskPHIDs: []
(phabfive) ➜  phabfive git:(feature/maniphest_app) phabfive repl
*************
use self.phab to access the phacility API
use self.conf to access current client configuration
use pp() to prettyprint the API response back from self.phab.* calls
*************
--Return--
> /home/grok/dynamist/phabfive/phabfive/repl.py(31)run()->None
-> pdb.set_trace()
(Pdb) 

Closes #45

lgtm-com[bot] commented 4 years ago

This pull request introduces 4 alerts when merging a49dd4ad299b6ff91dc796108d20efe1d9ef997c into 831e0e7f38d6299785157722153dc38cbbb6f29a - view on LGTM.com

new alerts:

holmboe commented 4 years ago

LGTM, rebase and merge.