Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbbce035

Browse files
committed
Support reading tagger as User.
1 parent7e752ac commitbbce035

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

‎LATEST_VERSION_NOTES.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Unreleased
66
- Add ``Organization#all_events``.
77
- Deprecate ``Organization#events`` in favor of ``Organization#public_events``.
88
- Fix test failtures on windows caused by unclosed file handles.
9+
- Add ``Tag.tagger_as_User`` which attempts to return the tagger as as User.
910

1011
1.0.0a4: 2016-02-19
1112
~~~~~~~~~~~~~~~~~~~

‎github3/git.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,14 @@ def _update_attributes(self, tag):
195195
def_repr(self):
196196
return'<Tag [{0}]>'.format(self.tag)
197197

198+
deftagger_as_User(self):
199+
"""Attempt to return the tagger attribute as a
200+
:class:`User <github3.users.User>`. No guarantees are made about the
201+
validity of this object, i.e., having a login or created_at object.
202+
203+
"""
204+
returnUser(self.tagger,self)
205+
198206

199207
classTree(GitData):
200208

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp