From 967cce6dbcaba6355cb85a0fefc2978f7ff126de Mon Sep 17 00:00:00 2001 From: minnakt <47064971+minnakt@users.noreply.github.com> Date: Wed, 6 Nov 2024 10:36:48 -0500 Subject: [PATCH] DEVPROD-11667: Support git tag requester for project notifications (#479) --- apps/spruce/src/constants/triggers.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/apps/spruce/src/constants/triggers.ts b/apps/spruce/src/constants/triggers.ts index e39334f99..20c5ed546 100644 --- a/apps/spruce/src/constants/triggers.ts +++ b/apps/spruce/src/constants/triggers.ts @@ -11,6 +11,7 @@ import { VersionTriggers, ProjectTriggers, } from "types/triggers"; +import { Requester } from "./requesters"; export const renotifyDefaultTime = "48"; export const regexDisplayName = "display-name"; @@ -54,17 +55,18 @@ export const failureTypeSubscriberConfig: ExtraField = { }; export const requesterSubscriberOptions = { - gitter_request: "Commit", - patch_request: "Patch", - github_pull_request: "Pull Request", - ad_hoc: "Periodic Build", + [Requester.Gitter]: "Commit", + [Requester.Patch]: "Patch", + [Requester.GitHubPR]: "Pull Request", + [Requester.AdHoc]: "Periodic Build", + [Requester.GitTag]: "Git Tag", }; export const requesterSubscriberConfig: ExtraField = { text: "Build Initiator", key: ExtraFieldKey.BUILD_INITIATOR, fieldType: "select", - default: "gitter_request", + default: Requester.Gitter, options: requesterSubscriberOptions, };