Skip to content

Commit

Permalink
Add the project name and project URL to bom processing notifications
Browse files Browse the repository at this point in the history
Ports DependencyTrack/dependency-track#3666 from Dependency-Track v4.11.0

Co-authored-by: Ross Murphy <[email protected]>
Signed-off-by: nscuro <[email protected]>
  • Loading branch information
nscuro and 2000rosser committed Jun 18, 2024
1 parent 04c4f7c commit 375eb97
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/main/resources/templates/notification/publisher/msteams.peb
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,29 @@
"value": "{{ subject.project | summarize | escape(strategy="json") }}"
}
],
{% elseif notification.group == "GROUP_BOM_PROCESSING_FAILED" %}
"facts": [
{
"name": "Level",
"value": "{{ notification.level | escape(strategy="json") }}"
},
{
"name": "Scope",
"value": "{{ notification.scope | escape(strategy="json") }}"
},
{
"name": "Group",
"value": "{{ notification.group | escape(strategy="json") }}"
},
{
"name": "Project",
"value": "{{ subject.project | summarize | escape(strategy="json") }}"
},
{
"name": "Project URL",
"value": "{{ baseUrl }}/projects/{{ subject.project.uuid | escape(strategy='json') }}"
}
],
{% else %}
"facts": [
{
Expand Down

0 comments on commit 375eb97

Please sign in to comment.