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

Add review badge when all jobs passed or reviewed #1064

Merged
merged 2 commits into from
Dec 5, 2016

Conversation

Martchus
Copy link
Contributor

@Martchus Martchus commented Dec 5, 2016

Implement optional task in https://progress.opensuse.org/issues/14934

@@ -68,6 +68,8 @@ sub add_review_badge {
my ($build_res) = @_;

$build_res->{reviewed_all_passed} = $build_res->{passed} == $build_res->{total};
$build_res->{reviewed_all_passed_or_softfailed}
= $build_res->{passed} + $build_res->{softfailed} == $build_res->{total};
Copy link
Contributor

Choose a reason for hiding this comment

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

this reviewed_ prefix is actually wrong. There is nothing about reviews in here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Think about it as "auto-review" badge. But I can change it if you like. Then I would also change reviewed_all_passed for consistency.

Copy link
Contributor

Choose a reason for hiding this comment

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

I disagree that passed tests are auto-reviewed. They are not reviewed at all

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed it

@coveralls
Copy link

Coverage Status

Coverage increased (+0.004%) to 72.512% when pulling ac95b1d on Martchus:review_badge into e1068e4 on os-autoinst:master.

@coolo
Copy link
Contributor

coolo commented Dec 5, 2016

fine with me

@coveralls
Copy link

Coverage Status

Coverage increased (+0.004%) to 72.512% when pulling 7478b6a on Martchus:review_badge into e1068e4 on os-autoinst:master.

@coolo coolo merged commit 84716b1 into os-autoinst:master Dec 5, 2016
@Martchus Martchus deleted the review_badge branch December 5, 2016 16:30
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.

None yet

3 participants