treewide: implement authorized users for polling; cleanup

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I0c72309281e8c67e4ee4333c4c3bc1fe6a6a6964
This commit is contained in:
raf 2026-02-01 17:32:07 +03:00
commit 3eb5ccf61c
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
6 changed files with 279 additions and 40 deletions

View file

@ -116,6 +116,18 @@ const config: Config = {
enabled: false,
intervalMinutes: 5, // how often to check for new comments
lookbackMinutes: 10, // how far back to look for comments on each poll
// Backfill: Catch up on missed pings after restart by persisting last processed timestamp
// backfill: true,
// stateFile: '.troutbot-polling-state.json', // where to store the state (optional, has default)
// Authorized users: Only these users can trigger on-demand analysis via @troutbot mentions
// Leave empty to allow all users (not recommended for public repos)
// authorizedUsers: ['trusted-user-1', 'trusted-user-2'],
// Polling-specific repositories: Override global repositories list for polling only
// If set, only these repos will be polled for @troutbot mentions
// Unauthorized repos will get a thumbsdown reaction and be ignored
// repositories: [
// { owner: 'myorg', repo: 'myrepo' },
// ],
},
};