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

electron / fiddle / 12981007886

27 Jan 2025 02:36AM UTC coverage: 87.604%. Remained the same
12981007886

Pull #1673

github

web-flow
Merge b1c268b60 into 8dc6ee922
Pull Request #1673: build(deps): bump coverallsapp/github-action from 2.3.4 to 2.3.6

982 of 1218 branches covered (80.62%)

Branch coverage included in aggregate %.

3767 of 4203 relevant lines covered (89.63%)

34.5 hits per line

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

12.5
/src/renderer/utils/octokit.ts
1
import { Octokit } from '@octokit/rest';
5✔
2

3
import { AppState } from '../../renderer/state';
4

5
let _octo: Octokit;
6

7
/**
8
 * Returns a loaded Octokit. If state is passed and authentication
9
 * is available, we'll token-authenticate.
10
 */
11
export async function getOctokit(appState?: AppState): Promise<Octokit> {
5✔
12
  // It's possible to load Gists without being authenticated,
13
  // but we get better rate limits when authenticated.
14
  _octo =
×
15
    _octo || appState?.gitHubToken
×
16
      ? new Octokit({
×
17
          auth: appState?.gitHubToken,
×
18
        })
19
      : new Octokit();
20

21
  return _octo;
×
22
}
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