-
Notifications
You must be signed in to change notification settings - Fork 3
/
manifest.js
143 lines (125 loc) · 4.85 KB
/
manifest.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
import { Manifest } from '../common/models/Manifest.js';
import slackbotController from './controllers/slack.js';
const manifest = new Manifest('Pix Bot Run');
manifest.registerSlashCommand({
command: '/deploy-pix-sites',
path: '/slack/commands/create-and-deploy-pix-site-release',
description: 'Pour faire une release et deployer les sites Pix, Pix Pro et Pix org',
usage_hint: 'patch|minor|major (minor par défaut)',
should_escape: false,
handler: slackbotController.createAndDeployPixSiteRelease,
});
manifest.registerSlashCommand({
command: '/publish-pix-ui',
path: '/slack/commands/create-and-deploy-pix-ui-release',
description: 'Crée une release de Pix-UI et la déploie sur les Github pages !',
usage_hint: '[patch, minor, major]',
should_escape: false,
handler: slackbotController.createAndDeployPixUIRelease,
});
manifest.registerSlashCommand({
command: '/deploy-ember-testing-library',
path: '/slack/commands/create-and-deploy-ember-testing-library-release',
description: 'Crée une release de Ember-testing-library',
usage_hint: '[patch, minor, major]',
should_escape: false,
handler: slackbotController.createAndDeployEmberTestingLibraryRelease,
});
manifest.registerSlashCommand({
command: '/deploy-pix-lcms',
path: '/slack/commands/create-and-deploy-pix-lcms-release',
description: 'Crée une release de Pix-LCMS et la déploie en production (https://lcms-api.pix.fr)',
usage_hint: '[patch, minor, major]',
should_escape: false,
handler: slackbotController.createAndDeployPixLCMSRelease,
});
manifest.registerSlashCommand({
command: '/deploy-pix-datawarehouse',
path: '/slack/commands/create-and-deploy-pix-datawarehouse-release',
description:
'Crée une release de Pix-Datawarehouse et la déploie en production (pix-datawarehouse-production & pix-datawarehouse-ex-production)',
usage_hint: '[patch, minor, major]',
should_escape: false,
handler: slackbotController.createAndDeployPixDatawarehouseRelease,
});
manifest.registerSlashCommand({
command: '/deploy-pix-bot',
path: '/slack/commands/create-and-deploy-pix-bot-release',
description: 'Releaser et déployer pix-bot-run et pix-bot-build',
usage_hint: '[patch, minor, major]',
should_escape: false,
handler: slackbotController.createAndDeployPixBotRelease,
});
manifest.registerSlashCommand({
command: '/deploy-last-version',
path: '/slack/commands/deploy-last-version',
description: 'Déployer sur cette application la dernière release publiée',
usage_hint: '[pix-admin-production]',
should_escape: false,
handler: slackbotController.deployLastVersion,
});
manifest.registerSlashCommand({
command: '/deploy-db-stats',
path: '/slack/commands/create-and-deploy-db-stats',
description: 'Crée une release de db stats',
usage_hint: '[patch, minor, major]',
should_escape: false,
handler: slackbotController.createAndDeployDbStats,
});
manifest.registerSlashCommand({
command: '/deploy-pix-tutos',
path: '/slack/commands/create-and-deploy-pix-tutos-release',
description: 'Crée une release de Pix Tutos',
usage_hint: '[patch, minor, major]',
should_escape: false,
handler: slackbotController.createAndDeployPixTutosRelease,
});
manifest.registerSlashCommand({
command: '/deploy-airflow',
path: '/slack/commands/deploy-airflow',
description: 'Déploie la version précisée de Airflow en production',
usage_hint: '/deploy-airflow $version',
should_escape: false,
handler: slackbotController.deployAirflow,
});
manifest.registerSlashCommand({
command: '/app-status',
path: '/slack/commands/app-status',
description: 'Returns the app status given the app name as parameter',
usage_hint: '[pix-app-production, production]',
should_escape: false,
handler: slackbotController.getAppStatus,
});
manifest.registerSlashCommand({
command: '/deploy-dbt',
path: '/slack/commands/deploy-dbt',
description: 'Déploie la version précisée de DBT en production',
usage_hint: '/deploy-dbt $version',
should_escape: false,
handler: slackbotController.deployDBT,
});
manifest.registerShortcut({
name: 'MEP/Déployer une version',
type: 'global',
callback_id: 'deploy-release',
description: "Lance le déploiement d'une version sur l'environnement de production",
});
manifest.registerShortcut({
name: 'Créer une appli Scalingo',
type: 'global',
callback_id: 'scalingo-app-creation',
description: "Lance la création d'une application sur Scalingo",
});
manifest.addInteractivity({
path: '/run/slack/interactive-endpoint',
handler: slackbotController.interactiveEndpoint,
});
manifest.registerSlashCommand({
command: '/deploy-pix-api-to-pg',
path: '/slack/commands/deploy-pix-api-to-pg',
description: 'Déploie la version précisée de pix-api-to-pg en production',
usage_hint: '/deploy-pix-api-to-pg $version',
should_escape: false,
handler: slackbotController.deployPixApiToPg,
});
export default manifest;