Skip to content

Conversation

@FilleTP
Copy link
Contributor

@FilleTP FilleTP commented Jul 21, 2025

Implements shorthand aliases for topic branch actions as described

Key Changes:

  • Added shorthands: delete, rebase (stub), update, rename, publish (stub), finish.
  • Detection logic for topic branches (feature, release, hotfix, support) with prefix matching from config.
  • Error handling: Clear message if not on valid topic, prompt for ambiguity.
  • Options passthrough to underlying commands.
  • Comprehensive tests for all cases (basic, parsing, options, errors, specific commands, config, exit codes).

Stubs: Rebase and publish are stubbed with "not implemented" errors, as underlying RebaseCommand/PublishCommand don't exist in the codebase yet.

Resolves #2

  • Tested shorthand commands manually in test repo
  • Formatted changed files with gofmt

@FilleTP FilleTP merged commit 8ac52c7 into main Jul 22, 2025
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.

Add shorthand aliases for common git-flow commands

2 participants