GitHub to Slack Daily Summary

Cron job that sends a daily summary of GitHub PR and issue activity to Slack.

Example:

image.png

Setup

  1. Slack Webhook: Create a Slack app with incoming webhook and copy the URL
  2. GitHub Token: Generate a personal access token with repository scope
  3. Environment Variables:
    • SLACK_WEBHOOK_URL - Your Slack webhook URL
    • GITHUB_TOKEN - Your GitHub personal access token
    • GITHUB_OWNER - GitHub username/org (e.g., "octocat")
    • GITHUB_REPO - Repository name (e.g., "Hello-World")
  4. Cron Schedule: You can set the interval in the top right corner of the cron file (main.tsx)

Output

Shows last 24 hours of activity:

  • [open], [draft], [closed] PRs
  • [open], [closed] issues