__author__ = 'jloeffler'

def list_projects():

    return {}

def list_contributors():

    return {}

__author__ = 'jloeffler'

from github3 import GitHub
from github3.models import GitHubError
from github3.repos.repo import Repository
from birdwatch.configuration import configuration
from birdwatch.collector import Project

def list_projects():

    # just for testing
    github = GitHub(token=configuration.github_token)
    zalando_repos = github.iter_user_repos("zalando")

    projects = {'projects': [{'name': repo.name} for repo in zalando_repos if repo.name == 'birdwatch']}

    print(projects)

    return projects

def list_contributors():

    return {}

Return one project for testing
Return one project for testing

  __author__ = 'jloeffler'
+ 
+ from github3 import GitHub
+ from github3.models import GitHubError
+ from github3.repos.repo import Repository
+ from birdwatch.configuration import configuration
+ from birdwatch.collector import Project
  
  def list_projects():
  
-     return {}
+     # just for testing
+     github = GitHub(token=configuration.github_token)
+     zalando_repos = github.iter_user_repos("zalando")
+ 
+     projects = {'projects': [{'name': repo.name} for repo in zalando_repos if repo.name == 'birdwatch']}
+ 
+     print(projects)
+ 
+     return projects
  
  def list_contributors():
  
      return {}
  
Return one project for testing
## Code Before:
__author__ = 'jloeffler'

def list_projects():

    return {}

def list_contributors():

    return {}

## Instruction:
Return one project for testing
## Code After:
__author__ = 'jloeffler'

from github3 import GitHub
from github3.models import GitHubError
from github3.repos.repo import Repository
from birdwatch.configuration import configuration
from birdwatch.collector import Project

def list_projects():

    # just for testing
    github = GitHub(token=configuration.github_token)
    zalando_repos = github.iter_user_repos("zalando")

    projects = {'projects': [{'name': repo.name} for repo in zalando_repos if repo.name == 'birdwatch']}

    print(projects)

    return projects

def list_contributors():

    return {}
