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

samsmithnz / RepoAutomation / 3896634226

pending completion
3896634226

push

github

GitHub
Merge pull request #213 from samsmithnz/AddingMissingProperty

334 of 476 branches covered (70.17%)

Branch coverage included in aggregate %.

10 of 10 new or added lines in 2 files covered. (100.0%)

801 of 903 relevant lines covered (88.7%)

6.29 hits per line

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

96.3
/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; }
17✔
18
        public string? Title { get; set; }
13✔
19
        public List<string> Labels { get; set; }
34✔
20
        public bool? IsDependabotPR { get; set; }
10✔
21
        public bool? Approved { get; set; }
×
22
        public string? State { get; set; }
12✔
23
        public bool AutoMergeEnabled { get; set; }
13✔
24
        public DateTime? LastUpdated { get; set; }
12✔
25
        public string? LoginUser { get; set; }
19✔
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; }
24✔
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; }
10✔
49
        public string? state { get; set; }
10✔
50
        public string? submitted_at { get; set; }
15✔
51
        public string? commit_id { get; set; }
10✔
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