MCPcopy
hub / github.com/getsentry/sentry / GitHubIntegrationFixture

Function GitHubIntegrationFixture

tests/js/fixtures/githubIntegration.ts:3–34  ·  view source on GitHub ↗
(
  params: Partial<GroupIntegration> = {}
)

Source from the content-addressed store, hash-verified

1import type {GroupIntegration} from 'sentry/types/integrations';
2
3export function GitHubIntegrationFixture(
4 params: Partial<GroupIntegration> = {}
5): GroupIntegration {
6 return {
7 domainName: 'github.com/test-integration',
8 icon: 'http://example.com/integration_icon.png',
9 id: '1',
10 name: 'Test Integration',
11 provider: {
12 name: 'GitHub',
13 key: 'github',
14 canAdd: true,
15 features: [],
16 aspects: {
17 alerts: [
18 {
19 variant: 'warning',
20 text: 'This is a an alert example',
21 },
22 ],
23 },
24 canDisable: false,
25 slug: '',
26 },
27 externalIssues: [],
28 accountType: '',
29 gracePeriodEnd: '',
30 organizationIntegrationStatus: 'active',
31 status: 'active',
32 ...params,
33 };
34}

Calls

no outgoing calls

Tested by

no test coverage detected