Skip to content

Commit d07fb52

Browse files
committed
Pre-empt anonymous from updating a reference.
If they're at least authenticated (in some way), let them try. Otherwise, save them the request on their ratelimit.
1 parent 67d5153 commit d07fb52

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

github3/git.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ def ref(self):
158158
"""The reference path, e.g., refs/heads/sc/featureA"""
159159
return self._ref
160160

161+
@GitHubCore.requires_auth
161162
def update(self, sha, force=False):
162163
"""Update this reference.
163164

0 commit comments

Comments
 (0)