Help us shape the future of Go! Take the 2026 Go Developer Survey

pr-notify

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2025 License: MIT Imports: 13 Imported by: 0

README

pr-notify

Simple tool to notify on PRs waiting for reviews.

Env variables

The following env variables are required for proper authentication.

Slack app:

  • SLACK_APP_TOKEN="xapp-XXX" - Slack app token (sensitive)
  • SLACK_BOT_TOKEN="xoxb-XXX" - Slack bot token (sensitive)

Github app:

  • GITHUB_APP_ID - Github app ID
  • GITHUB_INSTALLATION_ID - installation ID (see URL when managing installation)
  • GITHUB_APP_PRIVATE_KEY - Github app private key PEM (sensitive)

Config

Config example:

github_pr_notifications:

  - gh_owner: my-org
    gh_repo: my-repo-1
    gh_pr_labels:
      - enhancement
    gh_pr_include_drafts: true
    gh_pr_ignore_approved: true
    gh_pr_ignore_changes_requested: true
    # Mon-Fri every 2 hours during business hours
    schedule: "CRON_TZ=Europe/Berlin 00 10-18/2 * * 1-5"
    notify:
      slack:
        channel_id: "ABC123000"
        message_header: ":warning: Please review at your earliest convenience @some-group-handle"

  - gh_owner: my-org
    gh_repo: my-repo-2
    gh_pr_labels: []
    # Mon-Fri every 30 hours during business hours
    schedule: "CRON_TZ=Europe/Berlin */30 10-18 * * 1-5"
    notify:
      slack:
        channel_id: "DEF456000"
        message_header: ":warning: Please review at your earliest convenience @some-group-handle"

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
cfg
gh

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL