aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/issues.py
diff options
context:
space:
mode:
authorGravatar Xithrius <[email protected]>2021-06-12 14:23:39 -0700
committerGravatar GitHub <[email protected]>2021-06-12 14:23:39 -0700
commitd195418692eb5332fbcbd6412ea7aa72f0ce9f53 (patch)
tree451dc89e914551a98e09690b7459453caf722d34 /bot/exts/evergreen/issues.py
parentMerge pull request #773 from CasualCoder99/show-match-draw (diff)
parentMerge branch 'main' into new-github-emoji (diff)
Merge pull request #774 from python-discord/new-github-emoji
Update Github emoji to new icons
Diffstat (limited to 'bot/exts/evergreen/issues.py')
-rw-r--r--bot/exts/evergreen/issues.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/evergreen/issues.py b/bot/exts/evergreen/issues.py
index b67aa4a6..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
+ emoji = Emojis.issue_open
else:
emoji = Emojis.issue_closed
@@ -149,10 +149,10 @@ class Issues(commands.Cog):
if pull_data["draft"]:
emoji = Emojis.pull_request_draft
elif pull_data["state"] == "open":
- emoji = Emojis.pull_request
+ 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.merge
+ emoji = Emojis.pull_request_merged
else:
emoji = Emojis.pull_request_closed