fix github MR replication crash

master
Laura Liberda 2021-02-27 01:04:33 +01:00
parent cf3fdb17dc
commit 14636629c8
2 changed files with 1 additions and 1 deletions

0
bin/run Normal file → Executable file
View File

View File

@ -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}`,
};