mirror of
https://github.com/PaulHatch/semantic-version.git
synced 2025-12-27 13:08:17 +00:00
Set Jest config file in package script Include module path Include tests in project folders Remove index module exports Hardcode configuration parameters Move parameter binding into main run function Use alias imports Run test sequentially Remove cleanup (async conflict) Revert Jest option Increase test timeout to 15 seconds
27 lines
953 B
TypeScript
27 lines
953 B
TypeScript
/** Represents information about a commit */
|
|
export class CommitInfo {
|
|
/**
|
|
* Creates a new commit information instance
|
|
* @param hash - The hash of the commit
|
|
* @param subject - The subject of the commit message
|
|
* @param body - The body of the commit message
|
|
* @param author - The author's name
|
|
* @param authorEmail - The author's email
|
|
* @param authorDate - The date the commit was authored
|
|
* @param committer - The committer's name
|
|
* @param committerEmail - The committer's email
|
|
* @param committerDate - The date the commit was committed
|
|
* @param tags - List of any tags associated with this commit
|
|
*/
|
|
constructor(
|
|
public hash: string,
|
|
public subject: string,
|
|
public body: string,
|
|
public author: string,
|
|
public authorEmail: string,
|
|
public authorDate: Date,
|
|
public committer: string,
|
|
public committerEmail: string,
|
|
public committerDate: Date,
|
|
public tags: string[]) { }
|
|
}
|