User pr first contribution status #24511
-
Is it possible to check through the api ( for example the pr endpoint) if the pr is the first contribution of this user on the repository? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Hi @acrobat, Thank you for being here! I suppose you could query the “First-time contributor” labels, using: https://developer.github.com/v3/issues/labels/ to start. |
Beta Was this translation helpful? Give feedback.
-
I’m indeed talking about the label in the PR header But the label api doesn’t return this label for this pullrequest |
Beta Was this translation helpful? Give feedback.
-
@AndreaGriffiths11 any update on how to get this info through the api? |
Beta Was this translation helpful? Give feedback.
-
👋 @acrobat - The GraphQL API has a Let’s use this issue as an example, where you’re currently listed as a Replacing the "Delete reactions" endpoint
See https://developer.github.com/changes/2020-02-26-new-delete-reactions-endpoints/
feature-request
You can use our GitHub GraphQL API Explorer to run the following query:
The API will respond with the appropriate information:
Hope this helps! ✌️ |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot @francisfuzz! This does indeed solve my question! |
Beta Was this translation helpful? Give feedback.
👋 @acrobat - The GraphQL API has a
CommentAuthorAssociation
enum available. Enums represent possible sets of values for a field.Let’s use this issue as an example, where you’re currently listed as a
github.com/KnpLabs/php-github-apiCollaborator
:Replacing the "Delete reactions" endpoint