jetbrains.buildServer.configs.kotlin.v2018_1.buildFeatures / PullRequests

PullRequests

open class PullRequests : BuildFeature

A build feature that introduces GitHub pull requests integration

See Also

pullRequests

Types

GitHubRoleFilter

enum class GitHubRoleFilter

Pull request contributor role filter options

Provider

sealed class Provider : CompoundParam<Provider>

Constructors

<init>

PullRequests(init: PullRequests.() -> Unit)PullRequests()

A build feature that introduces GitHub pull requests integration

Properties

provider

var provider: Provider?

vcsRootExtId

var vcsRootExtId: String?

Id of the VCS root to extract pull request information from. Set to an empty string to extract pull request information from the first VCS root attached to a build configuration.

Inherited Properties

enabled

var enabled: Boolean

Specifies whether the feature is enabled, true by default

id

var id: String?

Build feature id, if not specified will be generated

type

var type: String

Build feature type

Functions

bitbucketServer

fun bitbucketServer(init: BitbucketServer.() -> Unit = {}): BitbucketServer

Bitbucket Server

github

fun github(init: Github.() -> Unit = {}): Github

GitHub or GitHub Enterprise

gitlab

fun gitlab(init: Gitlab.() -> Unit = {}): Gitlab

GitLab.com or GitLab CE/EE

validate

open fun validate(consumer: ErrorConsumer): Unit

Validates this object and reports found errors to the provided consumer

Inherited Functions

create

open fun create(): BuildFeature

Creates an instance of this build feature via reflection using a no argument constructor, used during copying. Throws an error if this class doesn't have a default constructor. Subclasses can override it to create an instance without using a default constructor.

toString

open fun toString(): String