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

samsmithnz / RepoAutomation / 3851196580

pending completion
3851196580

push

github

GitHub
Merge pull request #210 from samsmithnz/ConvertedPercentsToWholeNumber

314 of 450 branches covered (69.78%)

Branch coverage included in aggregate %.

767 of 866 relevant lines covered (88.57%)

7.16 hits per line

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

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

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

26
    //GitHub API class
27
    public class PR
28
    {
29
        public string? number { get; set; }
12✔
30
        public string? title { get; set; }
12✔
31
        public string? state { get; set; }
12✔
32
        public string? url { get; set; }
6✔
33
        public List<Label>? labels { get; set; }
24✔
34
        //public string? auto_merge { get; set; }
35
        public string? updated_at { get; set; }
18✔
36
    }
37

38
    public class Label
39
    {
40
        public string? name { get; set; }
44✔
41
    }
42

43
    public class PRReview
44
    {
45
        public string? id { get; set; }
5✔
46
        public string? state { get; set; }
5✔
47
        public string? submitted_at { get; set; }
5✔
48
        public string? commit_id { get; set; }
5✔
49

50

51
    }
52
}
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