-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(collaborators): listen to member changes (#382)
* fix(ConfigManager): add missing log property * feat(collaborators): listen to member changes Add listeners for repository collaborator events: - member - team Synchronizes settings when users or teams are added, removed, and when permissions for a member is changed. * fix(mergedeep): hasChanges for empty source and non-empty target Fix for empty collaborators config not removing excess members. Using config `collaborators: []` this fix makes sure that manually added collaborators are removed.
- Loading branch information
1 parent
e2ffb51
commit b6d0029
Showing
10 changed files
with
698 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
{ | ||
"action": "edited", | ||
"member": { | ||
"login": "bkeepers", | ||
"id": 173, | ||
"avatar_url": "https://avatars.githubusercontent.com/u/173?v=3", | ||
"gravatar_id": "", | ||
"url": "https://api.github.com/users/bkeepers", | ||
"html_url": "https://github.com/bkeepers", | ||
"followers_url": "https://api.github.com/users/bkeepers/followers", | ||
"following_url": "https://api.github.com/users/bkeepers/following{/other_user}", | ||
"gists_url": "https://api.github.com/users/bkeepers/gists{/gist_id}", | ||
"starred_url": "https://api.github.com/users/bkeepers/starred{/owner}{/repo}", | ||
"subscriptions_url": "https://api.github.com/users/bkeepers/subscriptions", | ||
"organizations_url": "https://api.github.com/users/bkeepers/orgs", | ||
"repos_url": "https://api.github.com/users/bkeepers/repos", | ||
"events_url": "https://api.github.com/users/bkeepers/events{/privacy}", | ||
"received_events_url": "https://api.github.com/users/bkeepers/received_events", | ||
"type": "User", | ||
"site_admin": true | ||
}, | ||
"changes": { "permission": { "from": "triage", "to": "read" } }, | ||
"repository": { | ||
"id": 68308403, | ||
"name": "botland", | ||
"full_name": "bkeepers-inc/botland", | ||
"owner": { | ||
"name": "bkeepers-inc", | ||
"email": null | ||
}, | ||
"private": true, | ||
"html_url": "https://github.com/bkeepers-inc/botland", | ||
"description": "Playground for testing bots.", | ||
"fork": false, | ||
"url": "https://github.com/bkeepers-inc/botland", | ||
"forks_url": "https://api.github.com/repos/bkeepers-inc/botland/forks", | ||
"keys_url": "https://api.github.com/repos/bkeepers-inc/botland/keys{/key_id}", | ||
"collaborators_url": "https://api.github.com/repos/bkeepers-inc/botland/collaborators{/collaborator}", | ||
"teams_url": "https://api.github.com/repos/bkeepers-inc/botland/teams", | ||
"hooks_url": "https://api.github.com/repos/bkeepers-inc/botland/hooks", | ||
"issue_events_url": "https://api.github.com/repos/bkeepers-inc/botland/issues/events{/number}", | ||
"events_url": "https://api.github.com/repos/bkeepers-inc/botland/events", | ||
"assignees_url": "https://api.github.com/repos/bkeepers-inc/botland/assignees{/user}", | ||
"branches_url": "https://api.github.com/repos/bkeepers-inc/botland/branches{/branch}", | ||
"tags_url": "https://api.github.com/repos/bkeepers-inc/botland/tags", | ||
"blobs_url": "https://api.github.com/repos/bkeepers-inc/botland/git/blobs{/sha}", | ||
"git_tags_url": "https://api.github.com/repos/bkeepers-inc/botland/git/tags{/sha}", | ||
"git_refs_url": "https://api.github.com/repos/bkeepers-inc/botland/git/refs{/sha}", | ||
"trees_url": "https://api.github.com/repos/bkeepers-inc/botland/git/trees{/sha}", | ||
"statuses_url": "https://api.github.com/repos/bkeepers-inc/botland/statuses/{sha}", | ||
"languages_url": "https://api.github.com/repos/bkeepers-inc/botland/languages", | ||
"stargazers_url": "https://api.github.com/repos/bkeepers-inc/botland/stargazers", | ||
"contributors_url": "https://api.github.com/repos/bkeepers-inc/botland/contributors", | ||
"subscribers_url": "https://api.github.com/repos/bkeepers-inc/botland/subscribers", | ||
"subscription_url": "https://api.github.com/repos/bkeepers-inc/botland/subscription", | ||
"commits_url": "https://api.github.com/repos/bkeepers-inc/botland/commits{/sha}", | ||
"git_commits_url": "https://api.github.com/repos/bkeepers-inc/botland/git/commits{/sha}", | ||
"comments_url": "https://api.github.com/repos/bkeepers-inc/botland/comments{/number}", | ||
"issue_comment_url": "https://api.github.com/repos/bkeepers-inc/botland/issues/comments{/number}", | ||
"contents_url": "https://api.github.com/repos/bkeepers-inc/botland/contents/{+path}", | ||
"compare_url": "https://api.github.com/repos/bkeepers-inc/botland/compare/{base}...{head}", | ||
"merges_url": "https://api.github.com/repos/bkeepers-inc/botland/merges", | ||
"archive_url": "https://api.github.com/repos/bkeepers-inc/botland/{archive_format}{/ref}", | ||
"downloads_url": "https://api.github.com/repos/bkeepers-inc/botland/downloads", | ||
"issues_url": "https://api.github.com/repos/bkeepers-inc/botland/issues{/number}", | ||
"pulls_url": "https://api.github.com/repos/bkeepers-inc/botland/pulls{/number}", | ||
"milestones_url": "https://api.github.com/repos/bkeepers-inc/botland/milestones{/number}", | ||
"notifications_url": "https://api.github.com/repos/bkeepers-inc/botland/notifications{?since,all,participating}", | ||
"labels_url": "https://api.github.com/repos/bkeepers-inc/botland/labels{/name}", | ||
"releases_url": "https://api.github.com/repos/bkeepers-inc/botland/releases{/id}", | ||
"deployments_url": "https://api.github.com/repos/bkeepers-inc/botland/deployments", | ||
"created_at": 1473954711, | ||
"updated_at": "2016-12-19T19:41:29Z", | ||
"pushed_at": 1484891974, | ||
"git_url": "git://github.com/bkeepers-inc/botland.git", | ||
"ssh_url": "git@github.com:bkeepers-inc/botland.git", | ||
"clone_url": "https://github.com/bkeepers-inc/botland.git", | ||
"svn_url": "https://github.com/bkeepers-inc/botland", | ||
"homepage": "", | ||
"size": 1, | ||
"stargazers_count": 0, | ||
"watchers_count": 0, | ||
"language": "JavaScript", | ||
"has_issues": true, | ||
"has_downloads": true, | ||
"has_wiki": true, | ||
"has_pages": false, | ||
"forks_count": 0, | ||
"mirror_url": null, | ||
"open_issues_count": 6, | ||
"forks": 0, | ||
"open_issues": 6, | ||
"watchers": 0, | ||
"default_branch": "master", | ||
"stargazers": 0, | ||
"master_branch": "master", | ||
"organization": "bkeepers-inc" | ||
}, | ||
"organization": { | ||
"login": "bkeepers-inc", | ||
"id": 11724939, | ||
"url": "https://api.github.com/orgs/bkeepers-inc", | ||
"repos_url": "https://api.github.com/orgs/bkeepers-inc/repos", | ||
"events_url": "https://api.github.com/orgs/bkeepers-inc/events", | ||
"hooks_url": "https://api.github.com/orgs/bkeepers-inc/hooks", | ||
"issues_url": "https://api.github.com/orgs/bkeepers-inc/issues", | ||
"members_url": "https://api.github.com/orgs/bkeepers-inc/members{/member}", | ||
"public_members_url": "https://api.github.com/orgs/bkeepers-inc/public_members{/member}", | ||
"avatar_url": "https://avatars.githubusercontent.com/u/11724939?v=3", | ||
"description": null | ||
}, | ||
"sender": { | ||
"login": "bkeepers", | ||
"id": 173, | ||
"avatar_url": "https://avatars.githubusercontent.com/u/173?v=3", | ||
"gravatar_id": "", | ||
"url": "https://api.github.com/users/bkeepers", | ||
"html_url": "https://github.com/bkeepers", | ||
"followers_url": "https://api.github.com/users/bkeepers/followers", | ||
"following_url": "https://api.github.com/users/bkeepers/following{/other_user}", | ||
"gists_url": "https://api.github.com/users/bkeepers/gists{/gist_id}", | ||
"starred_url": "https://api.github.com/users/bkeepers/starred{/owner}{/repo}", | ||
"subscriptions_url": "https://api.github.com/users/bkeepers/subscriptions", | ||
"organizations_url": "https://api.github.com/users/bkeepers/orgs", | ||
"repos_url": "https://api.github.com/users/bkeepers/repos", | ||
"events_url": "https://api.github.com/users/bkeepers/events{/privacy}", | ||
"received_events_url": "https://api.github.com/users/bkeepers/received_events", | ||
"type": "User", | ||
"site_admin": true | ||
}, | ||
"installation": { | ||
"id": 6274 | ||
} | ||
} |
Oops, something went wrong.