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

electron / fiddle / 6766756048

06 Nov 2023 05:35AM UTC coverage: 87.257%. Remained the same
6766756048

Pull #1498

github

web-flow
Merge 5ec9c04b7 into f60eb4eb8
Pull Request #1498: chore: Sign with HSM

952 of 1184 branches covered (0.0%)

Branch coverage included in aggregate %.

3677 of 4121 relevant lines covered (89.23%)

31.91 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
12
 * @returns {Promise<typeof Octokit>}
13
 */
14
export async function getOctokit(appState?: AppState): Promise<Octokit> {
5✔
15
  // It's possible to load Gists without being authenticated,
16
  // but we get better rate limits when authenticated.
17
  _octo =
×
18
    _octo || appState?.gitHubToken
×
19
      ? new Octokit({
×
20
          auth: appState?.gitHubToken,
×
21
        })
22
      : new Octokit();
23

24
  return _octo;
×
25
}
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