feat(github): rewrite plugin with OAuth Device Flow#102
Merged
Conversation
added 2 commits
February 18, 2026 18:54
…ntegration Replace the minimal repo-info-only GitHub plugin with a full integration supporting OAuth Device Flow authentication, 11 subcommands (login, logout, me, repos, issues, issue, starred, star, unstar, notifications), paginated list views with callback query navigation, and cron-based auth polling.
Replace unused `code` return values with `_` in star/unstar handlers, callback query handlers, and cron polling. Remove unused logger require.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GITHUB_CLIENT_IDandGITHUB_CLIENT_SECRETto.env.exampleCommands
/gh login/gh logout/gh me/gh repos [user]/gh owner/repo/gh issues owner/repo/gh issue owner/repo#123/gh starred/gh star owner/repo/gh unstar owner/repo/gh notificationsKey design decisions
github:token:{uid}, 1yr TTL), pending device flows (github:device:{uid}, 15min TTL), pending set for cron enumerationr:,i:,s:,n:) to stay within Telegram's 64-byte callback data limitintervalfield, handlesslow_downresponses, caps at 10 polls per tick, cleans up expired flowsTest plan
busted spec/plugins/utility/github_spec.lua— 73/73 passbusted— 668/668 pass (no regressions)/gh loginflow end-to-end