feat: add new pull request trigger in GitHub (#301)

* feat: add new pull request trigger in GitHub
This commit is contained in:
Ali BARIN
2022-04-23 01:14:54 +02:00
committed by GitHub
parent a623116204
commit af348714f8
5 changed files with 108 additions and 2 deletions

View File

@@ -3,17 +3,20 @@ import NewRepository from './triggers/new-repository';
import NewOrganization from './triggers/new-organization';
import NewBranch from './triggers/new-branch';
import NewNotification from './triggers/new-notification';
import NewPullRequest from './triggers/new-pull-request';
export default class Triggers {
newRepository: NewRepository;
newOrganization: NewOrganization;
newBranch: NewBranch;
newNotification: NewNotification;
newPullRequest: NewPullRequest;
constructor(connectionData: IJSONObject, parameters: IJSONObject) {
this.newRepository = new NewRepository(connectionData);
this.newOrganization = new NewOrganization(connectionData);
this.newBranch = new NewBranch(connectionData, parameters);
this.newNotification = new NewNotification(connectionData, parameters);
this.newPullRequest = new NewPullRequest(connectionData, parameters);
}
}