Skip to content

Handling case insensitive exclude labels #737

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

Conversation

rafaeelaudibert
Copy link

@rafaeelaudibert rafaeelaudibert commented Oct 1, 2019

This PR close #726 handling the exclude_labels option as a case insensitive option.

It does so downcasing every string in the issue, as well as the ones added to the flag.

The default_options function at parser.rb#237 could be simplified, but I'm waiting for feedback to do so.

@ferrarimarco
Copy link
Contributor

Hi @rafaeelaudibert ! Thanks for your PR.

Can you please add some test cases?

thanks!

@ferrarimarco ferrarimarco self-requested a review October 1, 2019 19:25
@ferrarimarco ferrarimarco added this to the 2.0.0 milestone Oct 1, 2019
@rafaeelaudibert
Copy link
Author

Sure, will try to add it tonight (or in the next 24 hours).

@rafaeelaudibert
Copy link
Author

Hi @rafaeelaudibert ! Thanks for your PR.

Can you please add some test cases?

thanks!

Added a comprehensive test, and updated the old ones to match this change!
I've also upgraded some test performance, as Rubocop was complaining at them.

@skywinder
Copy link
Member

Looks good. Thanks, @rafaeelaudibert
I think we can merge it! cc @ferrarimarco , please check if you have a time! 🙏

@skywinder skywinder self-requested a review December 24, 2019 13:39
@ferrarimarco
Copy link
Contributor

@rafaeelaudibert can you please squash the commits in a single one now that's almost ready?

It's going to be easier to review.

Thanks!

@rafaeelaudibert rafaeelaudibert force-pushed the exclude_labels_insensitive branch from fa5cb88 to dabcd23 Compare December 24, 2019 18:03
@rafaeelaudibert
Copy link
Author

Hey guys! Thanks for the awesome comments. Squashed it, and ready for review/merge.

@olleolleolle
Copy link
Collaborator

@rafaeelaudibert Thanks for the improvement - there's been some code movement under the feet of this (nice!) PR.

Would you be able to rebase on master?

@rafaeelaudibert rafaeelaudibert force-pushed the exclude_labels_insensitive branch from c12d87b to 58b262d Compare April 14, 2020 03:04
@rafaeelaudibert
Copy link
Author

Looks like I fucked up while rebasing and lost the commit with the changes (should have read about rebase better, my bad).

I will try to redo it sometime during the week, sorry for the mistake.

@olleolleolle
Copy link
Collaborator

Perhaps there's a git reflog way of getting the changes back? Web search for reflog, might help! Holding my thumbs.

@ferrarimarco
Copy link
Contributor

Don't worry, it's the first commit on this branch. Look in the "Files changed" tab in the PR to see what's really changing.

@ferrarimarco
Copy link
Contributor

ferrarimarco commented Apr 14, 2020

See https://github.com/github-changelog-generator/github-changelog-generator/pull/737/files

The important bit here, is that we squash and merge, not rebase and merge

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

Successfully merging this pull request may close these issues.

Case insensitive labels
4 participants