@@ -130,55 +130,55 @@ jobs:
130130 cat <<EOF | curl -X POST "$TEAMS_WEBHOOK_URL" \
131131 -H "Content-Type: application/json" \
132132 -d @-
133+ {
134+ "attachments": [
133135 {
134- "attachments": [
135- {
136- "contentType": "application/vnd.microsoft.card.adaptive",
137- "content": {
138- "\$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
139- "type": "AdaptiveCard",
140- "version": "1.4",
141- "body": [
142- {
143- "type": "TextBlock",
144- "size": "Large",
145- "weight": "Bolder",
146- "color": "Good",
147- "text": "✅ Benchmark Already Promoted"
148- },
149- {
150- "type": "TextBlock",
151- "text": "Benchmark version ${priv_ver} from **${repo}** is already available in **${public_repo}**.",
152- "wrap": true,
153- "spacing": "Medium"
154- },
155- {
156- "type": "FactSet",
157- "facts": [
158- { "title": "🔒 Private Repo:", "value": "${repo}" },
159- { "title": "📦 Private Version:", "value": "${priv_ver}" },
160- { "title": "🌐 Public Repo:", "value": "${public_repo}" },
161- { "title": "📦 Public Version:", "value": "${pub_ver}" }
162- ]
163- },
164- {
165- "type": "TextBlock",
166- "text": "🔗 [View Issue #${number}](https://github.com/${repo}/issues/${number})",
167- "wrap": true,
168- "spacing": "Medium"
169- },
170- {
171- "type": "TextBlock",
172- "text": "📅 Auto-closed on: $(date -u +%Y-%m-%dT%H:%M:%SZ)",
173- "wrap": true,
174- "spacing": "Small"
175- }
136+ "contentType": "application/vnd.microsoft.card.adaptive",
137+ "content": {
138+ "\$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
139+ "type": "AdaptiveCard",
140+ "version": "1.4",
141+ "body": [
142+ {
143+ "type": "TextBlock",
144+ "size": "Large",
145+ "weight": "Bolder",
146+ "color": "Good",
147+ "text": "✅ Benchmark Already Promoted"
148+ },
149+ {
150+ "type": "TextBlock",
151+ "text": "Benchmark version ${priv_ver} from **${repo}** is already available in **${public_repo}**.",
152+ "wrap": true,
153+ "spacing": "Medium"
154+ },
155+ {
156+ "type": "FactSet",
157+ "facts": [
158+ { "title": "🔒 Private Repo:", "value": "${repo}" },
159+ { "title": "📦 Private Version:", "value": "${priv_ver}" },
160+ { "title": "🌐 Public Repo:", "value": "${public_repo}" },
161+ { "title": "📦 Public Version:", "value": "${pub_ver}" }
176162 ]
163+ },
164+ {
165+ "type": "TextBlock",
166+ "text": "🔗 [View Issue #${number}](https://github.com/${repo}/issues/${number})",
167+ "wrap": true,
168+ "spacing": "Medium"
169+ },
170+ {
171+ "type": "TextBlock",
172+ "text": "📅 Auto-closed on: $(date -u +%Y-%m-%dT%H:%M:%SZ)",
173+ "wrap": true,
174+ "spacing": "Small"
177175 }
178- }
179- ]
176+ ]
177+ }
180178 }
181- EOF
179+ ]
180+ }
181+ EOF
182182 fi
183183 done
184184
@@ -217,55 +217,55 @@ jobs:
217217 cat <<EOF | curl -X POST "$TEAMS_WEBHOOK_URL" \
218218 -H "Content-Type: application/json" \
219219 -d @-
220+ {
221+ "attachments": [
220222 {
221- "attachments": [
222- {
223- "contentType": "application/vnd.microsoft.card.adaptive",
224- "content": {
225- "\$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
226- "type": "AdaptiveCard",
227- "version": "1.4",
228- "body": [
229- {
230- "type": "TextBlock",
231- "size": "Large",
232- "weight": "Bolder",
233- "color": "Attention",
234- "text": "⏰ Benchmark Promotion Reminder"
235- },
236- {
237- "type": "TextBlock",
238- "text": "${reminder_msg}",
239- "wrap": true,
240- "spacing": "Medium"
241- },
242- {
243- "type": "TextBlock",
244- "text": "${urgency_note}",
245- "wrap": true,
246- "spacing": "Small"
247- },
248- {
249- "type": "FactSet",
250- "facts": [
251- { "title": "🔒 Private Repo:", "value": "${repo}" },
252- { "title": "📦 Private Version:", "value": "${priv_ver}" },
253- { "title": "🌐 Destination Public Repo:", "value": "${public_repo}" },
254- { "title": "📅 Days Tracked:", "value": "${age_days}" }
255- ]
256- },
257- {
258- "type": "TextBlock",
259- "text": "🔗 [View Issue #${number}](${issue_url})",
260- "wrap": true,
261- "spacing": "Medium"
262- }
223+ "contentType": "application/vnd.microsoft.card.adaptive",
224+ "content": {
225+ "\$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
226+ "type": "AdaptiveCard",
227+ "version": "1.4",
228+ "body": [
229+ {
230+ "type": "TextBlock",
231+ "size": "Large",
232+ "weight": "Bolder",
233+ "color": "Attention",
234+ "text": "⏰ Benchmark Promotion Reminder"
235+ },
236+ {
237+ "type": "TextBlock",
238+ "text": "${reminder_msg}",
239+ "wrap": true,
240+ "spacing": "Medium"
241+ },
242+ {
243+ "type": "TextBlock",
244+ "text": "${urgency_note}",
245+ "wrap": true,
246+ "spacing": "Small"
247+ },
248+ {
249+ "type": "FactSet",
250+ "facts": [
251+ { "title": "🔒 Private Repo:", "value": "${repo}" },
252+ { "title": "📦 Private Version:", "value": "${priv_ver}" },
253+ { "title": "🌐 Destination Public Repo:", "value": "${public_repo}" },
254+ { "title": "📅 Days Tracked:", "value": "${age_days}" }
263255 ]
256+ },
257+ {
258+ "type": "TextBlock",
259+ "text": "🔗 [View Issue #${number}](${issue_url})",
260+ "wrap": true,
261+ "spacing": "Medium"
264262 }
265- }
266- ]
263+ ]
264+ }
267265 }
268- EOF
266+ ]
267+ }
268+ EOF
269269 fi
270270 done
271271
@@ -286,48 +286,48 @@ jobs:
286286 cat <<EOF | curl -X POST "$TEAMS_WEBHOOK_URL" \
287287 -H "Content-Type: application/json" \
288288 -d @-
289- {
290- "attachments": [
291- {
292- "contentType": "application/vnd.microsoft.card.adaptive",
293- "content": {
294- "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
295- "type": "AdaptiveCard",
296- "version": "1.4",
297- "body": [
298- {
299- "type": "TextBlock",
300- "size": "Large",
301- "weight": "Bolder",
302- "color": "Attention",
303- "text": "❌ Benchmark Promotion Blocked"
304- },
305- {
306- "type": "TextBlock",
307- "text": "$missing_reason",
308- "wrap": true,
309- "spacing": "Medium"
310- },
311- {
312- "type": "FactSet",
313- "facts": [
314- { "title": "🔒 Private Repo", "value": "${REPO}" },
315- { "title": "📦 Private Version", "value": "${PRIVATE_VERSION}" },
316- { "title": "🌐 Public Repo", "value": "$public_repo" }
317- ]
318- },
319- {
320- "type": "TextBlock",
321- "text": "📢 Please resolve this to enable promotion.",
322- "wrap": true,
323- "spacing": "Medium"
324- }
325- ]
326- }
289+ {
290+ "attachments": [
291+ {
292+ "contentType": "application/vnd.microsoft.card.adaptive",
293+ "content": {
294+ "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
295+ "type": "AdaptiveCard",
296+ "version": "1.4",
297+ "body": [
298+ {
299+ "type": "TextBlock",
300+ "size": "Large",
301+ "weight": "Bolder",
302+ "color": "Attention",
303+ "text": "❌ Benchmark Promotion Blocked"
304+ },
305+ {
306+ "type": "TextBlock",
307+ "text": "$missing_reason",
308+ "wrap": true,
309+ "spacing": "Medium"
310+ },
311+ {
312+ "type": "FactSet",
313+ "facts": [
314+ { "title": "🔒 Private Repo", "value": "${REPO}" },
315+ { "title": "📦 Private Version", "value": "${PRIVATE_VERSION}" },
316+ { "title": "🌐 Public Repo", "value": "$public_repo" }
317+ ]
318+ },
319+ {
320+ "type": "TextBlock",
321+ "text": "📢 Please resolve this to enable promotion.",
322+ "wrap": true,
323+ "spacing": "Medium"
324+ }
325+ ]
327326 }
328- ]
329- }
330- EOF
327+ }
328+ ]
329+ }
330+ EOF
331331 exit 0
332332 fi
333333
@@ -394,48 +394,48 @@ jobs:
394394 cat <<EOF | curl -X POST "${{ secrets.TEAMS_WEBHOOK_URL }}" \
395395 -H "Content-Type: application/json" \
396396 -d @-
397- {
398- "attachments": [
399- {
400- "contentType": "application/vnd.microsoft.card.adaptive",
401- "content": {
402- "\$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
403- "type": "AdaptiveCard",
404- "version": "1.4",
405- "body": [
406- {
407- "type": "TextBlock",
408- "size": "Large",
409- "weight": "Bolder",
410- "color": "Good",
411- "text": "✅ Benchmark Auto-Promoted"
412- },
413- {
414- "type": "TextBlock",
415- "text": "🎉 **$priv_ver** from **$repo** was auto-promoted to **$public_repo** after **$age_days** days of tracking.",
416- "wrap": true,
417- "spacing": "Medium"
418- },
419- {
420- "type": "FactSet",
421- "facts": [
422- { "title": "🔒 Private Repo", "value": "$repo" },
423- { "title": "📦 Version", "value": "$priv_ver" },
424- { "title": "🌐 Public Repo", "value": "$public_repo" },
425- { "title": "📅 Days Tracked", "value": "$age_days" }
426- ]
427- },
428- {
429- "type": "TextBlock",
430- "text": "🧾 PR has been merged, and the issue is closed.",
431- "wrap": true,
432- "spacing": "Medium"
433- }
434- ]
435- }
397+ {
398+ "attachments": [
399+ {
400+ "contentType": "application/vnd.microsoft.card.adaptive",
401+ "content": {
402+ "\$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
403+ "type": "AdaptiveCard",
404+ "version": "1.4",
405+ "body": [
406+ {
407+ "type": "TextBlock",
408+ "size": "Large",
409+ "weight": "Bolder",
410+ "color": "Good",
411+ "text": "✅ Benchmark Auto-Promoted"
412+ },
413+ {
414+ "type": "TextBlock",
415+ "text": "🎉 **$priv_ver** from **$repo** was auto-promoted to **$public_repo** after **$age_days** days of tracking.",
416+ "wrap": true,
417+ "spacing": "Medium"
418+ },
419+ {
420+ "type": "FactSet",
421+ "facts": [
422+ { "title": "🔒 Private Repo", "value": "$repo" },
423+ { "title": "📦 Version", "value": "$priv_ver" },
424+ { "title": "🌐 Public Repo", "value": "$public_repo" },
425+ { "title": "📅 Days Tracked", "value": "$age_days" }
426+ ]
427+ },
428+ {
429+ "type": "TextBlock",
430+ "text": "🧾 PR has been merged, and the issue is closed.",
431+ "wrap": true,
432+ "spacing": "Medium"
433+ }
434+ ]
436435 }
437- ]
438- }
439- EOF
436+ }
437+ ]
438+ }
439+ EOF
440440
441441 done
0 commit comments