feat: implement precision traffic strategy for scout bot
Some checks failed
Deploy to 110 WOOO Server / deploy (push) Failing after 7s

This commit is contained in:
OG T
2026-06-07 21:41:51 +08:00
parent 1e0f9d5e9c
commit 7096305ff4
2 changed files with 28 additions and 10 deletions

View File

@@ -91,13 +91,18 @@ services:
# Optional: add more discovery repos via env (comma separated "owner/repo"), e.g. openai/swarm,significant-gravitas/autogpt
- SCOUT_TARGET_REPOS=${SCOUT_TARGET_REPOS:-open-webui/open-webui,microsoft/vscode,vercel/next.js,langchain-ai/langgraph,facebook/react,microsoft/TypeScript,openai/openai-cookbook,astral-sh/ruff,sequelize/sequelize,pnpm/pnpm,prisma/prisma,openai/swarm,Significant-Gravitas/AutoGPT,microsoft/autogen,crewAIInc/crewAI}
# Optional: comma-separated labels; leave unset for broad scan of all open issues
- SCOUT_ISSUE_LABELS=${SCOUT_ISSUE_LABELS:-}
# Use 'help wanted' to only target issues where maintainers are explicitly asking for external help. This prevents us from being seen as spam.
- SCOUT_ISSUE_LABELS=${SCOUT_ISSUE_LABELS:-help wanted}
# Keep compatibility with existing naming
- SCOUT_ISSUE_LABEL=${SCOUT_ISSUE_LABEL:-}
- SCOUT_CRON_EXPRESSION=${SCOUT_CRON_EXPRESSION:-*/1 * * * *}
# Run once an hour to avoid flooding
- SCOUT_CRON_EXPRESSION=${SCOUT_CRON_EXPRESSION:-0 * * * *}
- SCOUT_ENABLED=${SCOUT_ENABLED:-true}
- SCOUT_PER_PAGE=${SCOUT_PER_PAGE:-80}
- SCOUT_MAX_ISSUES_PER_SCAN=${SCOUT_MAX_ISSUES_PER_SCAN:-90}
# Allow commenting on all repos, since we are now strictly filtering by label and rate.
- SCOUT_COMMENT_REPOS=${SCOUT_COMMENT_REPOS:-*}
- SCOUT_PER_PAGE=${SCOUT_PER_PAGE:-30}
# Only process at most 2 issues per repo per hour to stay under the radar
- SCOUT_MAX_ISSUES_PER_SCAN=${SCOUT_MAX_ISSUES_PER_SCAN:-2}
# GitHub token should be provided in deployment env for real posting.
- GITHUB_TOKEN=${GITHUB_TOKEN:-}
networks: