incidentActivity.ts 364 B

1234567891011121314151617
  1. import {ActivityTypeDraft} from 'sentry/views/alerts/types';
  2. import {User} from './user';
  3. export function IncidentActivity(
  4. params: Partial<ActivityTypeDraft> = {}
  5. ): ActivityTypeDraft {
  6. return {
  7. comment: 'incident activity comment',
  8. type: 3,
  9. dateCreated: '',
  10. user: User(),
  11. id: '123',
  12. incidentIdentifier: '999',
  13. ...params,
  14. };
  15. }