-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #891 from OctopusDeploy/lourens/add-git-trigger
Add Git Repository Trigger
- Loading branch information
Showing
5 changed files
with
76 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
source/Octopus.Server.Client/Model/Triggers/GitTriggers/GitFilterResource.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#nullable enable | ||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
|
||
namespace Octopus.Client.Model.Triggers.GitTriggers; | ||
|
||
public class GitFilterResource : TriggerFilterResource | ||
{ | ||
public override TriggerFilterType FilterType => TriggerFilterType.GitFilter; | ||
|
||
public List<GitTriggerSourceResource> Sources { get; set; } = []; | ||
} | ||
|
||
public class GitTriggerSourceResource | ||
{ | ||
[JsonConstructor] | ||
public GitTriggerSourceResource(string deploymentActionSlug, string gitDependencyName, string[] includeFilePaths, string[] excludeFilePaths) | ||
{ | ||
DeploymentActionSlug = deploymentActionSlug; | ||
GitDependencyName = gitDependencyName; | ||
IncludeFilePaths = includeFilePaths; | ||
ExcludeFilePaths = excludeFilePaths; | ||
} | ||
|
||
public string DeploymentActionSlug { get; set; } | ||
public string GitDependencyName { get; set; } | ||
public string[] IncludeFilePaths { get; set; } | ||
public string[] ExcludeFilePaths { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters