Page MenuHomePhabricator
Authored By
mmodell
May 30 2018, 9:31 PM
Size
1 KB
Referenced Files
None
Subscribers
None

blockers

@cli.argument('--count', help='Show at most this many tasks',
metavar='NUM', default=1, type=int)
@cli.argument('--release', help="Show the task id for a specific version",
metavar='VERSION', type=mediawiki_version)
@cli.subcommand('show')
def show(self, *args):
'''
Show a list of deployment blockers tasks
'''
limit = self.arguments.count
constraints = {}
if self.arguments.release:
constraints['query'] = self.arguments.release
limit = 1
res = phab.maniphest.search(
queryKey="GTbIUdDaMLqV",
constraints=constraints,
limit=limit)
for task in res.data:
if limit > 1:
print(
"T%d %s %s" %
(task["id"],
task['fields']['status']['name'],
task['fields']['custom.release.version']))
else:
print("T%d" % task["id"])

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5855764
Default Alt Text
blockers (1 KB)

Event Timeline