Skip to content

Commit

Permalink
Backport commits, not trees
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Apr 28, 2021
1 parent 04cbdd4 commit edf0ba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit edf0ba1

Please sign in to comment.