Skip to content

Normalize org_url_slug to lowercase#1041

Open
mmatheson wants to merge 1 commit intomainfrom
claude/slack-implement-trunk-D47lh
Open

Normalize org_url_slug to lowercase#1041
mmatheson wants to merge 1 commit intomainfrom
claude/slack-implement-trunk-D47lh

Conversation

@mmatheson
Copy link
Member

Summary

This change ensures that the org_url_slug argument is consistently normalized to lowercase, both when parsed from command-line arguments and when constructed programmatically.

Key Changes

  • Added a new parse_org_url_slug value parser function that converts the input string to lowercase
  • Applied the parser to the org_url_slug argument definition to automatically normalize CLI input
  • Updated the UploadArgs::new() constructor to also normalize the org_url_slug parameter to lowercase for consistency

Implementation Details

The normalization is now applied at two entry points:

  1. CLI argument parsing: The value_parser attribute ensures any org_url_slug provided via command line is lowercased
  2. Programmatic construction: The UploadArgs::new() method normalizes the parameter to handle cases where UploadArgs is constructed directly in code

This prevents inconsistencies and potential issues with organization URL slug comparisons or lookups that may be case-sensitive.

https://claude.ai/code/session_01Gn6ectQLY8ec7UwMP1xk6V

Automatically converts the org_url_slug parameter to lowercase during
argument parsing to ensure consistent organization slug handling regardless
of how the user provides the value.

Implements TRUNK-17528

Slack thread: https://trunk-io.slack.com/archives/C09E85RBK0B/p1770759586804229?thread_ts=1770753745.539689&cid=C09E85RBK0B

https://claude.ai/code/session_01Gn6ectQLY8ec7UwMP1xk6V
@trunk-io
Copy link

trunk-io bot commented Feb 10, 2026

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

@trunk-staging-io
Copy link

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments