aboutsummaryrefslogtreecommitdiffstats
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
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]>
-rw-r--r--bot/constants.py14
-rw-r--r--bot/exts/evergreen/issues.py6
2 files changed, 11 insertions, 9 deletions
diff --git a/bot/constants.py b/bot/constants.py
index f7fe216b..798cb950 100644
--- a/bot/constants.py
+++ b/bot/constants.py
@@ -190,12 +190,14 @@ class Emojis:
dice_5 = "<:dice_5:755891608091885627>"
dice_6 = "<:dice_6:755891607680843838>"
- issue = "<:IssueOpen:629695470327037963>"
- issue_closed = "<:IssueClosed:629695470570307614>"
- pull_request = "<:PROpen:629695470175780875>"
- pull_request_closed = "<:PRClosed:629695470519713818>"
- pull_request_draft = "<:PRDraft:829755345425399848>"
- merge = "<:PRMerged:629695470570176522>"
+ # These icons are from Github's repo https://github.com/primer/octicons/
+ issue_opened = "<:IssueOpen:852294683731165184>"
+ issue_closed = "<:IssueClosed:852294683723694140>"
+ issue_draft = "<:IssueDraft:852294683592884284>" # Not currently used by Github, but here for future.
+ pull_request_open = "<:PROpen:629695470175780875>"
+ pull_request_closed = "<:PRClosed:852294683194294304>"
+ pull_request_draft = "<:PRDraft:852294683861712916>"
+ pull_request_merge = "<:PRMerged:629695470570176522>"
number_emojis = {
1: "\u0031\ufe0f\u20e3",
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