Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds first-class help-topic aliases backed by a new topic_aliases table, integrates alias resolution into topic lookup/autocomplete, and introduces new Discord bot commands for managing aliases.
Changes:
- Add DB schema + store/db APIs for topic aliases (list/add/delete) and wire migrations to create/drop
topic_aliases. - Update
/helpand autocomplete to optionally include aliases, and add/add-alias+/remove-aliascommands. - Refactor a few DB access patterns and tighten some command UX/validation helpers.
Reviewed changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| db/store.go | Adds alias data model + CRUD/query methods; minor refactors to topic retrieval/deletion. |
| db/migrations/00002_add_aliases.up.sql | Creates the topic_aliases table. |
| db/migrations/00002_add_aliases.down.sql | Drops the topic_aliases table. |
| db/migrations.go | Embeds/applies the new migration and improves migration logging metadata. |
| db/db.go | Exposes alias APIs and updates topic retrieval to resolve aliases. |
| commands/utils.go | Adds shared topic/alias validation and optional alias inclusion in topic lists. |
| commands/remove-alias.go | New /remove-alias command. |
| commands/help.go | Enables alias-inclusive autocomplete for /help. |
| commands/get-topics.go | Adds include-aliases option and passes it through to topic listing output. |
| commands/delete-topic.go | Updates messaging and autocomplete behavior around deletions. |
| commands/constants.go | Adds a constant for autocomplete choice display length. |
| commands/autocomplete.go | Adds alias-inclusive autocomplete + alias-only autocomplete helper. |
| commands/all-commands.go | Registers the new alias commands. |
| commands/add-help.go | Adjusts add-help UX to resolve aliases and refactors timestamp encoding helpers. |
| commands/add-alias.go | New /add-alias command. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
No description provided.