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

feat: prepare release #724

Merged
merged 5 commits into from
Feb 24, 2023
Merged

feat: prepare release #724

merged 5 commits into from
Feb 24, 2023

Conversation

ferreiratiago
Copy link
Member

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

  • I have performed a self-review of my code
  • I have added tests that prove my fix is effective or that my feature works
  • I have ran task check -f and have no issues

Code review and merge strategy (ship/show/ask)

  • Ask: this pull request requires a code review before merge

@reviewpad reviewpad bot added small small pull request ask Pull request requires a code review before merge labels Feb 23, 2023
@reviewpad reviewpad bot requested review from marcelosousa and shay2025 February 23, 2023 17:54
@reviewpad reviewpad bot added the plugins Modifications to the plugins directory label Feb 23, 2023
@reviewpad
Copy link

reviewpad bot commented Feb 23, 2023

Reviewpad Report

ℹ️ Messages

  • This pull request does not have a linked issue.
  • @marcelosousa: you are being notified because critical code was modified
  • If you are adding or updating a built-in, please do not forget to update the docs
  • If you have added a new function or action do not forget to include it in the built-in list!

@reviewpad reviewpad bot added the waiting-review PR waiting for review label Feb 23, 2023
@reviewpad reviewpad bot added the critical Modifications to critical changes label Feb 23, 2023
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) {
Copy link
Contributor

@zolamk zolamk Feb 24, 2023

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

Suggested change
if latestReview.State == reviewEvent && latestReview.Body == reviewBody && lastPushDate.Before(*latestReview.SubmittedAt) {
if latestReviewEvent == reviewEvent && latestReview.Body == reviewBody && lastPushDate.Before(*latestReview.SubmittedAt) {

Copy link
Member Author

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?

Copy link
Contributor

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

@reviewpad reviewpad bot added the requires-author-attention Pull request requires the author to take action label Feb 24, 2023
@reviewpad reviewpad bot removed the requires-author-attention Pull request requires the author to take action label Feb 24, 2023
@reviewpad reviewpad bot requested a review from zolamk February 24, 2023 05:14
@reviewpad reviewpad bot added the medium medium pull request label Feb 24, 2023
@ferreiratiago ferreiratiago marked this pull request as ready for review February 24, 2023 08:19
@ferreiratiago ferreiratiago merged commit 5878720 into main Feb 24, 2023
@ferreiratiago ferreiratiago deleted the feat/prepare-release branch February 24, 2023 08:21
@reviewpad
Copy link

reviewpad bot commented Feb 24, 2023

📈 Pull Request Metrics

💻 Coding Time: 1 minute
🛻 Pickup Time: 11 hours
👀 Review Time: 3 hours

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ask Pull request requires a code review before merge critical Modifications to critical changes medium medium pull request plugins Modifications to the plugins directory small small pull request waiting-review PR waiting for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants