fix github MR replication crash
This commit is contained in:
parent
cf3fdb17dc
commit
14636629c8
2
src/vendor/github/repomgr.ts
vendored
2
src/vendor/github/repomgr.ts
vendored
|
@ -186,7 +186,7 @@ export default class GitHubRepoManager implements RepoManager {
|
||||||
// for some fucking reason GitHub declared that the array of commits could contain null values
|
// for some fucking reason GitHub declared that the array of commits could contain null values
|
||||||
commits: (pullRequest.commits.nodes.filter((n) => !!n) as GHPullRequestCommit[])
|
commits: (pullRequest.commits.nodes.filter((n) => !!n) as GHPullRequestCommit[])
|
||||||
.map((n) => n.commit)
|
.map((n) => n.commit)
|
||||||
.map(this._parseCommit),
|
.map((c) => this._parseCommit(c)),
|
||||||
isDraft: pullRequest.isDraft,
|
isDraft: pullRequest.isDraft,
|
||||||
url: `${this.repo.url}/pull/${pullRequest.number}`,
|
url: `${this.repo.url}/pull/${pullRequest.number}`,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue