All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.serpro69.semverkt.release.repo.Commit.kt Maven / Gradle / Ivy

There is a newer version: 0.13.0
Show newest version
package io.github.serpro69.semverkt.release.repo

import org.eclipse.jgit.lib.ObjectId
import org.eclipse.jgit.lib.Ref
import java.time.LocalDateTime

/**
 * Represents a commit in a repository.
 *
 * @property objectId   a commit object id
 * @property message    a commit message
 * @property dateTime   the date and time of the commit
 * @property tag        a git tag associated with the commit
 */
data class Commit(
    val objectId: ObjectId,
    val message: Message,
    val dateTime: LocalDateTime,
    val tag: Ref?,
)

/**
 * Represents a commit message.
 *
 * @property title          a title of the commit (first line followed by an empty line)
 * @property description    the optional longer description of the commit (commitMessage minus the title)
 */
data class Message(
    val title: String,
    val description: List,
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy