Skip to content

Sort subscription list alphabetically and normalize repo casing - #6

Merged
stplasim merged 2 commits into
mainfrom
feat/release-list-improvments
Jul 27, 2026
Merged

Sort subscription list alphabetically and normalize repo casing#6
stplasim merged 2 commits into
mainfrom
feat/release-list-improvments

Conversation

@stplasim

Copy link
Copy Markdown
Contributor

Summary

  • /releases list now sorts subscriptions alphabetically by owner/repo (case-insensitive).
  • Owner and repo names are now lowercased at parse time (parseRepo), so they're stored and matched consistently regardless of how the user types them. This affects add, remove, and modify since they all go through the same parser

Notes

  • Only GitHub is currently wired up as a forge, and GitHub resolves owner/repo paths case-insensitively, so this doesn't affect API calls or repo links
  • If GitLab/Gitea support is added later, worth double-checking Gitea's case-sensitivity behavior before relying on this same lowercasing

Comment on lines +24 to +27
.orderBy(
sql`lower(${repositories.owner})`,
sql`lower(${repositories.repo})`,
)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just let me know if this is how you want it to be sorted.

@stplasim
stplasim requested a review from alexlanz July 24, 2026 04:51
@stplasim
stplasim merged commit eebfc0c into main Jul 27, 2026
1 check passed
@stplasim
stplasim deleted the feat/release-list-improvments branch July 27, 2026 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants