mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
43 lines
1016 B
TypeScript
43 lines
1016 B
TypeScript
import {IntegrationProvider} from 'sentry/types';
|
|
|
|
export function GitHubIntegrationProviderFixture(
|
|
params: Partial<IntegrationProvider> = {}
|
|
): IntegrationProvider {
|
|
return {
|
|
key: 'github',
|
|
slug: 'github',
|
|
name: 'GitHub',
|
|
canAdd: true,
|
|
features: [],
|
|
setupDialog: {
|
|
url: '/github-integration-setup-uri/',
|
|
width: 100,
|
|
height: 100,
|
|
},
|
|
canDisable: true,
|
|
metadata: {
|
|
description: '*markdown* formatted _description_',
|
|
features: [
|
|
{
|
|
description: '*markdown* feature description',
|
|
featureGate: 'integrations-commits',
|
|
featureId: 3,
|
|
},
|
|
],
|
|
author: 'Morty',
|
|
noun: 'Installation',
|
|
issue_url: 'http://example.com/integration_issue_url',
|
|
source_url: 'http://example.com/integration_source_url',
|
|
aspects: {
|
|
alerts: [
|
|
{
|
|
type: 'warning',
|
|
text: 'This is a an alert example',
|
|
},
|
|
],
|
|
},
|
|
},
|
|
...params,
|
|
};
|
|
}
|