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

badges / shields / 21349384950

25 Jan 2026 09:10PM UTC coverage: 98.144% (+0.1%) from 98.021%
21349384950

push

github

web-flow
update [crates] dependents badge description to include timeout issue (#11635)

* update [crates] dependents badge description to include timeout issue details

part of #11633

* improve desc clarity

Co-authored-by: Pierre-Yves Bigourdan <10694593+PyvesB@users.noreply.github.com>

---------

Co-authored-by: Pierre-Yves Bigourdan <10694593+PyvesB@users.noreply.github.com>

5905 of 6162 branches covered (95.83%)

9 of 9 new or added lines in 1 file covered. (100.0%)

8 existing lines in 2 files now uncovered.

49651 of 50590 relevant lines covered (98.14%)

135.03 hits per line

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

91.55
/services/coderabbit/coderabbit-pull-request.service.js
1
import Joi from 'joi'
3✔
2
import { BaseJsonService, pathParams } from '../index.js'
3✔
3
import { metric } from '../text-formatters.js'
3✔
4

3✔
5
const schema = Joi.object({
3✔
6
  reviews: Joi.number().required(),
3✔
7
}).required()
3✔
8

3✔
9
class CodeRabbitPullRequest extends BaseJsonService {
3✔
10
  static category = 'analysis'
3✔
11
  static route = {
3✔
12
    base: 'coderabbit',
3✔
13
    pattern: 'prs/:provider(github|bitbucket|gitlab)/:org/:repo',
3✔
14
  }
3✔
15

3✔
16
  static openApi = {
3✔
17
    '/coderabbit/prs/{provider}/{org}/{repo}': {
3✔
18
      get: {
3✔
19
        summary: 'CodeRabbit Pull Request Reviews',
3✔
20
        description:
3✔
21
          'This badge pulls the number of PRs reviewed by [CodeRabbit](https://coderabbit.ai), AI code review tool',
3✔
22
        parameters: pathParams(
3✔
23
          {
3✔
24
            name: 'provider',
3✔
25
            example: 'github',
3✔
26
            description: 'Version Control Provider',
3✔
27
            schema: { type: 'string', enum: this.getEnum('provider') },
3✔
28
          },
3✔
29
          {
3✔
30
            name: 'org',
3✔
31
            example: 'coderabbitai',
3✔
32
            description: 'Organization or User name',
3✔
33
          },
3✔
34
          {
3✔
35
            name: 'repo',
3✔
36
            example: 'ast-grep-essentials',
3✔
37
            description: 'Repository name',
3✔
38
          },
3✔
39
        ),
3✔
40
      },
3✔
41
    },
3✔
42
  }
3✔
43

3✔
44
  static defaultBadgeData = {
3✔
45
    label: 'coderabbit reviews',
3✔
46
  }
3✔
47

3✔
48
  static render({ reviews }) {
3✔
UNCOV
49
    return {
×
UNCOV
50
      message: metric(reviews),
×
UNCOV
51
      color: 'blue',
×
UNCOV
52
    }
×
UNCOV
53
  }
×
54

3✔
55
  async fetch({ provider, org, repo }) {
3✔
56
    return this._requestJson({
3✔
57
      schema,
3✔
58
      url: `https://api.coderabbit.ai/stats/${provider}/${org}/${repo}`,
3✔
59
      httpErrors: {
3✔
60
        400: 'provider or repo not found',
3✔
61
      },
3✔
62
    })
3✔
63
  }
3✔
64

3✔
65
  async handle({ provider, org, repo }) {
3✔
66
    const data = await this.fetch({ provider, org, repo })
3✔
UNCOV
67
    return this.constructor.render(data)
×
68
  }
3✔
69
}
3✔
70

3✔
71
export default CodeRabbitPullRequest
3✔
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