fix github MR replication crash
parent
cf3fdb17dc
commit
14636629c8
|
@ -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
|
||||
commits: (pullRequest.commits.nodes.filter((n) => !!n) as GHPullRequestCommit[])
|
||||
.map((n) => n.commit)
|
||||
.map(this._parseCommit),
|
||||
.map((c) => this._parseCommit(c)),
|
||||
isDraft: pullRequest.isDraft,
|
||||
url: `${this.repo.url}/pull/${pullRequest.number}`,
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue