Skip to content

Conversation

@konard
Copy link
Member

@konard konard commented Sep 14, 2025

Summary

  • Increased default interaction interval from 60 to 300 seconds (5 minutes) to reduce polling frequency
  • Fixed GitHubStorage.GetIssues() timestamp tracking bug that caused reprocessing of the same timeframes repeatedly
  • Added processed item tracking to prevent duplicate actions on issues and pull requests
  • Ensured only one trigger processes each issue to prevent conflicts

Problem

The bot was sending excessive messages due to:

  1. Aggressive polling: 60-second intervals were too frequent
  2. Timestamp bug: The lastIssue timestamp wasn't updated when no new issues were found, causing the same timeframes to be repeatedly processed
  3. No duplicate prevention: Issues and PRs were processed repeatedly without tracking what had already been handled
  4. Multiple trigger execution: Multiple triggers could act on the same issue causing redundant actions

Solution

  1. Increased polling interval: Changed default from 60 to 300 seconds (5 minutes)
  2. Fixed timestamp logic: Always update lastIssue to current time to prevent reprocessing
  3. Added deduplication: Track processed issues/PRs using HashSet with unique keys (repo#number)
  4. Single trigger per issue: Added break statement to ensure only one trigger processes each issue

Test plan

  • Verify code compiles successfully
  • Confirm reduced default polling frequency
  • Test in production environment to verify reduced message frequency
  • Monitor for any missed legitimate triggers

🤖 Generated with Claude Code


Resolves #9

Adding CLAUDE.md with task information for AI processing.
This file will be removed when the task is complete.

Issue: #9
@konard konard self-assigned this Sep 14, 2025
- Increased default interaction interval from 60 to 300 seconds (5 minutes)
- Fixed GitHubStorage.GetIssues() to always update lastIssue timestamp, preventing reprocessing of same timeframes
- Added processed item tracking to IssueTracker and PullRequestTracker to prevent duplicate actions
- Added break statement in IssueTracker to ensure only one trigger processes each issue

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@konard konard changed the title [WIP] Reduce the amount of messages from the bot? Reduce bot message frequency to prevent spam Sep 14, 2025
@konard konard marked this pull request as ready for review September 14, 2025 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reduce the amount of messages from the bot?

2 participants