Skip to content

MichaelRWolf/git-diff-describe

Repository files navigation

commit-message-generator

Demo Overview

This project is a demonstration of a commit message generator. It uses OpenAI's GPT-3 to generate a commit message based on the changes in a file. The changes are detected using the difflib library.

Work Plan

WIP

TODO

  • scrubber removes trailing whitespace so that compare is immune to variations
  • OPENAI_API_KEY is fetched before ChatGPT prompt/response
  • custom comparison function ignores 'other_changes'
  • move class from tests/ to src/
  • collect test_* into a test class

DONE

  • output ALL info in YAML (so that it can be passed directly to generate-commit-message)
  • new create_diff_string(original_text, current_text)
  • tests run from PyCharm, not just command line (after)
  • refactor to run_recognizer(diff_string)
  • add stdout to validation string
  • add a .gitignore for .idea, __pycache__, etc.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published