Skip to content

Send reviewable PRs to Mattermost #243

Send reviewable PRs to Mattermost

Send reviewable PRs to Mattermost #243

Workflow file for this run

name: Send reviewable PRs to Mattermost
on:
schedule:
- cron: '0 9 * * 1-5'
workflow_dispatch: # Allow manual trigger
jobs:
notify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/github-script@v7
id: list
with:
script: |
const script = require('./scripts/gh-pr.js')
await script({github, context, core})
- name: Send to Mattermost
uses: mattermost/action-mattermost-notify@master
with:
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
TEXT: "## PRs à review \n ${{ steps.list.outputs.prs }}"