Github Copilot and Commit Messages

Copilot Can!

While I am loving Generative AI concerning code syntax, one of the more valuable aspects is the generation of commit comments when submitting the code to source control.

Because it is the code that is compiled, developers give more care and attention to that aspect. They will conduct code reviews, refactor the code, and optimize the code. All that is great! However, when it comes to looking at a code repository’s commit history, the semantics of the commit messages are typically less then helpful.

Thankfully, Microsoft enabled its GitHub Copilot extensions, for both Visual Studio and Visual Studio Code, to assist with commit messages. It looks at the file’s previous state, then compares it with the updates, and then creates a comprehensive, detailed commit message.

AI Generated Commit Message sparkle pen icon in the Git Changes window

Very cool!