{"action":"created","issue":{"url":"https://api.github.com/repos/jakubgarfield/Bonobo-Git-Server/issues/495","repository_url":"https://api.github.com/repos/jakubgarfield/Bonobo-Git-Server","labels_url":"https://api.github.com/repos/jakubgarfield/Bonobo-Git-Server/issues/495/labels{/name}","comments_url":"https://api.github.com/repos/jakubgarfield/Bonobo-Git-Server/issues/495/comments","events_url":"https://api.github.com/repos/jakubgarfield/Bonobo-Git-Server/issues/495/events","html_url":"https://github.com/jakubgarfield/Bonobo-Git-Server/issues/495","id":138174854,"number":495,"title":"Do we have any option to read user group name or user roles in git hooks?","user":{"login":"sgosulazc","id":11851859,"avatar_url":"https://avatars.githubusercontent.com/u/11851859?v=3","gravatar_id":"","url":"https://api.github.com/users/sgosulazc","html_url":"https://github.com/sgosulazc","followers_url":"https://api.github.com/users/sgosulazc/followers","following_url":"https://api.github.com/users/sgosulazc/following{/other_user}","gists_url":"https://api.github.com/users/sgosulazc/gists{/gist_id}","starred_url":"https://api.github.com/users/sgosulazc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgosulazc/subscriptions","organizations_url":"https://api.github.com/users/sgosulazc/orgs","repos_url":"https://api.github.com/users/sgosulazc/repos","events_url":"https://api.github.com/users/sgosulazc/events{/privacy}","received_events_url":"https://api.github.com/users/sgosulazc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jakubgarfield/Bonobo-Git-Server/labels/is:feature-request","name":"is:feature-request","color":"6666ff"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/jakubgarfield/Bonobo-Git-Server/milestones/1","html_url":"https://github.com/jakubgarfield/Bonobo-Git-Server/milestones/6.0.0","labels_url":"https://api.github.com/repos/jakubgarfield/Bonobo-Git-Server/milestones/1/labels","id":1620451,"number":1,"title":"6.0.0","description":null,"creator":{"login":"willdean","id":1306085,"avatar_url":"https://avatars.githubusercontent.com/u/1306085?v=3","gravatar_id":"","url":"https://api.github.com/users/willdean","html_url":"https://github.com/willdean","followers_url":"https://api.github.com/users/willdean/followers","following_url":"https://api.github.com/users/willdean/following{/other_user}","gists_url":"https://api.github.com/users/willdean/gists{/gist_id}","starred_url":"https://api.github.com/users/willdean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willdean/subscriptions","organizations_url":"https://api.github.com/users/willdean/orgs","repos_url":"https://api.github.com/users/willdean/repos","events_url":"https://api.github.com/users/willdean/events{/privacy}","received_events_url":"https://api.github.com/users/willdean/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":0,"state":"open","created_at":"2016-03-03T15:34:43Z","updated_at":"2016-03-03T17:41:11Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2016-03-03T13:15:47Z","updated_at":"2016-03-03T17:42:52Z","closed_at":null,"body":"We would like to restrict users to delete remote branch based on user role/ users belong  to a group.\r\n\r\nCan we read that information from git server side hooks?"},"comment":{"url":"https://api.github.com/repos/jakubgarfield/Bonobo-Git-Server/issues/comments/191880432","html_url":"https://github.com/jakubgarfield/Bonobo-Git-Server/issues/495#issuecomment-191880432","issue_url":"https://api.github.com/repos/jakubgarfield/Bonobo-Git-Server/issues/495","id":191880432,"user":{"login":"RedX2501","id":929932,"avatar_url":"https://avatars.githubusercontent.com/u/929932?v=3","gravatar_id":"","url":"https://api.github.com/users/RedX2501","html_url":"https://github.com/RedX2501","followers_url":"https://api.github.com/users/RedX2501/followers","following_url":"https://api.github.com/users/RedX2501/following{/other_user}","gists_url":"https://api.github.com/users/RedX2501/gists{/gist_id}","starred_url":"https://api.github.com/users/RedX2501/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RedX2501/subscriptions","organizations_url":"https://api.github.com/users/RedX2501/orgs","repos_url":"https://api.github.com/users/RedX2501/repos","events_url":"https://api.github.com/users/RedX2501/events{/privacy}","received_events_url":"https://api.github.com/users/RedX2501/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T17:42:52Z","updated_at":"2016-03-03T17:42:52Z","body":"I propose that we add an export to the roles and groups of the user making the commit through an environment variable. \r\n\r\nIs this a viable solution for you? "}}