Skip to content
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

Notify people once ready to merge #298

Merged
merged 1 commit into from
May 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/radis-to-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Pull Request readiness
on:
pull_request:
types: [opened, labeled, unlabeled, synchronize]

jobs:
notify_earth:
# once, only when the label is set
if: ${{ github.event.action == 'labeled' && github.event.label.name == '🥕 Radis to review' }}
runs-on: ubuntu-latest
steps:
- name: Notify everyone when PR is radis to be reviewed
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_COLOR: 2986CC
SLACK_TITLE: 👀 it's review time!
SLACK_MESSAGE: "🥕 ${{ github.event.pull_request.title }}"
SLACK_FOOTER: "https://github.com/PrestaShopCorp/ps_eventbus/pull/${{ github.event.pull_request.number }}"
SLACK_USERNAME: QABot
SLACK_CHANNEL: squad-cloudsync-dev
SLACK_ICON: https://avatars.githubusercontent.com/u/56089550?s=48&v=4

is_ready:
name: Is ready 🥕
runs-on: ubuntu-latest
steps:
- uses: mheap/github-action-required-labels@v3
with:
mode: minimum
count: 1
labels: "🥕 Radis to review"
- uses: mheap/github-action-required-labels@v3
with:
mode: exactly
count: 0
labels: "🚧 WIP"
Loading