Skip to content

Commit

Permalink
fix: specify squash merge defaults in repo setup (#532)
Browse files Browse the repository at this point in the history
## 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.
  • Loading branch information
JoshuaKGoldberg authored Jun 14, 2023
1 parent 3094b4a commit d76f59d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/setup/steps/hydrateRepositorySettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@ export async function hydrateRepositorySettings(
has_wiki: false,
owner,
repo: repository,
squash_merge_commit_message: "PR_BODY",
squash_merge_commit_title: "PR_TITLE",
});
}

0 comments on commit d76f59d

Please sign in to comment.