treewide: implement authorized users for polling; cleanup
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I0c72309281e8c67e4ee4333c4c3bc1fe6a6a6964
This commit is contained in:
parent
ad491d69e8
commit
3eb5ccf61c
6 changed files with 279 additions and 40 deletions
|
|
@ -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' },
|
||||
// ],
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue