mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +01:00
Add CI_BRANCH var
This commit is contained in:
parent
a35d5f1308
commit
9f69d9ac99
@ -263,6 +263,7 @@ class BuildInfoCollector
|
||||
$this->readEnv['GITHUB_ACTIONS'] = $this->env['GITHUB_ACTIONS'];
|
||||
$this->readEnv['GITHUB_REF'] = $this->env['GITHUB_REF'];
|
||||
$this->readEnv['CI_NAME'] = $this->env['CI_NAME'];
|
||||
$this->readEnv['CI_BRANCH'] = $this->env['CI_BRANCH'];
|
||||
|
||||
$slug_parts = explode('/', (string) $this->env['GITHUB_REPOSITORY']);
|
||||
|
||||
|
@ -51,9 +51,10 @@ class Shepherd implements \Psalm\Plugin\Hook\AfterAnalysisInterface
|
||||
|
||||
if (!$source_control_data && isset($build_info['git']) && \is_array($build_info['git'])) {
|
||||
$source_control_data = $build_info['git'];
|
||||
unset($build_info['git']);
|
||||
}
|
||||
|
||||
unset($build_info['git']);
|
||||
|
||||
if ($build_info) {
|
||||
$data = [
|
||||
'build' => $build_info,
|
||||
@ -114,12 +115,6 @@ class Shepherd implements \Psalm\Plugin\Hook\AfterAnalysisInterface
|
||||
}
|
||||
} else {
|
||||
echo "🐑 Shepherd data sent 🐑" . PHP_EOL;
|
||||
echo 'Git args: '
|
||||
. var_export($source_control_data, true)
|
||||
. PHP_EOL;
|
||||
echo 'CI args: '
|
||||
. var_export($build_info, true)
|
||||
. PHP_EOL;
|
||||
}
|
||||
|
||||
// Close cURL session handle
|
||||
|
Loading…
x
Reference in New Issue
Block a user