Skip to content

Commit

Permalink
fix: logic for updating the issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bfabio committed Jul 24, 2024
1 parent b39963e commit 5a20b16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def should_update_issue(sha1sum: str, issue: github.Issue.Issue) -> bool:
data = re.split("[,=]", m.group("data"))
hidden_fields = dict(zip(data[::2], data[1::2]))

return issue.state == "open" or hidden_fields["sha1sum"] != sha1sum
return issue.state == "open" and hidden_fields["sha1sum"] != sha1sum


def status(gh):
Expand Down

0 comments on commit 5a20b16

Please sign in to comment.