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

Commit8531bf8

Browse files
committed
Add signature and some doc-string
1 parent75f4575 commit8531bf8

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

‎github3/github.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -985,6 +985,28 @@ def repository(self, owner, repository):
985985
json=self._json(self._get(url),200)
986986
returnRepository(json,self)ifjsonelseNone
987987

988+
defsearch_code(self,query,sort=None,order=None,per_page=None,
989+
text_match=False,number=-1,etag=None):
990+
"""Find code via the code search API.
991+
992+
The query can contain any combination of the following supported
993+
qualifiers:
994+
995+
- in Qualifies which fields are searched. With this qualifier you can
996+
restrict the search to just the file contents, the file path, or
997+
both.
998+
- language Searches code based on the language it’s written in.
999+
- fork Specifies that code from forked repositories should be
1000+
searched. Repository forks will not be searchable unless the fork
1001+
has more stars than the parent repository.
1002+
- size Finds files that match a certain size (in bytes).
1003+
- path Specifies the path that the resulting file must be at.
1004+
- extension Matches files with a certain extension.
1005+
- user or repo Limits searches to a specific user or repository.
1006+
1007+
1008+
"""
1009+
9881010
defsearch_repositories(self,query,sort=None,order=None,
9891011
per_page=None,text_match=False,number=-1,
9901012
etag=None):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp