comparison bzgit.py @ 5:6c1ca906ffa4

stubbing
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 17 Dec 2012 11:32:47 -0800
parents 9fb08361ac8d
children 7138a453ecf7
comparison
equal deleted inserted replaced
4:9fb08361ac8d 5:6c1ca906ffa4
23 23
24 24
25 def main(args=sys.argv[1:]): 25 def main(args=sys.argv[1:]):
26 26
27 # parse command line arguments 27 # parse command line arguments
28 usage = '%prog [options] ...' 28 usage = '%prog [options] http://github.com/url/of/pull/request'
29 class PlainDescriptionFormatter(optparse.IndentedHelpFormatter): 29 class PlainDescriptionFormatter(optparse.IndentedHelpFormatter):
30 """description formatter""" 30 """description formatter"""
31 def format_description(self, description): 31 def format_description(self, description):
32 if description: 32 if description:
33 return description.strip() + '\n' 33 return description.strip() + '\n'
55 55
56 # connect to gh 56 # connect to gh
57 gh = Github() # TODO: auth 57 gh = Github() # TODO: auth
58 pull = gh.pull_requests.get(pull_request, github_user, github_project) 58 pull = gh.pull_requests.get(pull_request, github_user, github_project)
59 59
60 # move all the things [TODO] 60 # move all the things
61 bz = bzconsole 61 bz = bzconsole.BZapi()
62 # new = bz.new()
63 #
62 64
63 # comment on pull request wrt bugzilla.m.o issue location 65 # comment on pull request wrt bugzilla.m.o issue location
64 # TODO 66 # TODO
65 67
66 # close pull request 68 # close pull request