autofixCodebaseChangeData.ts 562 B

1234567891011121314151617
  1. import { AutofixDiffFilePatch } from 'sentry-fixture/autofixDiffFilePatch';
  2. import type { AutofixCodebaseChange } from 'sentry/components/events/autofix/types';
  3. export function AutofixCodebaseChangeData(
  4. params: Partial<AutofixCodebaseChange> = {}
  5. ): AutofixCodebaseChange {
  6. return {
  7. description: '',
  8. diff: [AutofixDiffFilePatch()],
  9. repo_external_id: "100",
  10. repo_name: 'owner/hello-world',
  11. title: 'Add error handling',
  12. pull_request: { pr_number: 200, pr_url: 'https://github.com/owner/hello-world/pull/200' },
  13. ...params,
  14. };
  15. }