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

samsmithnz / RepoAutomation / 16924605265

13 Aug 2025 12:56AM UTC coverage: 78.314% (-2.9%) from 81.262%
16924605265

Pull #435

github

web-flow
Merge f2d48b6c6 into f004a42ff
Pull Request #435: Add Repository Rules support - GitHub's modern branch protection alternative

402 of 594 branches covered (67.68%)

Branch coverage included in aggregate %.

18 of 63 new or added lines in 2 files covered. (28.57%)

24 existing lines in 1 file now uncovered.

945 of 1126 relevant lines covered (83.93%)

7.23 hits per line

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

0.0
/src/RepoAutomation.Core/Models/RepoRules.cs
1
namespace RepoAutomation.Core.Models;
2

3
public class RepositoryRuleset : BaseModel
4
{
NEW
5
    public int id { get; set; }
×
NEW
6
    public string? name { get; set; }
×
NEW
7
    public string? target { get; set; }
×
NEW
8
    public string? source_type { get; set; }
×
NEW
9
    public string? source { get; set; }
×
NEW
10
    public string? enforcement { get; set; }
×
NEW
11
    public Conditions? conditions { get; set; }
×
NEW
12
    public Rule[]? rules { get; set; }
×
13
}
14

15
public class Conditions
16
{
NEW
17
    public RefName? ref_name { get; set; }
×
18
}
19

20
public class RefName
21
{
NEW
22
    public string[]? include { get; set; }
×
NEW
23
    public string[]? exclude { get; set; }
×
24
}
25

26
public class Rule
27
{
NEW
28
    public string? type { get; set; }
×
NEW
29
    public RuleParameters? parameters { get; set; }
×
30
}
31

32
public class RuleParameters
33
{
34
    // Branch protection parameters
NEW
35
    public bool? required_linear_history { get; set; }
×
NEW
36
    public bool? allow_force_pushes { get; set; }
×
NEW
37
    public bool? allow_deletions { get; set; }
×
NEW
38
    public bool? required_conversation_resolution { get; set; }
×
39
    
40
    // Pull request parameters
NEW
41
    public bool? dismiss_stale_reviews_on_push { get; set; }
×
NEW
42
    public bool? require_code_owner_review { get; set; }
×
NEW
43
    public int? required_approving_review_count { get; set; }
×
44
    
45
    // Status check parameters
NEW
46
    public bool? strict_required_status_checks_policy { get; set; }
×
NEW
47
    public RepositoryRuleStatusCheck[]? required_status_checks { get; set; }
×
48
}
49

50
public class RepositoryRuleStatusCheck
51
{
NEW
52
    public string? context { get; set; }
×
NEW
53
    public int? integration_id { get; set; }
×
54
}
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

© 2026 Coveralls, Inc