Skip to content

Commit

Permalink
Merge ae12b70 into 4cae365
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-r committed May 26, 2017
2 parents 4cae365 + ae12b70 commit 6a8e6b4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion description.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
A social coding experiment that updates its own code democratically. http://chaosthebot.com
A social coding experiment that updates its own code democratically.
3 changes: 2 additions & 1 deletion github_api/repos.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ def get_num_watchers(api, urn):


def set_desc(api, urn, desc):
""" Set description of repo """
""" Set description and homepage of repo """
path = "/repos/{urn}".format(urn=urn)
data = {
"name": settings.GITHUB_REPO,
"description": desc,
"homepage": settings.HOMEPAGE,
}
api("patch", path, json=data)
2 changes: 2 additions & 0 deletions settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
URN = misc.get_self_urn()
GITHUB_USER, GITHUB_REPO = URN.split("/")

HOMEPAGE = "http://chaosthebot.com"

# TEST SETTING PLEASE IGNORE
TEST = False

Expand Down

0 comments on commit 6a8e6b4

Please sign in to comment.