{"action":"created","comment":{"url":"https://api.github.com/repos/casbin/casbin-server/pulls/comments/217415705","pull_request_review_id":155122463,"id":217415705,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNzQxNTcwNQ==","diff_hunk":"@@ -126,6 +124,18 @@ message FilteredPolicyRequest {\n   repeated string fieldValues = 4;\n }\n \n+message UserRoleRequest {\n+  int32 enforcerHandler = 1;\n+  string sub = 2;","path":"proto/casbin.proto","position":null,"original_position":17,"commit_id":"3503d026bc2551677ea2cd6c22bcad452f9a19bd","original_commit_id":"3c6f87e12d03f647c9b3bd332f24f8dc1f486458","user":{"login":"BetaCat0","id":11432752,"node_id":"MDQ6VXNlcjExNDMyNzUy","avatar_url":"https://avatars0.githubusercontent.com/u/11432752?v=4","gravatar_id":"","url":"https://api.github.com/users/BetaCat0","html_url":"https://github.com/BetaCat0","followers_url":"https://api.github.com/users/BetaCat0/followers","following_url":"https://api.github.com/users/BetaCat0/following{/other_user}","gists_url":"https://api.github.com/users/BetaCat0/gists{/gist_id}","starred_url":"https://api.github.com/users/BetaCat0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BetaCat0/subscriptions","organizations_url":"https://api.github.com/users/BetaCat0/orgs","repos_url":"https://api.github.com/users/BetaCat0/repos","events_url":"https://api.github.com/users/BetaCat0/events{/privacy}","received_events_url":"https://api.github.com/users/BetaCat0/received_events","type":"User","site_admin":false},"body":"fixed","created_at":"2018-09-13T14:54:00Z","updated_at":"2018-09-13T14:54:00Z","html_url":"https://github.com/casbin/casbin-server/pull/9#discussion_r217415705","pull_request_url":"https://api.github.com/repos/casbin/casbin-server/pulls/9","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/casbin/casbin-server/pulls/comments/217415705"},"html":{"href":"https://github.com/casbin/casbin-server/pull/9#discussion_r217415705"},"pull_request":{"href":"https://api.github.com/repos/casbin/casbin-server/pulls/9"}},"in_reply_to_id":217385996},"pull_request":{"url":"https://api.github.com/repos/casbin/casbin-server/pulls/9","id":215227942,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE1MjI3OTQy","html_url":"https://github.com/casbin/casbin-server/pull/9","diff_url":"https://github.com/casbin/casbin-server/pull/9.diff","patch_url":"https://github.com/casbin/casbin-server/pull/9.patch","issue_url":"https://api.github.com/repos/casbin/casbin-server/issues/9","number":9,"state":"open","locked":false,"title":"rbac api & tests","user":{"login":"BetaCat0","id":11432752,"node_id":"MDQ6VXNlcjExNDMyNzUy","avatar_url":"https://avatars0.githubusercontent.com/u/11432752?v=4","gravatar_id":"","url":"https://api.github.com/users/BetaCat0","html_url":"https://github.com/BetaCat0","followers_url":"https://api.github.com/users/BetaCat0/followers","following_url":"https://api.github.com/users/BetaCat0/following{/other_user}","gists_url":"https://api.github.com/users/BetaCat0/gists{/gist_id}","starred_url":"https://api.github.com/users/BetaCat0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BetaCat0/subscriptions","organizations_url":"https://api.github.com/users/BetaCat0/orgs","repos_url":"https://api.github.com/users/BetaCat0/repos","events_url":"https://api.github.com/users/BetaCat0/events{/privacy}","received_events_url":"https://api.github.com/users/BetaCat0/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-13T09:59:44Z","updated_at":"2018-09-13T14:54:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5d6367be4a1f45528d9b0b4718ea4f101dd3c110","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/casbin/casbin-server/pulls/9/commits","review_comments_url":"https://api.github.com/repos/casbin/casbin-server/pulls/9/comments","review_comment_url":"https://api.github.com/repos/casbin/casbin-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/casbin/casbin-server/issues/9/comments","statuses_url":"https://api.github.com/repos/casbin/casbin-server/statuses/3503d026bc2551677ea2cd6c22bcad452f9a19bd","head":{"label":"BetaCat0:feature-rbac","ref":"feature-rbac","sha":"3503d026bc2551677ea2cd6c22bcad452f9a19bd","user":{"login":"BetaCat0","id":11432752,"node_id":"MDQ6VXNlcjExNDMyNzUy","avatar_url":"https://avatars0.githubusercontent.com/u/11432752?v=4","gravatar_id":"","url":"https://api.github.com/users/BetaCat0","html_url":"https://github.com/BetaCat0","followers_url":"https://api.github.com/users/BetaCat0/followers","following_url":"https://api.github.com/users/BetaCat0/following{/other_user}","gists_url":"https://api.github.com/users/BetaCat0/gists{/gist_id}","starred_url":"https://api.github.com/users/BetaCat0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BetaCat0/subscriptions","organizations_url":"https://api.github.com/users/BetaCat0/orgs","repos_url":"https://api.github.com/users/BetaCat0/repos","events_url":"https://api.github.com/users/BetaCat0/events{/privacy}","received_events_url":"https://api.github.com/users/BetaCat0/received_events","type":"User","site_admin":false},"repo":{"id":147444643,"node_id":"MDEwOlJlcG9zaXRvcnkxNDc0NDQ2NDM=","name":"casbin-server","full_name":"BetaCat0/casbin-server","owner":{"login":"BetaCat0","id":11432752,"node_id":"MDQ6VXNlcjExNDMyNzUy","avatar_url":"https://avatars0.githubusercontent.com/u/11432752?v=4","gravatar_id":"","url":"https://api.github.com/users/BetaCat0","html_url":"https://github.com/BetaCat0","followers_url":"https://api.github.com/users/BetaCat0/followers","following_url":"https://api.github.com/users/BetaCat0/following{/other_user}","gists_url":"https://api.github.com/users/BetaCat0/gists{/gist_id}","starred_url":"https://api.github.com/users/BetaCat0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BetaCat0/subscriptions","organizations_url":"https://api.github.com/users/BetaCat0/orgs","repos_url":"https://api.github.com/users/BetaCat0/repos","events_url":"https://api.github.com/users/BetaCat0/events{/privacy}","received_events_url":"https://api.github.com/users/BetaCat0/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BetaCat0/casbin-server","description":"Casbin as a Service (CaaS)","fork":true,"url":"https://api.github.com/repos/BetaCat0/casbin-server","forks_url":"https://api.github.com/repos/BetaCat0/casbin-server/forks","keys_url":"https://api.github.com/repos/BetaCat0/casbin-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BetaCat0/casbin-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BetaCat0/casbin-server/teams","hooks_url":"https://api.github.com/repos/BetaCat0/casbin-server/hooks","issue_events_url":"https://api.github.com/repos/BetaCat0/casbin-server/issues/events{/number}","events_url":"https://api.github.com/repos/BetaCat0/casbin-server/events","assignees_url":"https://api.github.com/repos/BetaCat0/casbin-server/assignees{/user}","branches_url":"https://api.github.com/repos/BetaCat0/casbin-server/branches{/branch}","tags_url":"https://api.github.com/repos/BetaCat0/casbin-server/tags","blobs_url":"https://api.github.com/repos/BetaCat0/casbin-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BetaCat0/casbin-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BetaCat0/casbin-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/BetaCat0/casbin-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BetaCat0/casbin-server/statuses/{sha}","languages_url":"https://api.github.com/repos/BetaCat0/casbin-server/languages","stargazers_url":"https://api.github.com/repos/BetaCat0/casbin-server/stargazers","contributors_url":"https://api.github.com/repos/BetaCat0/casbin-server/contributors","subscribers_url":"https://api.github.com/repos/BetaCat0/casbin-server/subscribers","subscription_url":"https://api.github.com/repos/BetaCat0/casbin-server/subscription","commits_url":"https://api.github.com/repos/BetaCat0/casbin-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/BetaCat0/casbin-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/BetaCat0/casbin-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/BetaCat0/casbin-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/BetaCat0/casbin-server/contents/{+path}","compare_url":"https://api.github.com/repos/BetaCat0/casbin-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BetaCat0/casbin-server/merges","archive_url":"https://api.github.com/repos/BetaCat0/casbin-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BetaCat0/casbin-server/downloads","issues_url":"https://api.github.com/repos/BetaCat0/casbin-server/issues{/number}","pulls_url":"https://api.github.com/repos/BetaCat0/casbin-server/pulls{/number}","milestones_url":"https://api.github.com/repos/BetaCat0/casbin-server/milestones{/number}","notifications_url":"https://api.github.com/repos/BetaCat0/casbin-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BetaCat0/casbin-server/labels{/name}","releases_url":"https://api.github.com/repos/BetaCat0/casbin-server/releases{/id}","deployments_url":"https://api.github.com/repos/BetaCat0/casbin-server/deployments","created_at":"2018-09-05T01:55:24Z","updated_at":"2018-09-05T01:55:26Z","pushed_at":"2018-09-13T14:53:18Z","git_url":"git://github.com/BetaCat0/casbin-server.git","ssh_url":"git@github.com:BetaCat0/casbin-server.git","clone_url":"https://github.com/BetaCat0/casbin-server.git","svn_url":"https://github.com/BetaCat0/casbin-server","homepage":"https://casbin.org/","size":35,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"casbin:master","ref":"master","sha":"a26fca736fc76e722db3ac1468fe2a3e6b19977c","user":{"login":"casbin","id":27810343,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI3ODEwMzQz","avatar_url":"https://avatars0.githubusercontent.com/u/27810343?v=4","gravatar_id":"","url":"https://api.github.com/users/casbin","html_url":"https://github.com/casbin","followers_url":"https://api.github.com/users/casbin/followers","following_url":"https://api.github.com/users/casbin/following{/other_user}","gists_url":"https://api.github.com/users/casbin/gists{/gist_id}","starred_url":"https://api.github.com/users/casbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/casbin/subscriptions","organizations_url":"https://api.github.com/users/casbin/orgs","repos_url":"https://api.github.com/users/casbin/repos","events_url":"https://api.github.com/users/casbin/events{/privacy}","received_events_url":"https://api.github.com/users/casbin/received_events","type":"Organization","site_admin":false},"repo":{"id":143885914,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM4ODU5MTQ=","name":"casbin-server","full_name":"casbin/casbin-server","owner":{"login":"casbin","id":27810343,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI3ODEwMzQz","avatar_url":"https://avatars0.githubusercontent.com/u/27810343?v=4","gravatar_id":"","url":"https://api.github.com/users/casbin","html_url":"https://github.com/casbin","followers_url":"https://api.github.com/users/casbin/followers","following_url":"https://api.github.com/users/casbin/following{/other_user}","gists_url":"https://api.github.com/users/casbin/gists{/gist_id}","starred_url":"https://api.github.com/users/casbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/casbin/subscriptions","organizations_url":"https://api.github.com/users/casbin/orgs","repos_url":"https://api.github.com/users/casbin/repos","events_url":"https://api.github.com/users/casbin/events{/privacy}","received_events_url":"https://api.github.com/users/casbin/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/casbin/casbin-server","description":"Casbin as a Service (CaaS)","fork":false,"url":"https://api.github.com/repos/casbin/casbin-server","forks_url":"https://api.github.com/repos/casbin/casbin-server/forks","keys_url":"https://api.github.com/repos/casbin/casbin-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/casbin/casbin-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/casbin/casbin-server/teams","hooks_url":"https://api.github.com/repos/casbin/casbin-server/hooks","issue_events_url":"https://api.github.com/repos/casbin/casbin-server/issues/events{/number}","events_url":"https://api.github.com/repos/casbin/casbin-server/events","assignees_url":"https://api.github.com/repos/casbin/casbin-server/assignees{/user}","branches_url":"https://api.github.com/repos/casbin/casbin-server/branches{/branch}","tags_url":"https://api.github.com/repos/casbin/casbin-server/tags","blobs_url":"https://api.github.com/repos/casbin/casbin-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/casbin/casbin-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/casbin/casbin-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/casbin/casbin-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/casbin/casbin-server/statuses/{sha}","languages_url":"https://api.github.com/repos/casbin/casbin-server/languages","stargazers_url":"https://api.github.com/repos/casbin/casbin-server/stargazers","contributors_url":"https://api.github.com/repos/casbin/casbin-server/contributors","subscribers_url":"https://api.github.com/repos/casbin/casbin-server/subscribers","subscription_url":"https://api.github.com/repos/casbin/casbin-server/subscription","commits_url":"https://api.github.com/repos/casbin/casbin-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/casbin/casbin-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/casbin/casbin-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/casbin/casbin-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/casbin/casbin-server/contents/{+path}","compare_url":"https://api.github.com/repos/casbin/casbin-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/casbin/casbin-server/merges","archive_url":"https://api.github.com/repos/casbin/casbin-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/casbin/casbin-server/downloads","issues_url":"https://api.github.com/repos/casbin/casbin-server/issues{/number}","pulls_url":"https://api.github.com/repos/casbin/casbin-server/pulls{/number}","milestones_url":"https://api.github.com/repos/casbin/casbin-server/milestones{/number}","notifications_url":"https://api.github.com/repos/casbin/casbin-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/casbin/casbin-server/labels{/name}","releases_url":"https://api.github.com/repos/casbin/casbin-server/releases{/id}","deployments_url":"https://api.github.com/repos/casbin/casbin-server/deployments","created_at":"2018-08-07T14:34:42Z","updated_at":"2018-09-13T03:16:34Z","pushed_at":"2018-09-13T14:53:19Z","git_url":"git://github.com/casbin/casbin-server.git","ssh_url":"git@github.com:casbin/casbin-server.git","clone_url":"https://github.com/casbin/casbin-server.git","svn_url":"https://github.com/casbin/casbin-server","homepage":"https://casbin.org/","size":28,"stargazers_count":2,"watchers_count":2,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":3,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/casbin/casbin-server/pulls/9"},"html":{"href":"https://github.com/casbin/casbin-server/pull/9"},"issue":{"href":"https://api.github.com/repos/casbin/casbin-server/issues/9"},"comments":{"href":"https://api.github.com/repos/casbin/casbin-server/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/casbin/casbin-server/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/casbin/casbin-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/casbin/casbin-server/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/casbin/casbin-server/statuses/3503d026bc2551677ea2cd6c22bcad452f9a19bd"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"BetaCat0"}}