• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

samsmithnz / RepoAutomation / 8601094164

08 Apr 2024 01:38PM UTC coverage: 80.478%. Remained the same
8601094164

push

github

web-flow
Merge pull request #300 from samsmithnz/PackageUpdatesApr8

Package updates

339 of 496 branches covered (68.35%)

Branch coverage included in aggregate %.

807 of 928 relevant lines covered (86.96%)

7.76 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

96.15
/src/RepoAutomation.Core/Models/PullRequest.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Reflection.Metadata;
5
using System.Text;
6
using System.Threading.Tasks;
7

8
namespace RepoAutomation.Core.Models
9
{
10
    //Friendly processing class
11
    public class PullRequest
12
    {
13
        public PullRequest()
12✔
14
        {
12✔
15
            Labels = new();
12✔
16
        }
12✔
17
        public string? Number { get; set; }
22✔
18
        public string? Title { get; set; }
13✔
19
        public List<string> Labels { get; set; }
34✔
20
        public bool? IsDependabotPR { get; set; }
21✔
21
        public bool? Approved { get; set; }
×
22
        public string? State { get; set; }
17✔
23
        public bool AutoMergeEnabled { get; set; }
1✔
24
        public DateTime? LastUpdated { get; set; }
12✔
25
        public string? LoginUser { get; set; }
18✔
26
    }
27

28
    //GitHub API class
29
    public class PR
30
    {
31
        public string? number { get; set; }
24✔
32
        public string? title { get; set; }
24✔
33
        public string? state { get; set; }
24✔
34
        public string? url { get; set; }
12✔
35
        public List<Label>? labels { get; set; }
48✔
36
        //public string? auto_merge { get; set; }
37
        public string? updated_at { get; set; }
36✔
38
        public PRUser? user { get; set; }
36✔
39
    }
40

41
    public class Label
42
    {
43
        public string? name { get; set; }
88✔
44
    }
45

46
    public class PRReview
47
    {
48
        public string? id { get; set; }
155✔
49
        public string? state { get; set; }
160✔
50
        public string? submitted_at { get; set; }
155✔
51
        public string? commit_id { get; set; }
155✔
52
    }
53
    
54
    public class PRUser
55
    {
56
        public string? login { get; set; }
24✔
57
    }
58
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc