Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing the default commit string #4038

Open
Eloquencere opened this issue Nov 5, 2024 · 0 comments
Open

Changing the default commit string #4038

Eloquencere opened this issue Nov 5, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Eloquencere
Copy link

Describe the solution you'd like
I don't prefer having the default commit message as 'main'; having a default commit string in the config.yaml would be an amazing addition. Maybe even piping it into another command that can generate the commit string based on the cwd or something can be considered.

Describe alternatives you've considered
None

Additional context
None

customCommands:
  - key: '<c-c>'
    description: 'commit as non-default author'
    command: 'git commit -m "{{index .PromptResponses 0}}" --author="{{index .PromptResponses 1}} <{{index .PromptResponses 2}}>"'
    context: 'files'
    prompts:
      - type: 'input'
        title: 'Commit Message'
        initialValue: ''
      - type: 'input'
        title: 'Author Name'
        initialValue: ''
      - type: 'input'
        title: 'Email Address'
        initialValue: ''
    loadingText: 'commiting'
@Eloquencere Eloquencere added the enhancement New feature or request label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant