aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/issues.py
diff options
context:
space:
mode:
authorGravatar Chris <[email protected]>2021-06-09 22:24:18 +0100
committerGravatar Chris <[email protected]>2021-06-09 22:56:52 +0100
commit32a4b6ac1c52381520de9dbf36be7f2f2be95bec (patch)
treeceae50148d5af816457249a095e4df18f4a70df2 /bot/exts/evergreen/issues.py
parentMerge pull request #595 from Shivansh-007/fix/ttt (diff)
Update Github emoji to new icons
Github updated their icons, so we should update ours too. Co-authored-by: GDWR <[email protected]>
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..da10047e 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_opened
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_merge
else:
emoji = Emojis.pull_request_closed