UNPKG

backport

Version:

A CLI tool that automates the process of backporting commits

11 lines 633 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getSourceBranchFromCommits = void 0; function getSourceBranchFromCommits(commits) { // sourceBranch should be the same for all commits, so picking `sourceBranch` from the first commit should be fine 🤞 // this is specifically needed when backporting a PR like `backport --pr 123` and the source PR was merged to a non-default (aka non-master) branch. const { sourceBranch } = commits[0]; return sourceBranch; } exports.getSourceBranchFromCommits = getSourceBranchFromCommits; //# sourceMappingURL=getSourceBranchFromCommits.js.map