microsoft / PowerShellForGitHub

Microsoft PowerShell wrapper for GitHub API
Other
584 stars 184 forks source link

New/Set-GitHubRepository: Add Support for `Allow Auto Merge` Option #357

Closed X-Guardian closed 1 year ago

X-Guardian commented 1 year ago

Feature Idea Summary

GitHub have added a new option 'Allow Auto Merge' to Repositories that could be added to the New-GitHubRepository and Set-GitHubRepository Cmdlets.

Feature Idea Additional Details

References:
API Reference
Parameters

Requested Assignment

HowardWolosky commented 1 year ago

Sounds good. Thanks for bringing this up and coding the fix!

HowardWolosky commented 1 year ago

Re-opening as the change was reverted for two reasons:

  1. AllowAutoMerge was not working on Set-GitHubRepository (appears to be a bug on the GitHub side, but I was simply unable to validate that the feature worked)
  2. use_squash_pr_title_as_default has been deprecated and is also not being respected in my tests. It appears that we need to migrate over to squash_merge_commit_title instead, which has different usage.