line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::gh::Command::Pullreq; |
2
|
1
|
|
|
1
|
|
1630
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
34
|
|
3
|
1
|
|
|
1
|
|
7
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
35
|
|
4
|
1
|
|
|
1
|
|
5
|
use base qw(App::gh::Command); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
80
|
|
5
|
1
|
|
|
1
|
|
290
|
use App::gh; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
38
|
|
6
|
1
|
|
|
1
|
|
6
|
use App::gh::Utils; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
104
|
|
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
6
|
use constant subcommands => qw(List Show Send); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
444
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 NAME |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
App::gh::Command::Pullreq - pull request. (show/list/send) |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 USAGE |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
Send a pull request |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
before that, make sure you've set EDITOR environment variable. |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
$ gh pullreq send |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
List pull requests |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
$ gh pullreq list |
25
|
|
|
|
|
|
|
... |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
Show pull requests issue {N}: |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
$ gh pullreq show {N} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
More about pullreq send command: |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
$ gh pullreq send |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
$ gh pullreq send master c9s/App-gh |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=cut |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
sub run { |
41
|
0
|
|
|
0
|
0
|
|
my ($self, @args) = @_; |
42
|
0
|
0
|
|
|
|
|
$self->global_help unless @args; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
1; |