summaryrefslogtreecommitdiff
path: root/src/marlin.core/models/VersionControlSource.cs
blob: 1d50ef37b646dd0652f3e6414e513657105364f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
namespace marlin.core.models;

public class VersionControlSource
{
    public Guid Id { get; set; }
    
    public string UpstreamUrl { get; set; }
    public string MainBranch { get; set; }
    public string BranchFilter { get; set; }
    public int MinPollingInterval { get; set; }
    
    public ICollection<VersionControlledBranch> Branches { get; set; }
}

public class VersionControlledBranch
{
    public Guid Id { get; set; }
    
    public Guid SourceId { get; set; }
    public VersionControlSource Source { get; set; }
    
    public string Name { get; set; }
    public string HeadCommit { get; set; }
}