Skip to content

👷 ci: add Slack notification step to CI/CD workflow#4553

Merged
Ostico merged 7 commits intodevelopfrom
slack-ci-notify
Apr 30, 2026
Merged

👷 ci: add Slack notification step to CI/CD workflow#4553
Ostico merged 7 commits intodevelopfrom
slack-ci-notify

Conversation

@Ostico
Copy link
Copy Markdown
Contributor

@Ostico Ostico commented Apr 30, 2026

Summary

Add a Slack notification job to the reusable CI/CD pipeline (_ci-cd.yml).
On every workflow run, the slackNotification job posts a message to the travis-ci Slack channel via rtCamp/action-slack-notify@v2, reporting the completed pipeline and the triggering ref name.

Type

  • feat — new user-facing feature
  • fix — bug fix
  • refactor — restructure without behavior change
  • chore — build, deps, config, docs
  • perf — performance improvement
  • test — test coverage

Changes

File Change
.github/workflows/_ci-cd.yml Add slackNotification job using rtCamp/action-slack-notify@v2

Testing

  • vendor/bin/phpunit --exclude-group=ExternalServices --no-coverage passes
  • ./vendor/bin/phpstan passes (0 errors, with baseline)
  • Manual testing performed (describe below)
  • New tests added for changed behavior
  • Regression tests added for bug fixes

AI Disclosure

  • AI tools were used — details below
    GitHub Copilot (claude-sonnet-4-20250514) assisted with PR description drafting.

Notes

  • The job runs unconditionally (no needs or if guard) so notifications fire regardless of test/deploy outcome.
  • Requires the SLACK_WEBHOOK secret to be configured in the repository settings.

Copilot AI review requested due to automatic review settings April 30, 2026 15:17
Comment thread .github/workflows/_ci-cd.yml Fixed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a Slack notification job to the reusable CI/CD workflow so workflow runs can post a completion message to Slack.

Changes:

  • Introduces a new slackNotification job in the reusable workflow.
  • Uses rtCamp/action-slack-notify@v2 with SLACK_WEBHOOK and a fixed channel (travis-ci).
  • Includes the triggering ref name in the Slack title.

Comment thread .github/workflows/_ci-cd.yml Outdated
Comment thread .github/workflows/_ci-cd.yml
Comment thread .github/workflows/_ci-cd.yml Outdated
Comment thread .github/workflows/_ci-cd.yml Outdated
Comment thread .github/workflows/_ci-cd.yml
@Ostico Ostico changed the title 🎉 feat(ci): add Slack notification step to CI/CD workflow 👷 ci: add Slack notification step to CI/CD workflow Apr 30, 2026
Copilot AI review requested due to automatic review settings April 30, 2026 15:21
@matecat matecat deleted a comment from github-actions Bot Apr 30, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 5 comments.

Comment thread .github/workflows/_ci-cd.yml
if: always()
permissions: {}
steps:
- name: Slack Notification
Copy link

Copilot AI Apr 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in the Slack title: "Github" should be "GitHub".

Copilot uses AI. Check for mistakes.
Comment thread .github/workflows/_ci-cd.yml Outdated
Comment thread .github/workflows/_ci-cd.yml
Comment thread .github/workflows/_ci-cd.yml Outdated
@github-actions
Copy link
Copy Markdown

🧪 Test-Guard Report

✅ PASS — All changed source files have adequate test coverage.

Coverage Analysis: ⏭️ SKIP

No source files to analyze — all changed files are tests or excluded.

Test File Matching: ✅ PASS

No source files to check

Per-File Evaluation: ✅ PASS

No source files to evaluate.

Result: ✅ PASS

1 similar comment
@github-actions
Copy link
Copy Markdown

🧪 Test-Guard Report

✅ PASS — All changed source files have adequate test coverage.

Coverage Analysis: ⏭️ SKIP

No source files to analyze — all changed files are tests or excluded.

Test File Matching: ✅ PASS

No source files to check

Per-File Evaluation: ✅ PASS

No source files to evaluate.

Result: ✅ PASS

Ostico added 2 commits April 30, 2026 17:32
base_ref reports the target branch (e.g. develop) on PR runs,
not the triggering branch. head_ref correctly reports the source
branch, with ref_name as fallback for push/tag events.
Fix brand spelling (Github → GitHub) in Slack title. Add fork-PR
guard so the job is skipped when secrets are unavailable on
external contributor PRs.
Copilot AI review requested due to automatic review settings April 30, 2026 15:40
@matecat matecat deleted a comment from github-actions Bot Apr 30, 2026
@matecat matecat deleted a comment from github-actions Bot Apr 30, 2026
@matecat matecat deleted a comment from github-actions Bot Apr 30, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@github-actions
Copy link
Copy Markdown

🧪 Test-Guard Report

✅ PASS — All changed source files have adequate test coverage.

Coverage Analysis: ⏭️ SKIP

No source files to analyze — all changed files are tests or excluded.

Test File Matching: ✅ PASS

No source files to check

Per-File Evaluation: ✅ PASS

No source files to evaluate.

Result: ✅ PASS

@Ostico Ostico merged commit 0308d21 into develop Apr 30, 2026
21 checks passed
@Ostico Ostico deleted the slack-ci-notify branch April 30, 2026 15:48
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.

3 participants