From 1cd4b340e348c1cc9f75a9140a11805404e3f5cc Mon Sep 17 00:00:00 2001 From: Adam Velebil Date: Fri, 15 Dec 2023 13:57:58 +0100 Subject: [PATCH] add path prefix --- .github/actions/publish-spotbugs-reports/dist/index.js | 8 +++++++- .github/actions/publish-spotbugs-reports/index.js | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/actions/publish-spotbugs-reports/dist/index.js b/.github/actions/publish-spotbugs-reports/dist/index.js index 04b0b7ab..e621cf76 100644 --- a/.github/actions/publish-spotbugs-reports/dist/index.js +++ b/.github/actions/publish-spotbugs-reports/dist/index.js @@ -35366,7 +35366,13 @@ function bugAnnotation(moduleDirName, bug) { const message = `${bug.LongMessage}\n\nSummary:\n...` const rawDetails = bug.LongMessage const path = - moduleDirName + '/src/main/java/' + bug.Method.SourceLine['@_sourcepath'] + 'tree/' + + context.sha + + '/' + + moduleDirName + + '/src/main/java/' + + bug.Method.SourceLine['@_sourcepath'] + return { title: title, message: message, diff --git a/.github/actions/publish-spotbugs-reports/index.js b/.github/actions/publish-spotbugs-reports/index.js index 294f0652..ec01b8e0 100644 --- a/.github/actions/publish-spotbugs-reports/index.js +++ b/.github/actions/publish-spotbugs-reports/index.js @@ -12,7 +12,13 @@ function bugAnnotation(moduleDirName, bug) { const message = `${bug.LongMessage}\n\nSummary:\n...` const rawDetails = bug.LongMessage const path = - moduleDirName + '/src/main/java/' + bug.Method.SourceLine['@_sourcepath'] + 'tree/' + + context.sha + + '/' + + moduleDirName + + '/src/main/java/' + + bug.Method.SourceLine['@_sourcepath'] + return { title: title, message: message,