fix: action-agent.sh fetches comments without bot filtering (#243)

Resolve the bot username dynamically from CODEBERG_TOKEN via the /user
API endpoint and filter out bot comments from the prior-context section.
Additional bot accounts can be specified via CODEBERG_BOT_USERNAMES env
var (comma-separated).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
openhands 2026-03-20 19:01:56 +00:00
parent 00d11efa82
commit 5157064bf0
2 changed files with 19 additions and 2 deletions

View file

@ -18,6 +18,10 @@ CODEBERG_TOKEN=
# Branch protection: this account must be in the approvals whitelist.
REVIEW_BOT_TOKEN=
# Comma-separated Codeberg usernames to filter from issue comments.
# The token owner is auto-detected; add extra bot accounts here if needed.
CODEBERG_BOT_USERNAMES=
# ── Woodpecker CI ─────────────────────────────────────────────────────────
WOODPECKER_TOKEN=
WOODPECKER_SERVER=http://localhost:8000