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

API v3: What causes a check run/suite pull request field to be empty?

Solved! Go to Solution.

I'm getting check run and check suite events without any pull requests associated with them. What does this mean and what causes it? I would have thought check runs and check suites are tightly coupled to pull requests.

 

Any insight is greatly appreciated.

2 Replies
Solution
Community Manager
Message 2 of 3

Re: API v3: What causes a check run/suite pull request field to be empty?

As stated in the documentation, check runs and suites are associated with a commit:

 

A check suite is a collection of the check runs created by a single GitHub App for a specific commit.

 

While one of the places where they are easiest to see in the GitHub UI is on a pull request, they're tightly coupled to commits and not branches or PRs.

 

I hope that helps!

 

Ground Controller Lvl 1
Message 3 of 3

Re: API v3: What causes a check run/suite pull request field to be empty?

It would be very helpful if there was a documented way to retrieve this information. In my use case I want to verify the commit messages and parse them to do some verification. The Pull Request contains a commits_url which I can use to get the commits compared to base. While I see a commit sha, I can't find anything that tells me against which base this was submitted.