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(sequential-calls): Use push instead of concat when returning releases #1865

Merged

Conversation

erezrokah
Copy link
Contributor

@erezrokah erezrokah commented Feb 27, 2023

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #1864 🦕
Fixes https://github.com/google-github-actions/release-please-action/issues/546
Also fixes cloudquery/cloudquery#7787

@erezrokah erezrokah requested review from a team as code owners February 27, 2023 16:28
@product-auto-label product-auto-label bot added the size: xs Pull request size is extra small. label Feb 27, 2023
@erezrokah erezrokah changed the title fix(sequential-calls): Use push instead of contact when returning releases fix(sequential-calls): Use push instead of concat when returning releases Feb 27, 2023
@@ -1116,7 +1116,7 @@ export class Manifest {
releasesByPullRequest[pullNumber],
pullRequestsByNumber[pullNumber]
);
resultReleases.concat(releases);
resultReleases.push(...releases);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

concat does not modify the array, it always returns a new one

@erezrokah
Copy link
Contributor Author

erezrokah commented Feb 28, 2023

@erezrokah
Copy link
Contributor Author

Hi lovely release please team 👋 Is there anything missing on my end I should add to this PR?

@chingor13 chingor13 merged commit 1026c73 into googleapis:main Mar 7, 2023
@erezrokah
Copy link
Contributor Author

Thanks for the review, merge and quick release 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: xs Pull request size is extra small.
Projects
None yet
2 participants