Visitar URL original
Totally forgot to add the file · github3py/github3py@4c7e88e · GitHub
Skip to content

Commit 4c7e88e

Browse files
committed
Totally forgot to add the file
1 parent f5e7a29 commit 4c7e88e

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

‎github3/search/issue.py‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# -*- coding: utf-8 -*-
2+
from github3.models import GitHubCore
3+
from github3.issues import Issue
4+
5+
6+
class IssueSearchResult(GitHubCore):
7+
def __init__(self, data, session=None):
8+
result = data.copy()
9+
#: Score of the result
10+
self.score = result.pop('score')
11+
#: Text matches
12+
self.text_matches = result.pop('text_matches', [])
13+
#: Repository object
14+
self.repository = Issue(result, self)
15+
16+
def __repr__(self):
17+
return '<IssueSearchResult [{0}]>'.format(self.repository)

0 commit comments

Comments
 (0)