From 13ed24c56bb2838b765aef91ecd1ec25096254bc Mon Sep 17 00:00:00 2001 From: Cameron Brown Date: Sat, 7 Sep 2024 22:26:30 -0400 Subject: [PATCH] Remove spammy invitation accepted webhook notifications --- src/webhooks.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/webhooks.py b/src/webhooks.py index 56fe940..5f9fd68 100644 --- a/src/webhooks.py +++ b/src/webhooks.py @@ -246,22 +246,6 @@ async def organization_member_invited(self, payload: ClientPayload): f"{name} invited {invited} to {org} in the following teams: {{{teams}}}", ) - @Server.route() - async def organization_member_added(self, payload: ClientPayload): - gh = payload.github_data - # Send a message to software-leadership in the form of: - # [User A](link) accepted an invitation to join [organization_name](link) - name = ( - f"[{await self.real_name(gh['membership']['user']['login'])}]({self.url(gh['membership']['user'], html=True)})" - if "user" in gh["membership"] - else gh["membership"]["email"] - ) - org = f"[{gh['organization']['login']}]({self.url(gh['organization'])})" - updates_channel = self.leaders_channel(gh["organization"]["login"]) - await updates_channel.send( - f"{name} accepted an invitation to join {org}", - ) - @Server.route() async def organization_member_removed(self, payload: ClientPayload): gh = payload.github_data