Skip to content

Commit 3950c79

Browse files
committed
Temp: adds grouped issues to repeated findings for testing
1 parent 4a298d2 commit 3950c79

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/actions/file/src/index.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,19 @@ export default async function () {
8888
screenshotRepo,
8989
)
9090
filing.issue.state = 'reopened'
91+
92+
// TEMP: only to test this is working
93+
if (shouldOpenGroupedIssues) {
94+
core.info('grouped issue within repeated filing')
95+
const problemShort: string = filing.findings[0].problemShort
96+
if (!newIssuesByProblemShort[problemShort]) {
97+
newIssuesByProblemShort[problemShort] = []
98+
}
99+
newIssuesByProblemShort[problemShort].push({
100+
url: response.data.html_url,
101+
id: response.data.number,
102+
})
103+
}
91104
}
92105
if (response?.data && filing.issue) {
93106
// Update the filing with the latest issue data

0 commit comments

Comments
 (0)