|
15 | 15 | */ |
16 | 16 | import * as functions from "firebase-functions/v2"; |
17 | 17 |
|
18 | | -import * as config from "../config/config.json" |
| 18 | +import * as config from "../config/config.json"; |
19 | 19 | import * as log from "./log"; |
20 | 20 | import * as encoding from "./shared/encoding"; |
21 | 21 | import * as types from "./types"; |
22 | 22 | import * as params from "firebase-functions/params"; |
23 | 23 |
|
| 24 | +// TODO: these should be moved to cloud secrets |
24 | 25 | const githubToken = params.defineString("GITHUB_TOKEN"); |
25 | 26 | const mailgunKey = params.defineString("MAILGUN_KEY"); |
| 27 | + |
| 28 | +// Not secrets |
26 | 29 | const mailgunDomain = params.defineString("MAILGUN_DOMAIN"); |
27 | 30 | const emailDebug = params.defineBoolean("EMAIL_DEBUG"); |
28 | 31 | const emailGroup = params.defineString("EMAIL_GROUP"); |
29 | 32 |
|
30 | 33 | export function getGitHubToken(): string { |
31 | | - return githubToken.value() |
| 34 | + return githubToken.value(); |
32 | 35 | } |
33 | 36 | export function getMailgunKey(): string { |
34 | | - return mailgunKey.value() |
| 37 | + return mailgunKey.value(); |
35 | 38 | } |
36 | 39 | export function getMailgunDomain(): string { |
37 | | - return mailgunDomain.value() |
| 40 | + return mailgunDomain.value(); |
38 | 41 | } |
39 | 42 | export function getEmailDebug(): boolean { |
40 | | - return emailDebug.value() |
| 43 | + return emailDebug.value(); |
41 | 44 | } |
42 | 45 | export function getEmailGroup(): string { |
43 | | - return emailGroup.value() |
| 46 | + return emailGroup.value(); |
44 | 47 | } |
45 | 48 |
|
46 | 49 | interface Repo { |
|
0 commit comments