Skip to content

fix: improve Mattermost deploy notification format#13

Merged
adriantaut merged 4 commits intomainfrom
chore/migrate-deploy-notification-to-mattermost
Feb 24, 2026
Merged

fix: improve Mattermost deploy notification format#13
adriantaut merged 4 commits intomainfrom
chore/migrate-deploy-notification-to-mattermost

Conversation

@adriantaut
Copy link
Collaborator

Summary

  • Use short SHA (7 chars) for commit display with link to full commit
  • Use colored attachments (green/red sidebar) via PAYLOAD
  • Add clickable links for Product, Actions URL, Commit, and Actor
  • Dynamic username via github.event.repository.name
  • Move channel/username inside PAYLOAD (required when using attachments)
  • Remove commit message to avoid JSON escaping issues with multi-line text

Follow-up to #12.

Test plan

  • Tested colored attachments (green/red sidebar) via curl
  • Tested clickable URLs in Mattermost
  • Merge and verify deploy notification in #devops-alerts

🤖 Generated with Claude Code

adriantaut and others added 4 commits February 24, 2026 20:43
Multi-line commit messages break the JSON payload with unescaped
newlines. Extract just the first line and escape quotes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Avoids JSON escaping issues with multi-line commit messages.
Commit SHA link is sufficient to view details.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The infra/ directory exists after checkout in the real deploy flow.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@adriantaut adriantaut self-assigned this Feb 24, 2026
@adriantaut adriantaut merged commit 157d4fb into main Feb 24, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant