We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent edefa7c commit 496514cCopy full SHA for 496514c
1 file changed
services/apps/merge_suggestions_worker/src/utils.ts
@@ -1,10 +1,10 @@
1
import { ILLMConsumableMember, PlatformType } from '@crowd/types'
2
3
-import { EMAIL_AS_USERNAME_PLATFORMS } from './enums'
+import { EMAIL_AS_USERNAME_PLATFORMS, noreplyEmailProviders } from './enums'
4
5
function isNoreplyEmail(value: string): boolean {
6
const lower = value.toLowerCase()
7
- return ['@users.noreply.github.com', '@users.noreply.gitlab.com'].some((s) => lower.endsWith(s))
+ return Object.values(noreplyEmailProviders).some((s) => lower.endsWith(s))
8
}
9
10
export const prefixLength = (string: string) => {
0 commit comments