Skip to content

Commit 0d8bc2e

Browse files
authored
Fix duplicate creation of content linting issues (#57550)
1 parent af02006 commit 0d8bc2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content-linter/scripts/lint-report.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,12 @@ async function main() {
132132
reportLabel: REPORT_LABEL!,
133133
}
134134

135-
await createReportIssue(reportProps)
135+
const newReport = await createReportIssue(reportProps)
136136

137137
const linkProps = {
138138
core,
139139
octokit,
140-
newReport: await createReportIssue(reportProps),
140+
newReport,
141141
reportRepository: REPORT_REPOSITORY!,
142142
reportAuthor: REPORT_AUTHOR!,
143143
reportLabel: REPORT_LABEL!,

0 commit comments

Comments
 (0)