Skip to content

Commit

Permalink
feat: update pernosco related keywords if trace successful
Browse files Browse the repository at this point in the history
  • Loading branch information
pyoor committed Feb 23, 2023
1 parent de0ae15 commit e357be2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bugmon/bugmon.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,10 @@ def _pernosco(self) -> None:
if "pernosco" in self.bug.commands:
self.remove_command("pernosco")

if "pernosco-wanted" in self.bug.keywords:
self.bug.keywords.remove("pernosco-wanted")
self.bug.keywords.append("pernosco")

return None

def _verify_fixed(self) -> None:
Expand Down Expand Up @@ -517,7 +521,7 @@ def needs_confirm(self) -> bool:

def needs_pernosco(self) -> bool:
"""Helper function to determine eligibility for 'pernosco'"""
return "pernosco" in self.bug.commands
return "pernosco" in self.bug.commands or "pernosco-wanted" in self.bug.keywords

def needs_verify(self) -> bool:
"""Helper function to determine eligibility for 'verify'"""
Expand Down

0 comments on commit e357be2

Please sign in to comment.