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

Perform case-insensitive comparison #136

Merged
merged 3 commits into from
Jun 22, 2022
Merged

Perform case-insensitive comparison #136

merged 3 commits into from
Jun 22, 2022

Conversation

akashivskyy
Copy link
Contributor

Hi! 👋 Labels are case-insensitive, so the checks done by this action must take that into account. I encountered this issue when I configured this action to detect ios label in my repository, but since the actual label name is iOS, it got ignored.

This PR fixes this issue by transforming labels to lowercase before comparing them. The added test fails before the change and passes after the change.

@akashivskyy akashivskyy requested a review from a team as a code owner June 22, 2022 13:40
@mattcosta7
Copy link
Contributor

@akashivskyy thanks for the fix here! looks good - happy to merge and cut a version for this. Would you mind running npm run build then checking in the dist files that get written?

@akashivskyy
Copy link
Contributor Author

@mattcosta7 Done!

@mattcosta7 mattcosta7 merged commit 7334092 into actions:main Jun 22, 2022
@mattcosta7
Copy link
Contributor

shipped in 0.0.5

@akashivskyy akashivskyy deleted the lowercase-labels branch June 22, 2022 15:06
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.

None yet

2 participants