Skip to content

feat: add Slack and commit status actions [ED-26530] - #72

Open
davseve wants to merge 3 commits into
mainfrom
feat/slack-and-status-actions
Open

davseve wants to merge 3 commits into
mainfrom
feat/slack-and-status-actions

Conversation

@davseve

@davseve davseve commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Summary

Adds two reusable composite actions:

  • slack-send-message: posts to a channel, to a DM when the target is a user ID, or to an @username. Text can be escaped, truncated and wrapped in a code block, so untrusted content cannot trigger mentions or links.
  • set-commit-status: sets a commit status on a SHA, with input validation and a description cut to 140 characters.

Mapping a GitHub login to Slack is not part of this PR: the organization already has map-github-to-slack in elementor-tests-configuration, which stays the single source for it.

Testing

Each action has a bash test suite with stubbed gh and curl (23 and 12 tests), run by npm test through the workspaces. Prettier, eslint and tsc pass.

🤖 Generated with Claude Code

✨ PR Description

1. Problem & Context

Introduces reusable GitHub Actions to standardize Slack notifications and commit status reporting for external check results (ED-26530).

2. What Changed (Where)

File Description
actions/set-commit-status/ Bash script and action definition to update GitHub commit statuses via API.
actions/slack-send-message/ Bash script and action definition for Slack notifications with escaping and DMs.
**/package.json Metadata and test scripts for both new actions.
**/README.md Documentation for inputs, outputs, and usage examples.
**/*.test.sh Comprehensive test suites using stubs for gh and curl.

3. How It Works

  • Commit Status: Validates SHA/state $\rightarrow$ truncates description to 140 chars $\rightarrow$ calls gh api.
  • Slack Message: Determines target (Channel vs DM) $\rightarrow$ sanitizes/truncates content via jq $\rightarrow$ posts via curl.
  • Validation: Both actions use strict Bash (set -euo pipefail) and regex validation for all inputs.

Generated by LinearB AI and added by gitStream.
AI-generated content may contain inaccuracies. Please verify before using.
💡 Tip: You can customize your AI Description using Guidelines Learn how

…ctions

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@davseve davseve changed the title feat: add Slack and commit status actions feat: add Slack and commit status actions [ED-26530] Nov 29, 2026
davseve and others added 2 commits November 29, 2026 14:11
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…sage

The organization already has map-github-to-slack in elementor-tests-configuration, so it stays the single source for the GitHub to Slack mapping.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant