Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Ground Controller Lvl 1
Message 1 of 2

How to get actual User in "Issues"

Hello,

 

I was looking for how to get the actual user account name who added each comment in "Issues". Typically Webhook delivery shows ONLY the creator of Issues under "Issues" - "users" and and I can get it from API.
I want my application works based on these comments.
For example,

- userid1 created Issues in the repo
- userid2 added his comment to this Issue.

- userid3 added his comment to this Issue.
I need to get userid2 & userid3 from JSON.

I guess this might be not what github supports at the moment.


Much appreciate. 

1 Reply
Moderator
Message 2 of 2

Re: How to get actual User in "Issues"

If you want to be notified when issue comments are created, you can subscribe to the `issue_comment` webhook or event. And in the payload for the issue comment event, the user who commented is under `comment.user`.

 

I hope that helps!