Delete actions folder

This commit is contained in:
Tuan Dang
2022-12-08 23:55:33 -05:00
parent d4e0a4992c
commit a763d8b8ed
2 changed files with 0 additions and 57 deletions

View File

@ -1,7 +0,0 @@
import {
actionPushToHeroku
} from './integration';
export {
actionPushToHeroku
}

View File

@ -1,50 +0,0 @@
import {
Key,
Bot,
IBot,
Integration,
IntegrationAuth
} from '../models';
import * as Sentry from '@sentry/node';
import { BotService } from '../services';
interface Event {
name: string;
workspaceId: string;
payload: any;
}
/**
* Push secrets to Heroku
* @param {Object} obj
* @param {Event} obj.event
* @param {IBot} obj.bot
*/
const actionPushToHeroku = ({
event,
bot
}: {
event: Event,
bot: IBot
}) => {
// TODO: push secrets in [event]
// event: name, workspaceId, payload (environment, secrets)
try {
// 1. Bot needs to decrypt their project key
// 2. Bot needs to decrypt secrets
// 3. Query IntegrationAuth for credentials
// 4. Decrypt integration refresh and token
// 5. Query Integration for integration details
// 6. Push to integration
} catch (err) {
Sentry.setUser(null);
Sentry.captureException(err);
}
}
export {
actionPushToHeroku
}