From 5e4e2ff7eea9b014c3802c90da3a07d467fe7950 Mon Sep 17 00:00:00 2001 From: Quincy Morgan Date: Sun, 7 Apr 2019 14:29:05 -0700 Subject: [PATCH] Fix an issue where stale warning counts would still appear in changeset tags if they had all been resolved (re: #6123) --- modules/ui/commit.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/ui/commit.js b/modules/ui/commit.js index 0a3269cfe..fae3910ea 100644 --- a/modules/ui/commit.js +++ b/modules/ui/commit.js @@ -114,6 +114,11 @@ export function uiCommit(context) { } } + for (var key in tags) { + // remove existing warning counts + if (key.match(/^warnings:/)) delete tags[key]; + } + var warningCountsByType = {}; context.validator().getWarnings().forEach(function(warning) { // deletion count can be derived so don't tag that warning in the changeset