diff --git a/src/GitReleaseManager.Core/MappingProfiles/GitHubProfile.cs b/src/GitReleaseManager.Core/MappingProfiles/GitHubProfile.cs index 94611729..afa1f072 100644 --- a/src/GitReleaseManager.Core/MappingProfiles/GitHubProfile.cs +++ b/src/GitReleaseManager.Core/MappingProfiles/GitHubProfile.cs @@ -10,6 +10,7 @@ public GitHubProfile() CreateMap() .ForMember(dest => dest.PublicNumber, act => act.MapFrom(src => src.Number)) .ForMember(dest => dest.InternalNumber, act => act.MapFrom(src => src.Id)) + .ForMember(dest => dest.IsPullRequest, act => act.MapFrom(src => src.HtmlUrl.Contains("/pull/"))) .ReverseMap(); CreateMap().ReverseMap(); CreateMap().ReverseMap(); diff --git a/src/GitReleaseManager.Core/Model/Issue.cs b/src/GitReleaseManager.Core/Model/Issue.cs index 55aae49d..7914672f 100644 --- a/src/GitReleaseManager.Core/Model/Issue.cs +++ b/src/GitReleaseManager.Core/Model/Issue.cs @@ -13,5 +13,7 @@ public sealed class Issue public string HtmlUrl { get; set; } public IReadOnlyList