Retrieve the results for the Group, all matched and unmatched conditions.
()
| 124 | |
| 125 | /** Retrieve the results for the Group, all matched and unmatched conditions. */ |
| 126 | getResults(): PullApproveGroupResult { |
| 127 | const matchedConditions = this.conditions.filter((c) => c.matchedFiles.size > 0); |
| 128 | const unmatchedConditions = this.conditions.filter( |
| 129 | (c) => c.matchedFiles.size === 0 && !c.unverifiable, |
| 130 | ); |
| 131 | const unverifiableConditions = this.conditions.filter((c) => c.unverifiable); |
| 132 | return { |
| 133 | matchedConditions, |
| 134 | matchedCount: matchedConditions.length, |
| 135 | unmatchedConditions, |
| 136 | unmatchedCount: unmatchedConditions.length, |
| 137 | unverifiableConditions, |
| 138 | groupName: this.groupName, |
| 139 | }; |
| 140 | } |
| 141 | } |