@@ -12,6 +12,7 @@ export enum ActionType {
1212 GITHUB_CLOSE = "GITHUB_CLOSE" ,
1313 GITHUB_LOCK = "GITHUB_LOCK" ,
1414 GITHUB_NO_OP = "GITHUB_NO_OP" ,
15+ GITHUB_SPAM = "GITHUB_SPAM" ,
1516 EMAIL_SEND = "EMAIL_SEND"
1617}
1718
@@ -21,7 +22,8 @@ export const GITHUB_ISSUE_ACTIONS = [
2122 ActionType . GITHUB_REMOVE_LABEL ,
2223 ActionType . GITHUB_CLOSE ,
2324 ActionType . GITHUB_LOCK ,
24- ActionType . GITHUB_NO_OP
25+ ActionType . GITHUB_NO_OP ,
26+ ActionType . GITHUB_SPAM
2527] ;
2628
2729export class Action {
@@ -149,6 +151,16 @@ export class GitHubCloseAction extends GitHubIssueAction {
149151 }
150152}
151153
154+ export class GitHubSpamAction extends GitHubIssueAction {
155+ constructor ( org : string , name : string , number : number , reason ?: string ) {
156+ super ( ActionType . GITHUB_SPAM , org , name , number ) ;
157+
158+ if ( reason ) {
159+ this . reason = reason ;
160+ }
161+ }
162+ }
163+
152164export class GitHubLockAction extends GitHubIssueAction {
153165 constructor ( org : string , name : string , number : number , reason ?: string ) {
154166 super ( ActionType . GITHUB_LOCK , org , name , number ) ;
0 commit comments