pullRequest.js 464 B

123456789101112131415161718
  1. import {Repository} from './repository';
  2. export function PullRequest(params = {}) {
  3. return {
  4. id: '3',
  5. author: {
  6. username: 'jill@example.org',
  7. lastLogin: '2018-11-01T20:09:19.483Z',
  8. isSuperuser: false,
  9. },
  10. dateCreated: '2018-11-05T15:53:24Z',
  11. message: 'Closes ISSUE-1',
  12. repository: Repository(),
  13. title: 'Fix first issue',
  14. externalUrl: 'https://example.github.com/example/repo-name/pulls/3',
  15. ...params,
  16. };
  17. }