You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (line.startsWith('## Build Order') || line.startsWith('## Dependency Graph')) {
56
+
foundBuildOrder = true;
57
+
break;
58
+
}
59
+
if (line.startsWith('# Dockerfile Dependency Analysis') ||
60
+
line.startsWith('**Dockerfile:**') ||
61
+
line.startsWith('**Total Stages:**')) {
62
+
output.push(line);
63
+
continue;
64
+
}
65
+
if (line.startsWith('## Source of Truth Validation') ||
66
+
line.startsWith('## Topological Validation')) {
67
+
inValidationSection = true;
68
+
}
69
+
if (inValidationSection) {
70
+
output.push(line);
71
+
}
72
+
}
73
+
74
+
const shortReport = output.join('\n').trim();
75
+
48
76
await github.rest.issues.createComment({
49
77
owner: context.repo.owner,
50
78
repo: context.repo.repo,
51
79
issue_number: context.issue.number,
52
-
body: `## Dockerfile Dependencies Changed\n\n${report}\n\n---\n*This check ensures Dockerfile dependencies are tracked and validated against the source of truth.*`
80
+
body: `${shortReport}\n\n---\n*This check ensures Dockerfile dependencies are tracked and validated against the source of truth.*`
0 commit comments