Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Learn from past commit messages #39

Open
adlternative opened this issue Mar 21, 2023 · 0 comments
Open

Learn from past commit messages #39

adlternative opened this issue Mar 21, 2023 · 0 comments

Comments

@adlternative
Copy link
Contributor

Since each community may have its own standards for commit messages, such as the Git community's guidelines found here https://git-scm.com/docs/SubmittingPatches/, it is unlikely that we can simply teach CodeGPT these standards. A smart approach may be to learn the style of the first few commits.

appleboy added a commit that referenced this issue Mar 23, 2023
- Add `openai.base_url` to available keys on `config.go`
- Add `base_url` flag to `configCmd` on `config.go`
- Bind `openai.base_url` to `base_url` flag on `config.go`
- Add `baseURL` field to `config` struct on `options.go`
- Add `WithBaseURL` function to set `config`'s `baseURL` field on `options.go`

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
adlternative pushed a commit to adlternative/CodeGPT that referenced this issue Apr 24, 2023
- Update the `util.GetTemplate` function to `processTemplate` and split it into `GetTemplateByString` and `GetTemplateByBytes`
- Change the method of getting the template in `cmd/commit.go` to `GetTemplateByString` and `GetTemplateByBytes`
- Change the `git/git.go` file&appleboy#39;s `GetTemplate` call to `GetTemplateByBytes`

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant