Skip to content

GitHub action to parse all open PRs in a repo in parse them in a Slack friendly format.

License

Notifications You must be signed in to change notification settings

leopic/gh-action-open-pr-slack-parser

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Linting and Unit Tests

GitHub Open PR list Slack Block Parser

A GitHub action, meant to be run on a schedule, to list all open pull requests on a GitHub repository.

Usage

name: Verify All Open Pull Requests

on:
  schedule:
    - cron: "0 9 * 1-5 *"

jobs:
  run:
    runs-on: ubuntu-latest
    steps:
      - name: Get PR list
        uses: leopic/[email protected]
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          slackbot-token: YOUR_SLACKBOT_TOKEN
          slack-conversation-id: YOUR_CHANNEL_ID

Output example

The output is similar to: Usage example when integrated into Slack