Skip to content

Commit

Permalink
Comments on class RepositoryClient
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-mbm committed Jun 27, 2015
1 parent 6c082a3 commit 4f6b6f3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions paicemana/githubclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,19 @@


class RepositoryClient(object):
"""Class to read and write on GitHub repository"""

def __init__(self, repo_user = 'OSMBrasil', repo_name = 'semanario'):
"""
@params
repo_user - name of organization or user
repo_name - repository name
"""
github = GitHub()
self.repo = github.repository(repo_user, repo_name)

def milestones_info(self):
"""Prints information for identification of milestones"""
s = ''
for milestone in self.repo.milestones():
s += 'The milestone "%s" has number=%s\n'\
Expand Down

0 comments on commit 4f6b6f3

Please sign in to comment.