|
|
|
@ -3,10 +3,11 @@ import { AiDoc } from '../classes.aidoc.js';
|
|
|
|
|
import { ProjectContext } from './projectcontext.js';
|
|
|
|
|
|
|
|
|
|
export interface INextCommitObject {
|
|
|
|
|
recommendedNextVersionLevel: 'patch' | 'minor' | 'major'; // the recommended next version level of the project
|
|
|
|
|
recommendedNextVersion: string; // the recommended next version of the project
|
|
|
|
|
message: string; // the commit message. use conventional commits format
|
|
|
|
|
changelog?: string; // the changelog
|
|
|
|
|
recommendedNextVersionLevel: 'fix' | 'feat' | 'BREAKING CHANGE'; // the recommended next version level of the project
|
|
|
|
|
recommendedNextVersionScope: string; // the recommended scope name of the next version, like "core" or "cli", or specific class names.
|
|
|
|
|
recommendedNextVersionMessage: string; // the commit message. Don't put fix() feat() or BREAKING CHANGE in the message. Please just the message itself.
|
|
|
|
|
recommendedNextVersion: string; // the recommended next version of the project, x.x.x
|
|
|
|
|
changelog?: string; // the changelog for the next version
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export class Commit {
|
|
|
|
@ -45,9 +46,10 @@ Your answer should be parseable with JSON.parse() without modifying anything.
|
|
|
|
|
|
|
|
|
|
Here is the structure of the JSON you should return:
|
|
|
|
|
{
|
|
|
|
|
recommendedNextVersionLevel: 'patch' | 'minor' | 'major'; // the recommended next version level of the project
|
|
|
|
|
recommendedNextVersion: string; // the recommended next version of the project
|
|
|
|
|
message: string; // the commit message. use conventional commits format
|
|
|
|
|
recommendedNextVersionLevel: 'fix' | 'feat' | 'BREAKING CHANGE'; // the recommended next version level of the project
|
|
|
|
|
recommendedNextVersionScope: string; // the recommended scope name of the next version, like "core" or "cli", or specific class names.
|
|
|
|
|
recommendedNextVersionMessage: string; // the commit message. Don't put fix() feat() or BREAKING CHANGE in the message. Please just the message itself.
|
|
|
|
|
recommendedNextVersion: string; // the recommended next version of the project, x.x.x
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
You are being given the files of the project. You should use them to create the commit message.
|
|
|
|
@ -80,7 +82,7 @@ You are given
|
|
|
|
|
|
|
|
|
|
Only return the changelog file, so it can be written directly to changelog.md
|
|
|
|
|
|
|
|
|
|
For the latest version, that is not yet part of the commit messages, use {{nextVersion}} and {{nextDescription}} placeholders.
|
|
|
|
|
For the latest version, that is not yet part of the commit messages, use {{nextVersion}}, {{nextVersionScope}} and {{nextVersionMessage}} placeholders.
|
|
|
|
|
`,
|
|
|
|
|
userMessage: `
|
|
|
|
|
The previous changelog file is:
|
|
|
|
|