Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added documentation to repo set.

  • Loading branch information...
commit 13f4263e509b09511c24b8558e7de8b29c1833ad 1 parent 52c9900
@dustin authored
Showing with 12 additions and 1 deletion.
  1. +12 −1 src/github.py
View
13 src/github.py
@@ -343,10 +343,21 @@ def show(self, user, repo):
return self._parsed('/'.join(['repos', 'show', user, repo]))
def set(self, user, repo, **args):
+ """Set repository parameters.
+
+ Repository parameters include the following:
+
+ - description
+ - homepage
+ - has_wiki
+ - has_issues
+ - has_downloads"""
+
prepared_args = {}
for k,v in args.items():
prepared_args['values[' + k + ']'] = v
- return self._post('/'.join(['repos', 'show', user, repo]), **prepared_args)
+ return self._post('/'.join(['repos', 'show', user, repo]),
+ **prepared_args)
def watch(self, user, repo):
"""Watch a repository."""
Please sign in to comment.
Something went wrong with that request. Please try again.