コード例 #1
0
ファイル: repoinit.py プロジェクト: Calinou/wrapweb
 def init_github(self, path, organization, homepage):
     gh = environment.Github()
     mesonbuild = gh.get_organization(organization)
     description = 'Meson build definitions for %s' % self.name
     ghrepo = mesonbuild.create_repo(
         self.name,
         description=description,
         homepage=homepage,
         team_id=maintainers_team_id[organization])
     team = mesonbuild.get_team(maintainers_team_id[organization])
     team.set_repo_permission(ghrepo, 'push')
     self.init(path, ghrepo.ssh_url)
コード例 #2
0
ファイル: import_from_hosted.py プロジェクト: Calinou/wrapweb
 def _org(self):
     return environment.Github().get_organization('mesonbuild')
コード例 #3
0
ファイル: reviewtool.py プロジェクト: yuanyuyu/wrapweb
 def _get_project(project):
     gh = environment.Github()
     org = gh.get_organization('mesonbuild')
     return org.get_repo(project)
コード例 #4
0
 def _get_project(organization: str,
                  project: str) -> github.Repository.Repository:
     gh = environment.Github()
     org = gh.get_organization('mesonbuild')
     return org.get_repo(project)