Check the cohesion of two branches using github api without creating PR

The question from my comment is here: How to check for merged branches using github api

Is it possible to check the merging of two branches using the github API without creating a PR? I do not want to start anything by creating a PR, even if I immediately delete the PR after.

+4
source share
1 answer

You can try and use the GitHub API compare commits (which can be used for branches) as I shown here .

This will give you the status:

  "status": "behind",
  "ahead_by": 1,
  "behind_by": 2,

: ( ).
, ... , .

+2

Source: https://habr.com/ru/post/1689876/


All Articles