/ opencodehub / .github / rulesets / main-branch-ruleset.json
Swadhin Biswas Feature/ai code reviewer (#79) · 8/16/2026
cfd400d
82 lines · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
  "name": "Protect main branch",
  "target": "branch",
  "enforcement": "active",
  "bypass_actors": [],
  "conditions": {
    "ref_name": {
      "include": ["refs/heads/main"],
      "exclude": []
    }
  },
  "rules": [
    {
      "type": "deletion"
    },
    {
      "type": "non_fast_forward"
    },
    {
      "type": "required_linear_history"
    },
    {
      "type": "pull_request",
      "parameters": {
        "required_approving_review_count": 1,
        "dismiss_stale_reviews_on_push": true,
        "require_code_owner_review": true,
        "require_last_push_approval": true,
        "required_review_thread_resolution": true
      }
    },
    {
      "type": "required_status_checks",
      "parameters": {
        "strict_required_status_checks_policy": true,
        "required_status_checks": [
          {
            "context": "Lint & Type Check",
            "integration_id": 15368
          },
          {
            "context": "Docs Parity",
            "integration_id": 15368
          },
          {
            "context": "Security Gates",
            "integration_id": 15368
          },
          {
            "context": "Unit & Integration Tests",
            "integration_id": 15368
          },
          {
            "context": "Contract Tests (Lane: contract)",
            "integration_id": 15368
          },
          {
            "context": "Smoke Tests (Lane: smoke)",
            "integration_id": 15368
          },
          {
            "context": "E2E Tests (Playwright)",
            "integration_id": 15368
          },
          {
            "context": "Container Security (Trivy)",
            "integration_id": 15368
          },
          {
            "context": "SAST (Semgrep)",
            "integration_id": 15368
          },
          {
            "context": "Build",
            "integration_id": 15368
          }
        ]
      }
    }
  ]
}