Skip to content

Commit d76f59d

Browse files
fix: specify squash merge defaults in repo setup (#532)
## PR Checklist - [x] Addresses an existing open issue: fixes #531 - [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/template-typescript-node-package/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22) - [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/template-typescript-node-package/blob/main/.github/CONTRIBUTING.md) were taken ## Overview Adds the two settings for the GitHub API per https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#update-a-repository.
1 parent 3094b4a commit d76f59d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/setup/steps/hydrateRepositorySettings.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,7 @@ export async function hydrateRepositorySettings(
2121
has_wiki: false,
2222
owner,
2323
repo: repository,
24+
squash_merge_commit_message: "PR_BODY",
25+
squash_merge_commit_title: "PR_TITLE",
2426
});
2527
}

0 commit comments

Comments
 (0)