Skip to content

enable copilot to generate commit message based on related changes #66

@dryezl

Description

@dryezl

The function is enabled in vscode. However, I did not know how to implement it in vim.
I use vim-fugitive in vim to control git.

Activity

changed the title [-]enable copilot to generate commit message[/-] [+]enable copilot to generate commit message based on related changes[/+] on Apr 16, 2025
dryezl

dryezl commented on Apr 16, 2025

@dryezl
Author

I found that g:copilot_workspace_folders can allow for context to improve suggestion.
perhaps a vim function to send commit prompt ("create a commit message based on related change") and those related change to copilot.

Programmer-RD-AI

Programmer-RD-AI commented on Jun 27, 2025

@Programmer-RD-AI

Love the idea of Copilot auto-drafting messages from the staged diff. Could we take it one step further and feed Copilot a short sample of recent commit summaries (e.g. git log -n 20 --format=%s) so it picks up our conventional-commit prefixes and tone?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @dryezl@Programmer-RD-AI

        Issue actions

          enable copilot to generate commit message based on related changes · Issue #66 · github/copilot.vim