Learn R Programming

gitGPT (version 0.1.3)

suggest_commit_message: Suggest a commit message based on the provided git diff

Description

Suggests a commit message by utilizing the 'OpenAI' 'GPT-3.5 Turbo' model. It takes a git diff as input and returns a meaningful commit message.

Usage

suggest_commit_message(diff)

Value

A character vector of length 1 with the suggested commit message based on the provided git diff.

Arguments

diff

An optional character vector containing the git diff. If not provided, the function will automatically generate the git diff output for the current working directory.

Examples

Run this code
if (FALSE) {
  suggest_commit_message()
}

Run the code above in your browser using DataLab