From edf0ba1cd6adcb588bcd3ee0570f95618fced6e2 Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Wed, 28 Apr 2021 07:26:46 +0200 Subject: [PATCH] Backport commits, not trees --- src/backport.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backport.ts b/src/backport.ts index 370a3a6..647fe01 100644 --- a/src/backport.ts +++ b/src/backport.ts @@ -250,7 +250,7 @@ const backport = async ({ ); // The commit range (interesting for rebase merges) - const commits = commitsResponse.data.map(({ commit }) => commit.tree.sha); + const commits = commitsResponse.data.map(({ sha }) => sha); // The merge commit itself (only interesting if it's a merge) const commitToBackport = String(mergeCommitSha);