Exemple #1
0
 public RoachIssue(RoachRepoId repoId, Issue issue) : this(
         new RoachIssueId(repoId, issue.Number),
         issue.Assignee?.Login ?? TheBugsConstants.UnassignedName,
         new RoachMilestoneId(repoId, issue.Milestone),
         issue.Title,
         issue.State == ItemState.Open,
         issue.Labels.Select(x => x.Name).ToImmutableArray(),
         issue.UpdatedAt)
 {
 }
Exemple #2
0
 public RoachMilestone(RoachRepoId repoId, Milestone milestone)
 {
     if (milestone != null)
     {
         Id     = new RoachMilestoneId(repoId, milestone.Number);
         Title  = milestone.Title;
         IsOpen = milestone.State == ItemState.Open;
     }
     else
     {
         Id     = RoachMilestoneId.CreateNone(repoId);
         Title  = NoneTitle;
         IsOpen = true;
     }
 }
Exemple #3
0
 public RoachIssueId(RoachRepoId repoId, int number)
 {
     RepoId = repoId;
     Number = number;
 }
Exemple #4
0
 public RoachMilestone(RoachRepoId repoId, int number, string title, bool isOpen) : this(new RoachMilestoneId(repoId, number), title, isOpen)
 {
 }
Exemple #5
0
 public static RoachMilestoneId CreateNone(RoachRepoId repoId) => new RoachMilestoneId(repoId, NoneNumber);
Exemple #6
0
 public RoachMilestoneId(RoachRepoId repoId, Milestone milestone)
 {
     RepoId = repoId;
     Number = milestone?.Number ?? NoneNumber;
 }
Exemple #7
0
 public RoachMilestoneId(RoachRepoId repoId, int number)
 {
     RepoId = repoId;
     Number = number;
 }