pullRequest.ts 394 B

12345678910111213
  1. import {RepositoryFixture} from 'sentry-fixture/repository';
  2. import type {PullRequest} from 'sentry/types/integrations';
  3. export function PullRequestFixture(params: Partial<PullRequest> = {}): PullRequest {
  4. return {
  5. id: '3',
  6. repository: RepositoryFixture(),
  7. title: 'Fix first issue',
  8. externalUrl: 'https://example.github.com/example/repo-name/pulls/3',
  9. ...params,
  10. };
  11. }