MCPcopy Create free account
hub / github.com/angular/dev-infra / createTestPullRequest

Function createTestPullRequest

ng-dev/pr/common/test/common.spec.ts:277–315  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

275}
276
277function createTestPullRequest(): PullRequestFromGithub {
278 return {
279 url: 'https://github.com/angular/angular',
280 isDraft: false,
281 state: 'OPEN',
282 number: 12345,
283 mergeable: 'MERGEABLE',
284 updatedAt: '',
285 headRefOid: '4321',
286 commits: {
287 totalCount: 0,
288 nodes: [
289 {
290 commit: {
291 oid: '1234',
292 login: 'fakelogin',
293 message: 'blah',
294 },
295 },
296 {
297 commit: {
298 oid: '4321',
299 login: 'fakelogin',
300 message: 'fixup',
301 },
302 },
303 ],
304 },
305 reviewRequests: {totalCount: 0},
306 reviews: {nodes: []},
307 maintainerCanModify: true,
308 viewerDidAuthor: true,
309 baseRefName: '',
310 title: 'test: pull request',
311 labels: {
312 nodes: [],
313 },
314 } as unknown as PullRequestFromGithub;
315}

Callers 1

common.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected