We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a64c2b3 commit c6e53b6Copy full SHA for c6e53b6
lib/modules/platform/gerrit/scm.ts
@@ -154,13 +154,14 @@ export class GerritScm extends DefaultGitScm {
154
// avoid creating a new change if the base branch has changed.
155
// updatePr() will take care of moving the existing change to a different base
156
// branch if needed.
157
- const changeBranch = existingChange?.branch ?? commit.baseBranch!;
+ const changeBranch = existingChange.branch ?? commit.baseBranch!;
158
const pushResult = await git.pushCommit({
159
sourceRef: commit.branchName,
160
targetRef: `refs/for/${changeBranch}`,
161
files: commit.files,
162
pushOptions,
163
});
164
+ /* v8 ignore else -- should never happen */
165
if (pushResult) {
166
return commitSha;
167
}
0 commit comments