Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonpage committed Nov 4, 2024
1 parent 66aa1a9 commit 5ed6f3e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/DangerFiles/StaticAnalysis.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@
print "file name: #{report_file_name}\n"

if modified_file_names.include?(report_file_name) || added_file_names.include?(report_file_name)
print "file match! #{file}"
print "file match! #{file}\n"
issues = report['diagnostics']
print "issue count: #{issues.count}\n"
for i in 0..issues.count-1
unless issues[i].nil?
message << "#{file_path.split('/').last} | #{issues[i]['type']} | #{issues[i]['category']} | #{issues[i]['description']} | #{issues[i]['location']['line']} | #{issues[i]['location']['col']}\n"
print "#{file_path.split('/').last} | #{issues[i]['type']} | #{issues[i]['category']} | #{issues[i]['description']} | #{issues[i]['location']['line']} | #{issues[i]['location']['col']}\n"
# message << "#{file_path.split('/').last} | #{issues[i]['type']} | #{issues[i]['category']} | #{issues[i]['description']} | #{issues[i]['location']['line']} | #{issues[i]['location']['col']}\n"
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
code-coverage: ${{ github.event_name == 'pull_request' }}
upload-logs: always
- name: Danger Test Results
if: failure()
if: (github.event_name == 'pull_request') && failure()
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Expand Down

0 comments on commit 5ed6f3e

Please sign in to comment.