Class GitPullRequestFilter
Git pull request filter for trigger.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.CodePipeline
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class GitPullRequestFilter : Object, IGitPullRequestFilter
Syntax (vb)
Public Class GitPullRequestFilter
Inherits Object
Implements IGitPullRequestFilter
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodePipeline;
var gitPullRequestFilter = new GitPullRequestFilter {
BranchesExcludes = new [] { "branchesExcludes" },
BranchesIncludes = new [] { "branchesIncludes" },
Events = new [] { GitPullRequestEvent.OPEN },
FilePathsExcludes = new [] { "filePathsExcludes" },
FilePathsIncludes = new [] { "filePathsIncludes" }
};
Synopsis
Constructors
Git |
Properties
Branches |
The list of patterns of Git branches that, when pull request events occurs, are to be excluded from starting the pipeline. |
Branches |
The list of patterns of Git branches that, when pull request events occurs, are to be included as criteria that starts the pipeline. |
Events | The field that specifies which pull request events to filter on (opened, updated, closed) for the trigger configuration. |
File |
The list of patterns of Git repository file paths that, when pull request events occurs, are to be excluded from starting the pipeline. |
File |
The list of patterns of Git repository file paths that, when pull request events occurs, are to be included as criteria that starts the pipeline. |
Constructors
GitPullRequestFilter()
public GitPullRequestFilter()
Properties
BranchesExcludes
The list of patterns of Git branches that, when pull request events occurs, are to be excluded from starting the pipeline.
public string[] BranchesExcludes { get; set; }
Property Value
System.
Remarks
You can filter with glob patterns. The branchesExcludes
takes priority
over the branchesIncludes
.
Maximum length of this array is 8.
Default: - no branches.
BranchesIncludes
The list of patterns of Git branches that, when pull request events occurs, are to be included as criteria that starts the pipeline.
public string[] BranchesIncludes { get; set; }
Property Value
System.
Remarks
You can filter with glob patterns. The branchesExcludes
takes priority
over the branchesIncludes
.
Maximum length of this array is 8.
Default: - no branches.
Events
The field that specifies which pull request events to filter on (opened, updated, closed) for the trigger configuration.
public GitPullRequestEvent[] Events { get; set; }
Property Value
Remarks
Default: - all events.
FilePathsExcludes
The list of patterns of Git repository file paths that, when pull request events occurs, are to be excluded from starting the pipeline.
public string[] FilePathsExcludes { get; set; }
Property Value
System.
Remarks
You can filter with glob patterns. The filePathsExcludes
takes priority
over the filePathsIncludes
.
Maximum length of this array is 8.
Default: - no filePaths.
FilePathsIncludes
The list of patterns of Git repository file paths that, when pull request events occurs, are to be included as criteria that starts the pipeline.
public string[] FilePathsIncludes { get; set; }
Property Value
System.
Remarks
You can filter with glob patterns. The filePathsExcludes
takes priority
over the filePathsIncludes
.
Maximum length of this array is 8.
Default: - no filePaths.