Skip to content
Permalink
Browse files

Add Github Repo parsing

  • Loading branch information
muglug committed Dec 3, 2019
1 parent 946a46a commit 71f16859fb801aae609da23b4e843c1bd01175db
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/Psalm/Internal/ExecutionEnvironment/BuildInfoCollector.php
@@ -264,6 +264,11 @@ protected function fillGithubActions()
$this->readEnv['GITHUB_REF'] = $this->env['GITHUB_REF'];
$this->readEnv['CI_NAME'] = $this->env['CI_NAME'];
$slug_parts = explode('/', (string) $this->env['GITHUB_REPOSITORY']);
$this->readEnv['CI_REPO_OWNER'] = $slug_parts[0];
$this->readEnv['CI_REPO_NAME'] = $slug_parts[1];
if (isset($this->env['GITHUB_EVENT_PATH'])) {
$event_json = \file_get_contents((string) $this->env['GITHUB_EVENT_PATH']);
/** @var array */

0 comments on commit 71f1685

Please sign in to comment.
You can’t perform that action at this time.