mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6214] [MERGED] test(tgbot): detect open-coded keypad transitions #6176
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#6176
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/6214
Author: @n0ctal
Created: 8/14/2026
Status: ✅ Merged
Merged: 8/15/2026
Merged by: @MHSanaei
Base:
main← Head:upstream-tgbot-keypad-followup📝 Commits (2)
abbe02etest(tgbot): detect open-coded keypad transitionsf074368Merge branch 'main' into upstream-tgbot-keypad-followup📊 Changes
2 files changed (+49 additions, -7 deletions)
View changed files
📝
internal/web/service/tgbot/numeric_input.go(+2 -3)📝
internal/web/service/tgbot/numeric_input_test.go(+47 -4)📄 Description
Summary
Why
This follows up on review comments for #6211 that did not land before merge. The original fixed-file count could stay green when a future call site reintroduced the duplicated transition elsewhere.
Scope
Tests and one comment only. Runtime behavior is unchanged.
Validation
go test ./internal/web/service/tgbot/...golangci-lint run ./internal/web/service/tgbot/...open-coded numeric keypad transition at tgbot_router.go:442:9; use updateNumericInputmake gen-checkRisk
Low. The AST check ignores tests and the helper itself; equivalent non-switch control flow remains outside its scope.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.