BaseCheckingCommitIdCapability<T> Class

Summary

Capability to post issues only if pull request is for a specific commit.
graph BT Type-->Base0["BasePullRequestSystemCapability<T>"] Base0-->Base1["Object"] Type-.->Interface0["ISupportCheckingCommitId"] click Interface0 "/api/Cake.Issues.PullRequests/ISupportCheckingCommitId" Type-.->Interface1["IPullRequestSystemCapability"] click Interface1 "/api/Cake.Issues.PullRequests/IPullRequestSystemCapability" Type["BaseCheckingCommitIdCapability<T>"] class Type type-node

Syntax

public abstract class BaseCheckingCommitIdCapability<T> : BasePullRequestSystemCapability<T>, 
    ISupportCheckingCommitId, IPullRequestSystemCapability
    where T : class, IPullRequestSystem

Type Parameters

Name Description
T Type of the pull request system to which this capability belongs.

Constructors

Name Summary
BaseCheckingCommitIdCapability(ICakeLog, T) Capability to post issues only if pull request is for a specific commit.

Methods

Name Value Summary
GetLastSourceCommitId() string
Gets the hash of the latest commit on the source branch.

Extension Methods

Name Value Summary
Dump<BaseCheckingCommitIdCapability<T>>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<BaseCheckingCommitIdCapability<T>>(BaseCheckingCommitIdCapability<T>[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<BaseCheckingCommitIdCapability<T>>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<BaseCheckingCommitIdCapability<T>>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<BaseCheckingCommitIdCapability<T>>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<BaseCheckingCommitIdCapability<T>>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Returns the string value or a Not set> markup suitable for Spectre.Console.
Requires the Cake.Issues addin