Second entity: Github pull request
This commit is contained in:
19
packages/pipeline/test/fixtures/github/api_v3_pulls.ts
vendored
Normal file
19
packages/pipeline/test/fixtures/github/api_v3_pulls.ts
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import { GithubPullRequest } from '../../../src/entities';
|
||||
|
||||
// To re-create the JSON file from the API (e.g. if the API output schema changes), run the below command:
|
||||
// curl https://api.github.com/repos/0xProject/0x-monorepo/pulls?per_page=1&page=1
|
||||
// docs here: https://developer.github.com/v3/pulls/#list-pull-requests
|
||||
|
||||
const ParsedGithubPulls: GithubPullRequest = {
|
||||
observedTimestamp: Date.now(),
|
||||
repoName: '0x-monorepo',
|
||||
pullRequestNumber: 1684,
|
||||
state: 'open',
|
||||
title: '[WIP] Pull Github data',
|
||||
userLogin: 'askeluv',
|
||||
createdAt: 1552019788000,
|
||||
updatedAt: 1552019788000,
|
||||
closedAt: null,
|
||||
mergedAt: null,
|
||||
};
|
||||
export { ParsedGithubPulls };
|
Reference in New Issue
Block a user