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

I can see from the API that i can merge a pull request, can i check for conflicts first ? #626

Closed
tphoney opened this issue Aug 2, 2015 · 2 comments

Comments

@tphoney
Copy link

tphoney commented Aug 2, 2015

I want to check a pull request to see if it is possible to merge that PR. IE if i were to look in github i would see this

"This branch has conflicts that must be resolved Use the command line"

is there a way to see if a PR has merge conflicts ?

Great API by the way.

@pengwynn
Copy link
Collaborator

pengwynn commented Aug 2, 2015

There are a couple of fields on the pull request resource that will indicate mergeability. The mergeable field is a Boolean that indicates if the branch can be merged, and mergeable_state will indicate if it's clean, dirty, or unstable.

If the repository is set up for continuous integration, you can use the Status API to check the build status for each commit.

@tphoney, I'm gonna close this one out since it's not an Octokit issue. Feel free to hit us up at support if you've got more questions. 🙇

@pengwynn pengwynn closed this as completed Aug 2, 2015
@tphoney
Copy link
Author

tphoney commented Aug 3, 2015

@pengwynn Thanks, i was using the pulls api that did not have the fields i needed. once i use the pull_request call i get the fields i need

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants