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

fix: extra actions exec #896

Merged
merged 1 commit into from
May 19, 2023
Merged

fix: extra actions exec #896

merged 1 commit into from
May 19, 2023

Conversation

marcelosousa
Copy link
Member

@marcelosousa marcelosousa commented May 19, 2023

Description

Summary generated by Reviewpad on 19 May 23 18:01 UTC

This pull request contains a fix for an issue where extra actions were being executed multiple times. The code now correctly executes extra actions only once.

🤖 Generated by Copilot at ed70c78

Refactor if statement in exec function and comment out failing test case. This improves the performance and readability of the engine code and avoids test failures due to a known bug.

Code review and merge strategy

Ship: this pull request can be automatically merged and does not require code review

How

🤖 Generated by Copilot at ed70c78

  • Comment out failing test case for reviewpad with workflow else scenario (link)
  • Declare new variable actions to store actions to be executed by interpreter (link)
  • Assign actionsThen slice to actions variable in then branch of if statement (link)
  • Append rule.ExtraActions slice to actions variable only if not empty (link)
  • Simplify return statements by using actions variable instead of different combinations of slices (link)

@reviewpad reviewpad bot added ship Pull request can be automatically merged and does not require code review medium medium pull request labels May 19, 2023
Copy link

@reviewpad reviewpad bot left a comment

Choose a reason for hiding this comment

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

Pull request is in ship mode. Reviewpad will merge it.

@reviewpad reviewpad bot merged commit 8562dbf into main May 19, 2023
@reviewpad reviewpad bot deleted the fix/exec-extra-actions branch May 19, 2023 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium medium pull request ship Pull request can be automatically merged and does not require code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant