Closed maxandersen closed 6 months ago
issue is that comparision is done using check if an instance is present in the list.
By implementing eq on githubIssue I could fix it for that case - but I'm wondering if that is going to break other assumptions as theoretically other parts of the issue could be different.
here is what I added to github.py:
def __eq__(self, other):
""" Equality comparison """
if isinstance(other, Issue):
return self.owner == other.owner and self.project == other.project and self.id == other.id
return False
def __hash__(self):
""" Hash function """
return hash((self.owner, self.project, self.id))
having multiple emails I get duplicates in output even when using --merge:
any way have this just be: