Skip to content

Commit eebef88

Browse files
committed
fixup! feat(ng-dev): add auto merge strategy for pull requests
1 parent 9b6f2b1 commit eebef88

File tree

2 files changed

+18
-24
lines changed

2 files changed

+18
-24
lines changed

.github/local-actions/branch-manager/main.js

Lines changed: 17 additions & 23 deletions
Large diffs are not rendered by default.

ng-dev/pr/merge/strategies/api-merge.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export class GithubApiMergeStrategy extends AutosquashMergeStrategy {
9090
// The commit message from the single normal commit is used.
9191
if (hasOnlyFixUpForOneCommit) {
9292
mergeOptions.merge_method = 'squash';
93-
const [title, message] = commits[0].message.split(COMMIT_HEADER_SEPARATOR);
93+
const [title, message = ''] = commits[0].message.split(COMMIT_HEADER_SEPARATOR);
9494

9595
mergeOptions.commit_title = title;
9696
mergeOptions.commit_message = message;

0 commit comments

Comments
 (0)