-
Notifications
You must be signed in to change notification settings - Fork 3
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
scm/github: filter issues that belongs to PR diff #9
Conversation
Thank you for following up on this so quickly! |
@adenisonafifi no problem, I was adding tests to be sure it won't break. Worth a star ⭐ haha |
Codecov Report
@@ Coverage Diff @@
## main #9 +/- ##
==========================================
- Coverage 74.04% 73.92% -0.12%
==========================================
Files 4 4
Lines 235 257 +22
==========================================
+ Hits 174 190 +16
- Misses 42 46 +4
- Partials 19 21 +2
Continue to review full report at Codecov.
|
} | ||
|
||
if len(comments) == 0 { | ||
return errors.New("failed to find relevant issues") | ||
} | ||
|
||
body := fmt.Sprintf(`:wave: Hey, I added %d comments about your changes, please take a look :slightly_smiling_face:`, len(issues)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@herlon214 I forgot to update the I added %d comments about your changes
to use len(comments)
as now the len(issues)
>= len(comments)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed on v0.5.1, thanks @adenisonafifi
This should fix the issue #8