diff options
author | Leandro Lucarella <leandro.lucarella@sociomantic.com> | 2014-10-16 12:36:26 +0200 |
---|---|---|
committer | Mihails Strasuns <mihails.strasuns@sociomantic.com> | 2014-10-20 07:42:29 +0200 |
commit | 4fd3fbdf0b81086fc40cbffc9d771d693563e48b (patch) | |
tree | a80ef8e95f5201bce029093adc4d9fa5d04b3819 | |
parent | 41c3844ba42ecf742bb358daf22017e9204294dc (diff) |
Add info a message to pull new/attach
The message contains information about the new pull request or the code
attached to an issue, like what's the branch with the proposed changes,
and what's the destination repository and branch.
-rwxr-xr-x | git-hub | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1311,6 +1311,8 @@ class PullCmd (IssueCmd): (title, body) = split_titled_message(msg) cls.push(head_name or head_ref, remote_head, force=args.force_push) + infof("Creating pull request from branch {} to {}:{}", + remote_head, config.upstream, base) pull = req.post(cls.url(), head=gh_head, base=base, title=title, body=body) cls.print_issue_summary(pull) @@ -1357,6 +1359,9 @@ class PullCmd (IssueCmd): msg = cls.comment_editor(msg) cls.push(head_name or head_ref, remote_head, force=args.force_push) + infof("Attaching commits in branch {} to issue #{} " + "(to be merged to {}:{})", remote_head, + args.issue, config.upstream, base) pull = req.post(cls.url(), issue=args.issue, base=base, head=gh_head) cls.print_issue_summary(pull) |