Open Issues Need Help
View All on GitHubAI Summary: The user is encountering a `ValueError: Invalid diff chunk format` when trying to generate a commit message after making many changes. The error occurs because the diff output contains unusual characters in the file paths, which the `gitted` library's `prepare_diff` function cannot parse correctly. This suggests an issue with how the diff is being generated or handled by the tool.
Custom Git commands and Bash scripts to streamline key operations—with a little help from ChatGPT
Custom Git commands and Bash scripts to streamline key operations—with a little help from ChatGPT
AI Summary: Modify the Git commit message generation scripts within the `gitted` project to exclude changes to large files (like `package-lock.json`) from the prompt sent to the OpenAI API. This prevents excessively long prompts that might exceed API limitations or negatively impact the quality of the generated commit message.
Custom Git commands and Bash scripts to streamline key operations—with a little help from ChatGPT
Custom Git commands and Bash scripts to streamline key operations—with a little help from ChatGPT
Custom Git commands and Bash scripts to streamline key operations—with a little help from ChatGPT
Custom Git commands and Bash scripts to streamline key operations—with a little help from ChatGPT
Custom Git commands and Bash scripts to streamline key operations—with a little help from ChatGPT
AI Summary: Implement a new function, `fail_it`, in the `commons.sh` script of the `gitted` project. This function should take a string as input, print it as a warning message, and then exit with a status code of 1. This will replace the current pattern of using `warn_it` followed by `exit 1`.
Custom Git commands and Bash scripts to streamline key operations—with a little help from ChatGPT
AI Summary: Enhance the `gitted` tool's `push` command to automatically create a GitHub pull request if one doesn't already exist for the branch. This involves checking for existing PRs using the GitHub CLI (`gh`), and creating a new PR if necessary. The solution should integrate seamlessly with the existing `gitted` workflow and handle potential errors gracefully.
Custom Git commands and Bash scripts to streamline key operations—with a little help from ChatGPT