autofixRootCauseCodeContext.ts 515 B

1234567891011121314151617
  1. import type { AutofixRootCauseCodeContext } from 'sentry/components/events/autofix/types';
  2. export function AutofixRootCauseCodeContext(
  3. params: Partial<AutofixRootCauseCodeContext> = {}
  4. ): AutofixRootCauseCodeContext {
  5. return {
  6. id: '200',
  7. title: 'This is the title of a relevant code snippet.',
  8. description: 'This is the description of a relevant code snippet.',
  9. snippet: {
  10. file_path: 'src/file.py',
  11. snippet: 'x = 1 + 1;',
  12. repo_name: 'owner/repo'
  13. },
  14. ...params,
  15. };
  16. }