Permalink
Browse files

Remove crud left behind last night

  • Loading branch information...
1 parent 343118e commit f04b51be6c14c5e249a9b3b22b276fe62b00c70f @richo richo committed Apr 9, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 github_cli/actions/pull_requests.py
@@ -24,27 +24,27 @@ def get_title(self):
if self.args.title:
return self.args.title[0]
elif we_are_tty():
- self.messageparser.get_title()
+ return self.messageparser.get_title()
else:
raise NoTitleError
def get_message(self):
if self.args.message:
return self.args.message[0]
elif we_are_tty():
- self.messageparser.get_title()
+ return self.messageparser.get_message()
else:
- raise NoTitleError
+ raise NoMessageError
def get_head(self):
- if self.args.base[0]:
- return self.args.base[0]
+ if self.args.head:
+ return self.args.head
# Try to work out what branch we're on somehow
def execute(self):
params = {}
- params['pull[base]'] = self.args.base[0]
+ params['pull[base]'] = self.args.base
params['pull[head]'] = self.get_head()

0 comments on commit f04b51b

Please sign in to comment.