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

badges / shields / 22659355936

03 Mar 2026 08:41PM UTC coverage: 98.105% (-0.05%) from 98.154%
22659355936

push

github

web-flow
chore(deps): bump actions/upload-artifact from 6 to 7 (#11716)

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 6 to 7.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

5896 of 6157 branches covered (95.76%)

49594 of 50552 relevant lines covered (98.1%)

136.06 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✔
49
    return {
×
50
      message: metric(reviews),
×
51
      color: 'blue',
×
52
    }
×
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✔
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