Skip to content

Commit

Permalink
add path prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamVe committed Dec 15, 2023
1 parent 66ea6a4 commit 1cd4b34
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/actions/publish-spotbugs-reports/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
8 changes: 7 additions & 1 deletion .github/actions/publish-spotbugs-reports/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1cd4b34

Please sign in to comment.