Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 3
Message 1 of 5

Retrieve merge conflicts via API

Hi,

is it possible to retrieve merge conflicts via API?

 

4 Replies
Highlighted
Ground Controller Lvl 1
Message 2 of 5

Re: Retrieve merge conflicts via API

+1, I'd like to know this as well if anyone's listening...

Highlighted
Pilot Lvl 1
Message 3 of 5

Re: Retrieve merge conflicts via API

@afilatov-st  @guitargice 

 

Yes, you can find whether a pr has a merge conflict by calling the pull request API. You can check the 
`mergeable_state`  field. If it is

- `dirty` Then the pr has conflicts
- `behind` Then it is behind your base branch
- `clean` It is ready to merge and has no issues
 

 

Screen Shot 2020-03-10 at 7.46.29 PM.png

 

Highlighted
Copilot Lvl 3
Message 4 of 5

Re: Retrieve merge conflicts via API

Thank you, but the question was to get the merge conflicts, i.e. files in the conflicted states, not the status.

Highlighted
Ground Controller Lvl 1
Message 5 of 5

Re: Retrieve merge conflicts via API

By any chance did you find the solution to get the files in conflicted state. Even am looking for this.