commitAuthor.tsx 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import {User} from 'sentry/types';
  2. export function CommitAuthor(params: Partial<User> = {}): User {
  3. return {
  4. username: 'example@sentry.io',
  5. lastLogin: '2018-11-30T21:18:09.812Z',
  6. isSuperuser: true,
  7. isManaged: false,
  8. lastActive: '2018-11-30T21:25:15.222Z',
  9. id: '224288',
  10. isActive: true,
  11. has2fa: false,
  12. name: 'Foo Bar',
  13. isAuthenticated: true,
  14. isStaff: false,
  15. ip_address: '',
  16. avatarUrl: 'https://example.com/avatar.png',
  17. dateJoined: '2018-02-26T23:57:43.766Z',
  18. emails: [
  19. {
  20. is_verified: true,
  21. id: '231605',
  22. email: 'example@sentry.io',
  23. },
  24. ],
  25. avatar: {
  26. avatarUuid: null,
  27. avatarType: 'letter_avatar',
  28. },
  29. hasPasswordAuth: true,
  30. email: 'example@sentry.io',
  31. authenticators: [],
  32. options: {
  33. timezone: 'UTC',
  34. stacktraceOrder: 1,
  35. language: 'en',
  36. clock24Hours: false,
  37. defaultIssueEvent: 'recommended',
  38. avatarType: 'gravatar',
  39. theme: 'light',
  40. },
  41. permissions: new Set(),
  42. canReset2fa: false,
  43. experiments: [],
  44. flags: {newsletter_consent_prompt: false},
  45. identities: [],
  46. ...params,
  47. };
  48. }