-
Notifications
You must be signed in to change notification settings - Fork 4
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 #20 from lgrabarevic/feature/group-by-pullrequest
Feature/group by pullrequest
- Loading branch information
Showing
36 changed files
with
708 additions
and
53 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using System; | ||
using BuildsAppReborn.Contracts.Models; | ||
using Newtonsoft.Json; | ||
|
||
namespace BuildsAppReborn.Access.Models | ||
{ | ||
internal abstract class TfsPullRequest : IPullRequest | ||
{ | ||
#region Implementation of IPullRequest | ||
|
||
[JsonProperty("createdBy")] | ||
public virtual IUser CreatedBy { get; protected set; } | ||
|
||
[JsonProperty("description")] | ||
public String Description { get; private set; } | ||
|
||
[JsonProperty("pullRequestId")] | ||
public Int32 Id { get; private set; } | ||
|
||
[JsonProperty("mergeStatus")] | ||
public String MergeStatus { get; private set; } | ||
|
||
[JsonProperty("sourceRefName")] | ||
public String Source { get; private set; } | ||
|
||
[JsonProperty("status")] | ||
public String Status { get; private set; } | ||
|
||
[JsonProperty("targetRefName")] | ||
public String Target { get; private set; } | ||
|
||
[JsonProperty("title")] | ||
public String Title { get; private set; } | ||
|
||
#endregion | ||
} | ||
} |
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
17 changes: 17 additions & 0 deletions
17
BuildsAppReborn.Access/TFS2017/Models/Tfs2017PullRequest.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,17 @@ | ||
using BuildsAppReborn.Contracts.Models; | ||
using BuildsAppReborn.Infrastructure; | ||
using Newtonsoft.Json; | ||
|
||
namespace BuildsAppReborn.Access.Models | ||
{ | ||
// ReSharper disable once UnusedMember.Global | ||
internal class Tfs2017PullRequest : TfsPullRequest | ||
{ | ||
#region Overrides of Base | ||
|
||
[JsonConverter(typeof(InterfaceTypeConverter<Tfs2017User, IUser>))] | ||
public override IUser CreatedBy { get; protected set; } | ||
|
||
#endregion | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using BuildsAppReborn.Contracts.Models; | ||
using BuildsAppReborn.Infrastructure; | ||
using Newtonsoft.Json; | ||
|
||
namespace BuildsAppReborn.Access.Models | ||
{ | ||
// ReSharper disable once UnusedMember.Global | ||
internal class VstsPullRequest : TfsPullRequest | ||
{ | ||
#region Overrides of Base | ||
|
||
[JsonConverter(typeof(InterfaceTypeConverter<VstsUser, IUser>))] | ||
public override IUser CreatedBy { get; protected set; } | ||
|
||
#endregion | ||
} | ||
} |
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
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
Oops, something went wrong.