-
Notifications
You must be signed in to change notification settings - Fork 30
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
feat: prepare release #724
Conversation
Reviewpad Report ℹ️ Messages
|
plugins/aladino/actions/review.go
Outdated
latestReviewEvent, err := mapReviewStateToEvent(latestReview.State) | ||
if err != nil { | ||
return err | ||
} | ||
|
||
// If the latest review is the same as the one we want to create, and the last push date is before the latest review | ||
// then we skip the review creation. | ||
if latestReview.State == reviewEvent && latestReview.Body == reviewBody && lastPushDate.Before(*latestReview.SubmittedAt) { |
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.
This condition will never be true because we are not comparing the mapped state to the event right
if latestReview.State == reviewEvent && latestReview.Body == reviewBody && lastPushDate.Before(*latestReview.SubmittedAt) { | |
if latestReviewEvent == reviewEvent && latestReview.Body == reviewBody && lastPushDate.Before(*latestReview.SubmittedAt) { |
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.
I'm using latestReviewEvent
which is a result from mapReviewStateToEvent(latestReview.State)
. Isn't this what you're saying?
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.
I already pushed a fix for this review 😅 , just wanted to leave the reason for the change here, it should be like that right
📈 Pull Request Metrics💻 Coding Time: 1 minute |
Description
This pull request introduces a series of fixes for the release.
Related issue
none
Type of change
Improvements (non-breaking change without functionality)
How was this tested?
Checklist
task check -f
and have no issuesCode review and merge strategy (ship/show/ask)