File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
lib/App/TimeTracker/Command Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,14 @@ sub _build_github_client {
41
41
# optional
42
42
$args {api_uri } = $config -> {api_uri } if $config -> {api_uri };
43
43
44
+ if ( $config -> {upstream } ) {
45
+ for my $fld (qw( user repo) ) {
46
+ error_message( " You set upstream, but did not set '" . $fld . " '!" )
47
+ unless $config -> {upstream }-> {$fld };
48
+ $args {$fld } = $config -> {upstream }-> {$fld };
49
+ }
50
+ }
51
+
44
52
return Pithub-> new(%args );
45
53
}
46
54
@@ -185,6 +193,15 @@ Optional.
185
193
186
194
Set this to the URL of your local GitHub Enterprise installation.
187
195
196
+ =head3 upstream
197
+
198
+ Optional.
199
+
200
+ If the project you are working on has an upstream project where issues are
201
+ handled, then you can set upstream to a hash of user and repo (like on a normal
202
+ project) to fetch issues from there.
203
+
204
+
188
205
=head1 NEW COMMANDS
189
206
190
207
No new commands
You can’t perform that action at this time.
0 commit comments