'Ignore notifications from this repository for the user.
.. versionadded:: 1.0
This replaces ``Repository#set_subscription``.
:returns: :class:`Subscription <github3.notifications.Subscription>`'

@requires_auth
def ignore(self):

    url = self._build_url(u'subscription', base_url=self._api)
    json = self._json(self._put(url, data=dumps({u'ignored': True})), 200)
    return self._instance_or_null(Subscription, json)
