Skip to content

feat: add run ID column to Slack results table#70

Merged
adamrtalbot merged 11 commits into
mainfrom
feat/add-run-id-to-slack-table
May 13, 2026
Merged

feat: add run ID column to Slack results table#70
adamrtalbot merged 11 commits into
mainfrom
feat/add-run-id-to-slack-table

Conversation

@adamrtalbot
Copy link
Copy Markdown
Contributor

Why

Run IDs weren't visible in the Slack notification table, making it harder to quickly identify and reference specific runs from the notification.

What

  • Added runId (from workflow.id) to the extracted metadata fields
  • Added "Run ID" as the first column in the Slack results table
  • Runs that failed to launch display "-" for the run ID

🤖 Generated with Claude Code

adamrtalbot and others added 4 commits November 26, 2025 14:29
Add a prominent header to Slack workflow completion messages that displays
the Seqera Platform environment (staging/production) or API URL. This makes
it immediately clear which platform instance the pipelines were executed on.

Changes:
- Add --slack_header CLI argument to extract_metadata.py
- Create get_default_slack_header() to show Platform API URL
- Create build_header_block() for Slack header formatting
- Modify send_slack_message() to include header in first message
- Update staging workflow with "Seqera Platform Staging" default
- Update production workflow with "Seqera Platform Production" default
- Update enterprise workflow with header support
- Default to production endpoint when TOWER_API_ENDPOINT not set

The header appears as large, bold text at the top of Slack messages,
making environment identification effortless for users.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
…ction

Convert Slack header from header block (large, bold text) to section block
(plain text) with markdown support. This enables emoji support (both Unicode
and Slack shortcodes) and provides a simpler, less visually dominant appearance
that better matches the rest of the message.

Changes:
- Change block type from "header" to "section"
- Change text type from "plain_text" to "mrkdwn" (enables emoji support)
- Remove 150-character truncation logic (section blocks are more flexible)
- Remove "emoji": False flag

Users can now use emojis in custom headers:
  --slack_header "🚀 Seqera Platform Staging"
  --slack_header ":rocket: Seqera Platform Production"

Co-Authored-By: Claude <noreply@anthropic.com>
Extract workflow.id from run metadata and display it as the first
column in the Slack notification table for easier run identification.

Generated by Claude Code
Comment thread extract_metadata.py
Comment thread extract_metadata.py Outdated
Comment thread extract_metadata.py Outdated
@adamrtalbot
Copy link
Copy Markdown
Contributor Author

@adamrtalbot adamrtalbot deployed to delay5mins May 13, 2026 15:51 — with GitHub Actions Active
Bash treats `\n` inside double quotes as literal characters, so the
header rendered as `... branch\nEnvironment: ...`. Switch to ANSI-C
quoting (`$'\n'`) so a real newline reaches the Slack mrkdwn block.

Generated by Claude Code
@adamrtalbot adamrtalbot changed the base branch from feat/add-slack-platform-header to main May 13, 2026 16:33
@adamrtalbot adamrtalbot merged commit 13986ed into main May 13, 2026
2 of 3 checks passed
@adamrtalbot adamrtalbot deleted the feat/add-run-id-to-slack-table branch May 13, 2026 16:33
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