Skip to content

Make sure _health_check.yml can run on fork PRs by only attempting a slack notification if the channel is defined. #23716

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 21, 2025

Conversation

KevinMind
Copy link
Contributor

@KevinMind KevinMind commented Jul 18, 2025

Fixes: https://github.com/mozilla/addons/ISSUENUM

Description

Context

Testing

Checklist

  • Add #ISSUENUM at the top of your PR to an existing open issue in the mozilla/addons repository.
  • Successfully verified the change locally.
  • The change is covered by automated tests, or otherwise indicated why doing so is unnecessary/impossible.
  • Add before and after screenshots (Only for changes that impact the UI).
  • Add or update relevant docs reflecting the changes made.

@KevinMind KevinMind force-pushed the kevinmind/addons/15736 branch 2 times, most recently from d6a298e to 34b1a7f Compare July 18, 2025 12:38
…s defined (it is not defined on forks which now causes PRs to break CI)
@KevinMind KevinMind force-pushed the kevinmind/addons/15736 branch from 34b1a7f to 0fbdb27 Compare July 18, 2025 12:39
@KevinMind KevinMind changed the title Use ghcr to push development images (does it work in a fork) Make sure _health_check.yml can run on fork PRs by only attempting a slack notification if the channel is defined. Jul 18, 2025
@KevinMind KevinMind requested review from eviljeff and Copilot July 18, 2025 18:06
Copy link
Contributor

@Copilot 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

This PR modifies the health check workflow to work with fork PRs by making Slack notifications conditional on having a defined channel. The changes prevent fork PRs from failing due to missing Slack channel variables while maintaining notification functionality for the main repository.

Key changes:

  • Added a slack_channel parameter to the health check workflow
  • Made Slack notifications conditional on channel availability
  • Updated notification conditions to exclude fork PRs

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/_health_check.yml Added slack_channel input parameter and conditional Slack notification logic
.github/workflows/health_check.yml Passed SLACK_ADDONS_PRODUCTION_CHANNEL variable to health check workflow
.github/workflows/ci.yml Added slack_channel parameter and fork detection for notification exclusion

Copy link
Member

@eviljeff eviljeff left a comment

Choose a reason for hiding this comment

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

but copliot comment?

@KevinMind KevinMind merged commit 4c29ec4 into mozilla:master Jul 21, 2025
45 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.

2 participants