PowerShellForGitHub
PowerShellForGitHub copied to clipboard
New/Set-GitHubRepository: Add Support for `Allow Auto Merge` and `Use Squash PR Title As Default`
Feature Idea Summary
GitHub have added two new options to Repositories that could be added to the New-GitHubRepository and Set-GitHubRepository Cmdlets; 'Allow Auto Merge' and 'Use Squash PR Title as Default'.
Feature Idea Additional Details
References:
API Reference
- https://docs.github.com/en/rest/repos/repos#create-an-organization-repository
- https://docs.github.com/en/rest/repos/repos#update-a-repository
Parameters
-
allow_auto_merge -
use_squash_pr_title_as_default
Requested Assignment
- If possible, I would like to implement this.
Sounds good. Thanks for bringing this up and coding the fix!
Re-opening as the change was reverted for two reasons:
-
AllowAutoMergewas not working onSet-GitHubRepository(appears to be a bug on the GitHub side, but I was simply unable to validate that the feature worked) -
use_squash_pr_title_as_defaulthas been deprecated and is also not being respected in my tests. It appears that we need to migrate over tosquash_merge_commit_titleinstead, which has different usage.