Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support repository settings to configure the allowed PR merge methods #1475

Closed
ryangribble opened this issue Sep 28, 2016 · 0 comments
Closed
Assignees
Labels
Status: Up for grabs Issues that are ready to be worked on by anyone

Comments

@ryangribble
Copy link
Contributor

ryangribble commented Sep 28, 2016

As per the recent announcement the repository settings to enable/disable the 3 Pull Request merge options (Merge, Squash, Rebase) are now configurable via the API 🙌

There are 3 new properties to accomplish this, which will need to be added to our Repository response class and also the Create and Edit requests will be updated with new request parameters

API Docs
- Create (this turned out to be a documentation error, and the Create method does not support these new fields at this time)

{
  "name": "Hello-World",
  "allow_rebase_merge": false,
  "allow_squash_merge": true,
  "allow_merge_commit": false
}
{
  "id": 2278524,
  "name": "hubot",
  "full_name": "github/hubot",

  "allow_rebase_merge": true,
  "allow_squash_merge": true,
  "allow_merge_commit": true,

}
{
  "name": "Hello-World",
  "allow_rebase_merge": false,
  "allow_squash_merge": true,
  "allow_merge_commit": false
}
@ryangribble ryangribble self-assigned this Sep 28, 2016
@nickfloyd nickfloyd added Status: Up for grabs Issues that are ready to be worked on by anyone and removed up-for-grabs labels Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Up for grabs Issues that are ready to be worked on by anyone
Projects
None yet
Development

No branches or pull requests

2 participants