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

Sort messages added to Github for check consistency #8

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

Conversation

twidi
Copy link
Contributor

@twidi twidi commented Dec 30, 2015

To know if a message should be added to Github we check if it was
already added.
Or if we have more than one messages for a line, they are not guaranteed
to be in the same order, so the check fail.

This commit simply sort the lines before adding them to the final
message to check.

(It also simplifies this part of the code using the fact that set.add
will not add a new occurence of the value if already present, so the
extra set and the if..in are not needed)

To know if a message should be added to Github we check if it was
already added.
Or if we have more than one messages for a line, they are not guaranteed
to be in the same order, so the check fail.

This commit simply sort the lines before adding them to the final
message to check.

(It also simplifies this part of the code using the fact that `set.add`
will not add a new occurence of the value if already present, so the
extra set and the `if..in` are not needed)
@keith
Copy link
Contributor

keith commented Apr 3, 2017

This LGTM, can you rebase it @twidi and let me know when you do so I can merge?

@twidi
Copy link
Contributor Author

twidi commented Apr 5, 2017

I'm currently at DjangoConEu in Firenze with poor network so I'll do it once back home. Thanks !

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