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

Add support for draft PRs #8

Open
mattprecious opened this issue Aug 25, 2023 · 0 comments
Open

Add support for draft PRs #8

mattprecious opened this issue Aug 25, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@mattprecious
Copy link
Owner

This is just a parameter that can be passed into createPullRequest(), but draft PRs are not supported on all GitHub repositories. From https://docs.github.com/en/rest/pulls/pulls?apiVersion=2022-11-28#create-a-pull-request:

Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud.

There's an API to check if the repository is public, but nothing I can find to check if the repository owner is GitHub Team or GitHub Enterprise Cloud.

@mattprecious mattprecious added the enhancement New feature or request label Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant