Skip to content

Commit

Permalink
Merge pull request #5 from demisto/update-state-check
Browse files Browse the repository at this point in the history
Fixed the handling of closed issues
  • Loading branch information
ronykoz authored Nov 25, 2020
2 parents 94ef872 + 1c1af78 commit 17e265e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/github_automation/management/event_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def run(self):
if issue is None:
return # In case the event is not for an issue

if issue.state == 'closed':
if issue.state == 'CLOSED':
print("The issue is closed, not taking an action.")
return

Expand Down
2 changes: 1 addition & 1 deletion tests/test_files/event_manager_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ def test_loading_event_manager_with_closed_issue():
},
"title": title,
"id": issue_id,
"state": "closed",
"state": "CLOSED",
"number": 1,
"milestone": {
"title": "test"
Expand Down

0 comments on commit 17e265e

Please sign in to comment.