config: add polling section to sample config
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I882b8ce0657f0f92dc31f7fc9713e9256a6a6964
This commit is contained in:
parent
374408834b
commit
2facb2a1e2
1 changed files with 13 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue