feat: add new branch trigger in GitHub

This commit is contained in:
Ali BARIN
2022-04-20 21:56:01 +02:00
committed by Ömer Faruk Aydın
parent 6bee6bafa8
commit 3551d12e7d
7 changed files with 124 additions and 15 deletions

View File

@@ -1,13 +1,16 @@
import { IJSONObject } from '@automatisch/types';
import NewRepository from './triggers/new-repository';
import NewOrganization from './triggers/new-organization';
import NewBranch from './triggers/new-branch';
export default class Triggers {
newRepository: NewRepository;
newOrganization: NewOrganization;
newBranch: NewBranch;
constructor(connectionData: IJSONObject, parameters: IJSONObject) {
this.newRepository = new NewRepository(connectionData);
this.newOrganization = new NewOrganization(connectionData);
this.newBranch = new NewBranch(connectionData, parameters);
}
}