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