

def add_hook(self, user, repo, name, config, events=None, active=True):
    'Create a webhook.\n\n        :param str user: GitHub user name\n        :param str repo: GitHub repo name\n        :return dict: Hook info from GitHub: see see\n            http://developer.github.com/v3/repos/hooks/#json-http\n        '
    try:
        hook = self.repo(user, hook).create_hook(name, config, events, active)
    except github3.GitHubError:
        return None
    else:
        return hook

dataset/ETHPy150Open CenterForOpenScience/osf.io/website/addons/github/api.py GitHubClient.add_hook/VarMisuse@40/131 `repo`->`hook`