diff options
author | Jesse Luehrs <doy@tozt.net> | 2011-01-19 01:15:03 -0600 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2011-01-19 01:15:03 -0600 |
commit | 1f4b5f1d61c391bcc7f1187f36fbb86deca08594 (patch) | |
tree | 1ef7ed2dfd49bd6119de0374a4e04331ad40e73c /bin/git | |
parent | 55979a4271cea28dc3d577e708dfb145d5b6cc4c (diff) | |
download | conf-1f4b5f1d61c391bcc7f1187f36fbb86deca08594.tar.gz conf-1f4b5f1d61c391bcc7f1187f36fbb86deca08594.zip |
add pullreq command
Diffstat (limited to 'bin/git')
-rwxr-xr-x | bin/git/git-hub | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/git/git-hub b/bin/git/git-hub index d5fa913..c6edf50 100755 --- a/bin/git/git-hub +++ b/bin/git/git-hub @@ -169,6 +169,18 @@ sub run_command_list { } @{ $self->_github(owner => $owner, repo => '')->repos->list }; } +sub run_command_pullreq { + my $self = shift; + my ($owner, $repo, $title, $body) = @_; + die "usage: git hub pullreq <owner> <repo> [title] [description]" + unless @_ == 2 || @_ == 3 || @_ == 4; + + $self->_github(owner => $owner, repo => $repo)->pull_request->pull_request( + title => $title, + body => $body, + ); +} + sub _github { my $self = shift; my %opts = @_; |