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

Fix exit code policy #3377

Merged
merged 1 commit into from
Jun 25, 2024
Merged

Conversation

esamson
Copy link
Contributor

@esamson esamson commented Jun 25, 2024

Aligning expectation that "all repos succeed" means there are no repos with failures.

This brings back the old behavior from RunResults:

if (reposWithFailures.isEmpty) ExitCode.Success else ExitCode.Error

See:
6259adb...9d9460a

Aligning expectation that "all repos succeed" means there are no repos with failures.

This brings back the old behavior from RunResults:

    if (reposWithFailures.isEmpty) ExitCode.Success else ExitCode.Error

See:
scala-steward-org/scala-steward@6259adb...9d9460a
@alejandrohdezma
Copy link
Member

Good catch @esamson! Thanks!

@alejandrohdezma alejandrohdezma merged commit 14aa0eb into scala-steward-org:main Jun 25, 2024
4 checks passed
@esamson esamson deleted the patch-2 branch June 25, 2024 13:12
val SuccessOnlyIfAllReposSucceed: ExitCodePolicy = successIf(_.reposWithFailures.nonEmpty)
val SuccessOnlyIfAllReposSucceed: ExitCodePolicy = successIf(_.reposWithFailures.isEmpty)
Copy link
Contributor

Choose a reason for hiding this comment

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

Good catch! Sorry I didn't test that with #3369 - thanks for fixing it!

@mzuehlke mzuehlke added the bug Something isn't working label Oct 18, 2024
@mzuehlke mzuehlke added this to the 0.31.0 milestone Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants