feat: add new repository trigger in GitHub

This commit is contained in:
Ali BARIN
2022-04-18 22:39:21 +02:00
committed by Ömer Faruk Aydın
parent 4f7bef83ea
commit 96ede071cf
6 changed files with 287 additions and 10 deletions

View File

@@ -1,15 +1,22 @@
import Authentication from './authentication';
import {
IService,
IAuthentication,
IApp,
IJSONObject,
} from '@automatisch/types';
import Authentication from './authentication';
import Triggers from './triggers';
export default class Github implements IService {
authenticationClient: IAuthentication;
triggers: Triggers;
constructor(appData: IApp, connectionData: IJSONObject) {
constructor(
appData: IApp,
connectionData: IJSONObject,
parameters: IJSONObject
) {
this.authenticationClient = new Authentication(appData, connectionData);
this.triggers = new Triggers(connectionData, parameters);
}
}