Skip to content

Commit ce3404e

Browse files
committed
Added github workflows
1 parent 6b58afa commit ce3404e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/action.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -342,18 +342,16 @@ const postDriftDetectionSummary = async (context, maxOpenedIssues, componentsToI
342342

343343
for (let i = 0; i < driftingComponents.length; i++) {
344344
const slug = driftingComponents[i];
345-
const issueNumber = componentsToIssues[slug].number;
346-
347345
if (componentsCandidatesToCreateIssue.indexOf(slug) === -1) {
348-
table.push( `| [${slug}](https://github.com/${orgName}/${repo}/actions/runs/${runId}#user-content-result-${slug}) | ![drifted](https://shields.io/badge/DRIFTED-important?style=for-the-badge "Drifted") | Drift detected. Issue already exists [#${issueNumber}](https://github.com/${orgName}/${repo}/issues/${issueNumber}) |`);
346+
const issueNumber = componentsToIssues[slug].number;
347+
table.push( `| [${slug}](https://github.com/${orgName}/${repo}/actions/runs/${runId}#user-content-result-${slug}) | ![drifted](https://shields.io/badge/DRIFTED-important?style=for-the-badge "Drifted") | Drift detected. Issue already exists [#${issueNumber}](https://github.com/${orgName}/${repo}/issues/${issueNumber}) |`);
349348
}
350349
}
351350

352351
for (let i = 0; i < erroredComponents.length; i++) {
353352
const slug = erroredComponents[i];
354-
const issueNumber = componentsToIssues[slug].number;
355-
356353
if (componentsCandidatesToCreateIssue.indexOf(slug) === -1) {
354+
const issueNumber = componentsToIssues[slug].number;
357355
table.push( `| [${slug}](https://github.com/${orgName}/${repo}/actions/runs/${runId}#user-content-result-${slug}) | ![failed](https://shields.io/badge/FAILED-ff0000?style=for-the-badge "Failed") | Failure detected. Issue already exists [#${issueNumber}](https://github.com/${orgName}/${repo}/issues/${issueNumber}) |`);
358356
}
359357
}

0 commit comments

Comments
 (0)