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

#214 new attributes failed_builds and succeeded_builds for pull-was-merged #296

Merged
merged 5 commits into from
Aug 21, 2024

Conversation

Suban05
Copy link
Contributor

@Suban05 Suban05 commented Aug 19, 2024

@yegor256 merge zerocracy/fbe#77 PR before

Closes #214

@Suban05
Copy link
Contributor Author

Suban05 commented Aug 19, 2024

@Yegorov @tank-bohr please review
tests fails because this pr needs this pr zerocracy/fbe#77

Copy link
Contributor

@Yegorov Yegorov left a comment

Choose a reason for hiding this comment

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

@Suban05 Look good, but have some question.

@@ -641,6 +636,14 @@ def test_pull_request_event_with_comments
assert_equal(1, f.comments_resolved)
end

def test_count_numbers_of_workflow_builds
fb = Factbase.new
load_it('github-events', fb, Judges::Options.new({ 'repositories' => 'foo/foo', 'testing' => true }))
Copy link
Contributor

Choose a reason for hiding this comment

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

@Suban05 Why not use web mock for this cases? Testing mode used for run yml files, for example - https://github.com/zerocracy/judges-action/blob/master/judges/github-events/quick-scan.yml

Copy link
Contributor Author

@Suban05 Suban05 Aug 20, 2024

Choose a reason for hiding this comment

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

@Yegorov good question. For the pull-was-merged event, we use Fbe.github_graph. Maybe I don't understand something, but it's very difficult to mock this thing by WebMock. And I use a fake client for Fbe.github_graph. However, there is an options argument in both clients (Fbe.octo and Fbe.github_graph), and when I set testing globally, Fbe.octo also becomes a fake client. That's why I use fake clients

Copy link
Contributor

@tank-bohr tank-bohr left a comment

Choose a reason for hiding this comment

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

👍

@Suban05
Copy link
Contributor Author

Suban05 commented Aug 20, 2024

@yegor256 please check

@yegor256
Copy link
Member

@Suban05 can't merge, there are git conflicts, please resolve them

@Suban05
Copy link
Contributor Author

Suban05 commented Aug 21, 2024

@yegor256 done

@yegor256 yegor256 merged commit 4491661 into zerocracy:master Aug 21, 2024
8 checks passed
@yegor256
Copy link
Member

@Suban05 thanks!

@0crat
Copy link

0crat commented Aug 22, 2024

@Yegorov Thanks for your code review! Here's how your +4 points were calculated: +8 base points, -24 for self-review, +16 for hits-of-code (capped), -10 for few comments (2), +6 for minimum reward. We value your contributions! Your balance is now +435. Keep up the good work! 💻👍

@0crat
Copy link

0crat commented Aug 22, 2024

@tank-bohr Hey there! 👋 Great job on the review! You've snagged +4 points for this one. Here's the breakdown: +8 as the base, -10 because we only saw 2 comments (we love detailed feedback!), and +6 to keep you above the minimum. Remember, more comments could boost your score next time - up to 8 points for chatty reviews! Your running balance is now at +136. Keep up the good work and happy coding! 💻🚀

@0crat
Copy link

0crat commented Aug 22, 2024

@Suban05 Great job on your contribution! 🎉 You've earned +21 points: +16 base, +5 for 53 hits-of-code. No deductions for excessive code or lack of reviews. Your balance is now +456. Keep up the good work and remember, quality matters in our review process. Looking forward to your next contribution!

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.

new attributes failed_builds and succeeded_builds for pull-was-merged
5 participants