Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable GithubActionsOutputFormatter by default in GithubActions environment #324

Merged
merged 4 commits into from
Jul 10, 2020

Conversation

jschaedl
Copy link
Contributor

@jschaedl jschaedl commented Jul 10, 2020

fixes #318

@jschaedl jschaedl requested a review from smoench July 10, 2020 13:40
@smoench smoench added this to the 0.8.1 milestone Jul 10, 2020
@smoench smoench merged commit a7d4ab0 into master Jul 10, 2020
@smoench smoench deleted the issue-318 branch July 10, 2020 14:39
@@ -30,7 +38,7 @@ public function configureOptions(): array

public function enabledByDefault(): bool
{
return true;
return !(false !== $this->env->get('GITHUB_ACTIONS'));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return !(false !== $this->env->get('GITHUB_ACTIONS'));
return false === $this->env->get('GITHUB_ACTIONS');

This should give the same result without negations and because of this more readable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable GitHub Actions formatter automatically
3 participants