Skip to content

Commit

Permalink
merging PR #278: Add homepage to the repo
Browse files Browse the repository at this point in the history
#278: Add homepage to the repo

Description:
See github api docs here: https://developer.github.com/v3/repos/#edit

🙆‍♀️ PR passed with a vote of 18 for and 0 against, with a weighted total of 18.0 and a threshold of 6.2.

Vote record:
@N00d13: 1
@PlasmaPower: 1
@cjoh: 1
@datitisev: 1
@eukaryote31: 1
@hongaar: 1
@hubert-pomorski: 1
@laqie: 1
@max-wittig: 1
@phil-r: 1
@qgustavor: 1
@rhengles: 1
@rudehn: 1
@shnist: 1
@tarunbatra: 1
@valfirst: 1
@viktorsec: 1
@voronianski: 1
  • Loading branch information
chaosbot committed May 26, 2017
2 parents 1241a41 + ae12b70 commit e3bd2d4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion description.txt
@@ -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
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
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 e3bd2d4

Please sign in to comment.