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: draft-pull-requests config #2241

Merged
merged 2 commits into from
Mar 13, 2024

Conversation

matthewhughes934
Copy link
Contributor

@matthewhughes934 matthewhughes934 commented Mar 13, 2024

I discovered this issue while using release-please-action which builds a config via Manifest.fromManifest. In this function the draftPullRequest setting from the config from the config defaults was not considered when merging with the package specific configs. As a result, defining this at the top level of the config had no impact.

Integration with the action was tested via a fork of the release-please-action which was run on a test repo[3] the results can be seen at[4]

Fixes: #1791

[1] https://github.com/google-github-actions/release-please-action/blob/a37ac6e4f6449ce8b3f7607e4d97d0146028dc0b/src/index.ts#L108
[2] matthewhughes934/release-please-action@07de5f3
[3] https://github.com/matthewhughes934/release-please-test/commit/c55af6660b7e67974ed4d9924e4a378c3ab01a7c
[4] https://github.com/matthewhughes934/release-please-test/pull/10

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)
  • N/A Appropriate docs were updated (if necessary)

I discovered this issue while using `release-please-action` which builds
a config via `Manifest.fromManifest`. In this function the
`draftPullRequest` setting from the config from the config defaults was
not considered when merging with the package specific configs. As a
result, defining this at the top level of the config had no impact.

Integration with the action was tested via a fork of the
`release-please-action` which was run on a test repo[3] the results can
be seen at[4]

Fixes: googleapis#1791

[1] https://github.com/google-github-actions/release-please-action/blob/a37ac6e4f6449ce8b3f7607e4d97d0146028dc0b/src/index.ts#L108
[2] matthewhughes934/release-please-action@07de5f3
[3] https://github.com/matthewhughes934/release-please-test/commit/c55af6660b7e67974ed4d9924e4a378c3ab01a7c
[4] https://github.com/matthewhughes934/release-please-test/pull/10
Copy link
Contributor

@chingor13 chingor13 left a comment

Choose a reason for hiding this comment

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

Thank you!

@chingor13 chingor13 merged commit 7028527 into googleapis:main Mar 13, 2024
11 checks passed
@matthewhughes934 matthewhughes934 deleted the fix-draft-pull-requests branch March 16, 2024 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

draft-pull-request manifest configuration option doesn't work
2 participants