Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Expérimente pour la transparence budgétaire #1494

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 58 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@
"typescript-transform-paths": "^3.3.1",
"uuid": "^8.3.2",
"webpack": "^5.73.0",
"webpack-cli": "^4.10.0"
"webpack-cli": "^4.10.0",
"yaml": "^2.1.1"
},
"devDependencies": {
"@types/chai": "^4.3.1",
Expand Down
11 changes: 7 additions & 4 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { config } from 'dotenv';

config();

import { buildMattermostConfig } from "./lib/mattermost/config"

const isSecure = (process.env.SECURE || 'true') === 'true';

const userStatusOptions = [
Expand Down Expand Up @@ -39,16 +41,17 @@ export default {
newsletterHashSecret: process.env.NEWSLETTER_HASH_SECRET,
newsletterSendTime: process.env.NEWSLETTER_SEND_TIME,
mattermostURL: process.env.MATTERMOST_URL || 'https://mattermost.incubateur.net',
mattermost: buildMattermostConfig(),
senderEmail: process.env.MAIL_SENDER || '[email protected]',
slackWebhookURLSecretariat: process.env.SLACK_WEBHOOK_URL_SECRETARIAT,
slackWebhookURLGeneral: process.env.SLACK_WEBHOOK_URL_GENERAL,
usersAPI:
process.env.USERS_API || 'https://beta.gouv.fr/api/v2.3/authors.json',
incubatorAPI: process.env.INCUBATOR_API || 'https://beta.gouv.fr/api/v2.3/incubators.json',
process.env.USERS_API || 'https://beta.gouv.fr/api/v2.5/authors.json',
incubatorAPI: process.env.INCUBATOR_API || 'https://beta.gouv.fr/api/v2.5/incubators.json',
startupsAPI:
process.env.STARTUPS_API || 'https://beta.gouv.fr/api/v2/startups.json',
process.env.STARTUPS_API || 'https://beta.gouv.fr/api/v2.5/startups.json',
startupsDetailsAPI:
process.env.STARTUPS_DETAILS_API || 'https://beta.gouv.fr/api/v2.3/startups_details.json',
process.env.STARTUPS_DETAILS_API || 'https://beta.gouv.fr/api/v2.5/startups_details.json',
githubToken: process.env.GITHUB_TOKEN,
githubOrganizationName: process.env.GITHUB_ORGANIZATION_NAME || 'betagouv',
githubOrgAdminToken: process.env.GITHUB_ORG_ADMIN_TOKEN,
Expand Down
Loading