(name?: string, email?: string)
| 21 | }; |
| 22 | |
| 23 | function signedUpByBlock(name?: string, email?: string): SlackBlock | null { |
| 24 | if (!name && !email) return null; |
| 25 | const emailPart = email ? `<mailto:${email}|${email}>` : ''; |
| 26 | const parts = [name, emailPart ? `(${emailPart})` : ''].filter(Boolean).join(' '); |
| 27 | return { |
| 28 | type: 'section', |
| 29 | text: { type: 'mrkdwn', text: `*Signed up by:* ${parts}` }, |
| 30 | }; |
| 31 | } |
| 32 | |
| 33 | export async function notifyAliasMatch(data: { |
| 34 | signupDomain: string; |
no outgoing calls
no test coverage detected