Skip to content

Commit

Permalink
DEVPROD-11667: Support git tag requester for project notifications (#479
Browse files Browse the repository at this point in the history
)
  • Loading branch information
minnakt authored Nov 6, 2024
1 parent ba2ac38 commit 967cce6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions apps/spruce/src/constants/triggers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
VersionTriggers,
ProjectTriggers,
} from "types/triggers";
import { Requester } from "./requesters";

export const renotifyDefaultTime = "48";
export const regexDisplayName = "display-name";
Expand Down Expand Up @@ -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,
};

Expand Down

0 comments on commit 967cce6

Please sign in to comment.