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: Allow an empty value for --label #1397

Merged
merged 1 commit into from
Apr 15, 2022

Conversation

dazuma
Copy link
Member

@dazuma dazuma commented Apr 15, 2022

I want to be able to pass --label= (i.e. an empty value) to prevent release-please from attempting to add any labels. Currently this doesn't work because javascript thinks "" is falsy, and the labels still default to autorelease: pending.

@dazuma dazuma requested a review from a team as a code owner April 15, 2022 20:36
@dazuma dazuma requested a review from a team April 15, 2022 20:36
@product-auto-label product-auto-label bot added the size: xs Pull request size is extra small. label Apr 15, 2022
@dazuma
Copy link
Member Author

dazuma commented Apr 15, 2022

Shoot, this won't quite work because "".split() yields [""]. Lemme try again...

@dazuma dazuma marked this pull request as draft April 15, 2022 20:39
@product-auto-label product-auto-label bot added size: s Pull request size is small. and removed size: xs Pull request size is extra small. labels Apr 15, 2022
@dazuma dazuma marked this pull request as ready for review April 15, 2022 21:35
@chingor13 chingor13 added the automerge Merge the pull request once unit tests and other checks pass. label Apr 15, 2022
@gcf-merge-on-green gcf-merge-on-green bot merged commit f5aff97 into googleapis:main Apr 15, 2022
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Apr 15, 2022
gcf-merge-on-green bot pushed a commit that referenced this pull request Apr 15, 2022
🤖 I have created a release *beep* *boop*
---


## [13.12.0](v13.11.1...v13.12.0) (2022-04-15)


### Features

* allow configuring `release-search-depth` and `commit-search-depth` ([#1396](#1396)) ([102d650](102d650)), closes [#1394](#1394)


### Bug Fixes

* Allow an empty value for --label ([#1397](#1397)) ([f5aff97](f5aff97))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
@dazuma dazuma deleted the pr/labels-empty branch April 15, 2022 22:43
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.

2 participants