Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What was missed
Issue #130 required the integration test to be updated or extended for GitHub. PR #131 did not add any GitHub-specific integration test coverage. The
cmd/review-bot/integration_test.gofile still only exercises the Gitea path — it readsINTEGRATION_GITEA_TOKENandINTEGRATION_GITEA_REPObut has no equivalentINTEGRATION_GITHUB_TOKEN/INTEGRATION_GITHUB_REPOpath, andVCS_TYPEis not set anywhere in the test.Source
What needs to happen
cmd/review-bot/integration_test.go(or a newintegration_github_test.go) that, whenINTEGRATION_GITHUB_TOKENandINTEGRATION_GITHUB_REPOenv vars are set, exercises the full review-bot flow against a real GitHub PR usingVCS_TYPE=github.PostReviewsucceeds and that the correct adapter is selected.References