config: add polling section to sample config

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I882b8ce0657f0f92dc31f7fc9713e9256a6a6964
This commit is contained in:
raf 2026-02-01 15:35:05 +03:00
commit 2facb2a1e2
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

View file

@ -15,9 +15,11 @@ const config: Config = {
include: [], include: [],
exclude: ['bot-ignore'], exclude: ['bot-ignore'],
}, },
authors: { authors: {
exclude: ['dependabot', 'renovate[bot]'], exclude: ['dependabot', 'renovate[bot]'],
}, },
branches: { branches: {
include: [], // empty = all branches include: [], // empty = all branches
}, },
@ -62,7 +64,9 @@ const config: Config = {
includeReasoning: true, includeReasoning: true,
// One message is picked at random from the list matching the impact. // One message is picked at random from the list matching the impact.
// Placeholders: {type} (issue/pull request), {impact} (positive/negative/neutral) // Placeholders:
// - {type} (issue/pull request),
// - {impact} (positive/negative/neutral)
messages: { messages: {
positive: [ positive: [
'This {type} looks great for the trout! All signals point upstream.', 'This {type} looks great for the trout! All signals point upstream.',
@ -89,6 +93,14 @@ const config: Config = {
level: 'info', level: 'info',
file: 'troutbot.log', file: 'troutbot.log',
}, },
// Polling mode: Watch for @troutbot mentions without webhooks.
// Useful for monitoring multiple repos without needing webhook configuration.
polling: {
enabled: false,
intervalMinutes: 5, // how often to check for new comments
lookbackMinutes: 10, // how far back to look for comments on each poll
},
}; };
export default config; export default config;