From 14636629c873301f4b4e32dd1606d48f380809b8 Mon Sep 17 00:00:00 2001 From: Laura Liberda Date: Sat, 27 Feb 2021 01:04:33 +0100 Subject: [PATCH] fix github MR replication crash --- bin/run | 0 src/vendor/github/repomgr.ts | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 bin/run diff --git a/bin/run b/bin/run old mode 100644 new mode 100755 diff --git a/src/vendor/github/repomgr.ts b/src/vendor/github/repomgr.ts index 2f8a8d5..7a5a605 100644 --- a/src/vendor/github/repomgr.ts +++ b/src/vendor/github/repomgr.ts @@ -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}`, };