repo
Field in PullRequest
#672
alexanderles
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working with the
PullRequest
struct and noticed therepo
field, which I don't see in the Github API documentation (https://docs.github.com/en/rest/pulls/pulls?apiVersion=2022-11-28).When using octocrab, I'm finding that this field is always
None
in the responses that I receive for my use cases so far. I've mainly been using thePullRequest
struct to hold info I get from listing pull requests (https://docs.rs/octocrab/latest/octocrab/pulls/struct.PullRequestHandler.html#method.list) and I currently only get validRepository
values from therepo
fields that are nested underbase
andhead
ofPullRequest
.Is there something else the top level
repo
is used for? In what cases could I expect a value for this field?Beta Was this translation helpful? Give feedback.
All reactions