Documentation
¶
Overview ¶
Package botpr classifies pull requests opened by dependency-update bots (Dependabot, Renovate) so the notifier can render a compact Slack message instead of the standard "please review" format, and tell routine version bumps apart from security-advisory updates.
Detection is deliberately narrow: an exact, case-insensitive match on the two known bot logins (no prefix matching, no operator-configurable allowlist), and a conservative header-anchored scan of the PR body for the advisory section. A body parse miss falls back to the routine kind — never the other way around — so a template change on GitHub's side degrades a security PR to routine, not a routine PR to a false alarm.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsSecurityAdvisory ¶
IsSecurityAdvisory reports whether prBody carries the advisory section that marks a security update. A miss returns false (routine) — the safe default.
Types ¶
type BotKind ¶
type BotKind int
BotKind identifies which dependency bot opened a PR, or BotKindNone for anything else (humans and unrecognised bots alike).
Bot kinds returned by DetectBot. BotKindNone covers humans and any bot that is not one of the two recognised dependency updaters.