File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,10 @@ public function handle(): void
4040
4141 protected function welcome (array $ includeRepositories , ?array $ exceptRepositories ): void
4242 {
43+ if ($ user = $ this ->gitHub ()->currentUser ()) {
44+ Output::success ($ user , 'WELCOME ' );
45+ }
46+
4347 if ($ includeRepositories ) {
4448 $ this ->bulletList ('You specified the following repository name masks: ' , $ includeRepositories );
4549 }
Original file line number Diff line number Diff line change 1111use Github \Client ;
1212use Github \ResultPager ;
1313use Illuminate \Console \View \Components \Factory ;
14+ use Illuminate \Support \Arr ;
1415use Illuminate \Support \Str ;
1516
1617class GitHub
@@ -37,6 +38,11 @@ public function __construct(
3738 protected ResultPager $ paginator ,
3839 ) {}
3940
41+ public function currentUser (): ?string
42+ {
43+ return Arr::get ($ this ->github ->me ()->show (), 'name ' );
44+ }
45+
4046 public function repositories (array $ repositories ): self
4147 {
4248 $ this ->repositories = $ repositories ;
You can’t perform that action at this time.
0 commit comments