Skip to content

Commit 2988e83

Browse files
authored
Merge pull request #6 from teams-notifier/fix-pipeline-link
fix pipeline link
2 parents 4e904ac + 72f720f commit 2988e83

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

cards/merge_request.json.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@
217217
"items": [
218218
{
219219
"type": "TextBlock",
220-
"text": "[{{ mri.head_pipeline_id }}]({{ precalc.url }}/-/pipelines/{{ mri.head_pipeline_id }})",
220+
"text": "[{{ mri.head_pipeline_id }}]({{ precalc.project_url }}/-/pipelines/{{ mri.head_pipeline_id }})",
221221
"wrap": true
222222
}
223223
],

cards/render.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def render(mri: MergeRequestInfos) -> dict[str, Any]:
4444
"latest_action": mri.merge_request_payload.object_attributes.action,
4545
"source_branch": mri.merge_request_payload.object_attributes.source_branch,
4646
"target_branch": mri.merge_request_payload.object_attributes.target_branch,
47+
"project_url": mri.merge_request_payload.project.web_url,
4748
"url": mri.merge_request_payload.object_attributes.url,
4849
"latest_pipeline": latest_pipeline_infos,
4950
"approvers": approvers,

0 commit comments

Comments
 (0)