watchprs

command module
v0.0.0-...-db4105c Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: ISC Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

watchprs

This program periodically polls PRs of a GitHub repository, filters them for base branch and involved files, and sends a message to a Microsoft Teams channel for every match.

The approach to deduplication is simplistic: on startup, it records the largest PR number. Every PR with a smaller number is considered to be handled already. Once PRs with larger numbers pass the filters, the maximum number is updated.

There is pretty much no error handling - if a notification fails, it won't be retried.

Usage (remember not to pass secrets on the commandline!):

env GH_TOKEN=$token TEAMS_WEBHOOK=$hook watchprs --owner burgerdev --repo watchprs --base-re "^(main|master)$" --files-re "^pkg/.*$"

The program is published as container image at ghcr.io/burgerdev/watchprs:latest.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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