Skip to content

Commit

Permalink
emoj
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelLinearB committed May 18, 2023
1 parent 1c7847a commit 7463fab
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .cm/sonar.cm
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,45 @@ automations:
run:
- action: add-label@v1
args:
label: "{{ sonar.vulnerabilities.count }} vulnerabilities"
label: '{{ sonar.vulnerabilities.count }} 🛡️ Vulnerabilities'
color: {{ 'fecdca' if (sonar.vulnerabilities.rating == 'E') else ('f0f593' if (sonar.vulnerabilities.rating == 'C' ) else 'd1fadf') }}
security_hotspots:
if:
- {{ sonar.security_hotspots.count > 0}}
run:
- action: add-label@v1
args:
label: "{{ sonar.security_hotspots.count }} Security Hotspots"
label: '{{ sonar.security_hotspots.count }} 🌶️ Security hotspots'
color: {{ 'fecdca' if (sonar.security_hotspots.rating == 'E') else ('f0f593' if (sonar.security_hotspots.rating == 'C' ) else 'd1fadf') }}
code_smells:
if:
- {{ sonar.code_smells.count > 0}}
run:
- action: add-label@v1
args:
label: "{{ sonar.code_smells.count }} code smells"
label: '{{ sonar.code_smells.count }} 💩 Code Smells'
color: {{ 'fecdca' if (sonar.code_smells.rating == 'E') else ('f0f593' if (sonar.code_smells.rating == 'C' ) else 'd1fadf') }}
bugs:
if:
- {{ sonar.bugs.count > 0}}
run:
- action: add-label@v1
args:
label: "{{ sonar.bugs.count }} bugs"
label: '{{ sonar.bugs.count }} 🐞 Bugs'
color: {{ 'fecdca' if (sonar.bugs.rating == 'E') else ('f0f593' if (sonar.bugs.rating == 'C' ) else 'd1fadf') }}

mark_outstanding_pr:
if:
- {{ sonar.bugs.count == 0 }}
- {{ sonar.code_smells.count == 0 }}
- {{ sonar.vulnerabilities.count == 0 }}
- {{ sonar.security_hotspots.count == 0 }}
- {{ sonar.duplications == null or sonar.duplications == 0.0 }}
run:
- action: add-label@v1
args:
label: '💯 Sonar'
color: 'd4333f'
Assign:
# Auto assign Security member
if:
Expand Down

0 comments on commit 7463fab

Please sign in to comment.