Skip to content

Commit

Permalink
Merge branch 'fix-moderate'
Browse files Browse the repository at this point in the history
  • Loading branch information
Nancy Habecker committed Apr 14, 2021
2 parents 87e1931 + 5375992 commit 039f81f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dependabotAlerts.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function getAlerts(repos) {
(alert) => alert.severity === "high" && !alert.dismissed
);
const mediumAlerts = alerts.filter(
(alert) => alert.severity === "medium" && !alert.dismissed
(alert) => alert.severity === "moderate" && !alert.dismissed
);

// Dependabot calls these "moderate", but SparkPost categorizes these as "medium"
Expand All @@ -39,7 +39,7 @@ function getAlerts(repos) {
});
summary["high"] = highAlerts.length;
}
if (mediumAlerts.length > 0 && ("critial" || "high" in summary)) {
if (mediumAlerts.length > 0 && (summary.critical || summary.high)) {
mediumAlerts.forEach((alert) => {
blocks.push(buildBlocks(alert));
});
Expand Down

0 comments on commit 039f81f

Please sign in to comment.