autofixResult.tsx 477 B

123456789101112131415
  1. import {AutofixDiffFilePatch} from 'sentry-fixture/autofixDiffFilePatch';
  2. import {AutofixResult} from 'sentry/components/events/autofix/types';
  3. export function AutofixResultFixture(params: Partial<AutofixResult> = {}): AutofixResult {
  4. return {
  5. title: 'Fixed the bug!',
  6. pr_number: 123,
  7. description: 'This is a description',
  8. pr_url: 'https://github.com/pulls/1234',
  9. repo_name: 'getsentry/sentry',
  10. diff: [AutofixDiffFilePatch()],
  11. ...params,
  12. };
  13. }