aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/issues.py
diff options
context:
space:
mode:
authorGravatar Chris <[email protected]>2021-06-09 23:03:55 +0100
committerGravatar Chris <[email protected]>2021-06-09 23:03:55 +0100
commit07a8f19be4f1178cca26330d68c778717d267415 (patch)
tree6c0aa31f64be58d1e695666bf0b1b75b7d09d5bc /bot/exts/evergreen/issues.py
parentUpdate Github emoji to new icons (diff)
Update tense of icon constants
This is so the name of the constants describe the state in the correct tense Co-authored-by: Numerlor <[email protected]>
Diffstat (limited to 'bot/exts/evergreen/issues.py')
-rw-r--r--bot/exts/evergreen/issues.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/evergreen/issues.py b/bot/exts/evergreen/issues.py
index da10047e..00810de8 100644
--- a/bot/exts/evergreen/issues.py
+++ b/bot/exts/evergreen/issues.py
@@ -135,7 +135,7 @@ class Issues(commands.Cog):
# need from the initial API call.
if "issues" in json_data["html_url"]:
if json_data.get("state") == "open":
- emoji = Emojis.issue_opened
+ emoji = Emojis.issue_open
else:
emoji = Emojis.issue_closed
@@ -152,7 +152,7 @@ class Issues(commands.Cog):
emoji = Emojis.pull_request_open
# When 'merged_at' is not None, this means that the state of the PR is merged
elif pull_data["merged_at"] is not None:
- emoji = Emojis.pull_request_merge
+ emoji = Emojis.pull_request_merged
else:
emoji = Emojis.pull_request_closed