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
  • Loading branch information
nscuro authored Jun 18, 2024
1 parent b3255f5 commit b6d66ea
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 b6d66ea

Please sign in to comment.