@@ -6,6 +6,7 @@ export interface Env {
66 IGNORED_BRANCHES : string ;
77 IGNORED_USERS : string ;
88 IGNORED_PAYLOADS : string ;
9+ IGNORED_CHECK_RUNS : string ;
910
1011 GITHUB_WEBHOOK_SECRET : string ;
1112
@@ -23,6 +24,7 @@ export class BoundEnv {
2324 private ignoredBranches : string [ ] ;
2425 private ignoredUsers : string [ ] ;
2526 private ignoredPayloads : string [ ] ;
27+ private ignoredCheckRuns : string [ ] ;
2628 readonly githubWebhookSecret : string ;
2729 readonly debugPaste : boolean ;
2830 readonly awaitErrors : boolean ;
@@ -36,6 +38,7 @@ export class BoundEnv {
3638 this . ignoredBranches = env . IGNORED_BRANCHES ?. split ( "," ) || [ ] ;
3739 this . ignoredUsers = env . IGNORED_USERS ?. split ( "," ) || [ ] ;
3840 this . ignoredPayloads = env . IGNORED_PAYLOADS ?. split ( "," ) || [ ] ;
41+ this . ignoredCheckRuns = env . IGNORED_CHECK_RUNS ?. split ( "," ) || [ ] ;
3942 this . githubWebhookSecret = env . GITHUB_WEBHOOK_SECRET ;
4043 this . debugPaste = env . DEBUG_PASTE == "true" || env . DEBUG_PASTE == "1" ;
4144 this . awaitErrors = env . AWAIT_ERRORS == "true" || env . AWAIT_ERRORS == "1" ;
@@ -71,6 +74,14 @@ export class BoundEnv {
7174 return this . ignoredPayloads . includes ( payload ) ;
7275 }
7376
77+ /**
78+ * @param {String } name
79+ * @return {boolean }
80+ */
81+ isIgnoredCheckRun ( name : string ) : boolean {
82+ return this . ignoredCheckRuns . includes ( name ) ;
83+ }
84+
7485 async buildDebugPaste ( embed : any ) : Promise < string > {
7586 embed = JSON . stringify ( {
7687 "files" : [
0 commit comments