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

bug: support array argument to labels() again #553

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

zbjornson
Copy link
Collaborator

This was undocumented and untested, and broke in 13.1.0.

I'm not sure why we provide 4 ways to set labels.

Fixes #499

@github-actions
Copy link

Thanks for opening this pull request! Each pull request require an update in the CHANGELOG. Please update it based on your changes.

This was undocumented and untested, and broke in 13.1.0.

Fixes #499
@zbjornson
Copy link
Collaborator Author

I'm not sure why we provide 4 ways to set labels

@siimon @SimenB I'm somewhat inclined to not land this. This was undocumented and untyped, and it took 14 months for one user to notice this broke (between the time 13.1 was released and issue was opened). On the other hand, it's easy to support and the work is done. WDYT?

@SimenB
Copy link
Collaborator

SimenB commented Mar 13, 2023

I'm happy with reducing the API surface (i.e. not land this). However, we can throw an explicit error if an array is passed so the user is aware?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Breaking changes v13 - labels as arguments considered as object
2 participants