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

ru.tinkoff.plugins.buildmetrics.git.labels.GitLabelsFactory.kt Maven / Gradle / Ivy

There is a newer version: 2.0.0-RC4
Show newest version
package ru.tinkoff.plugins.buildmetrics.git.labels

import ru.tinkoff.plugins.buildmetrics.api.factories.Factory
import ru.tinkoff.plugins.buildmetrics.api.labels.Label
import ru.tinkoff.plugins.buildmetrics.utils.process.ProcessRunner
import ru.tinkoff.plugins.buildmetrics.utils.process.ProcessRunnerImpl

/**
 * Labels:
 * - git_email - user.email in git config or N/A if user.email is not available;
 * - git_branch;
 */
class GitLabelsFactory(
    private val processRunner: ProcessRunner = ProcessRunnerImpl(),
) : Factory.Labels {

    override fun create(): List> = gitLabels(processRunner = processRunner)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy