def _get_data(db_name, project_name, repo_name, issue_tracker_name, repo_path, github_name): g = Gitana(CONFIG, None) g.delete_previous_logs() g.init_db(db_name) g.create_project(db_name, project_name) print "import git data" g.import_git_data( db_name, project_name, repo_name, repo_path, references=["origin/master"] ) #, "v1.0.0", "v1.1.0", "v1.2.0", "v1.3.0", "v1.4.0", "v2.0.0", "v2.1.0", "v2.2.0", "v2.3.0", "v.3.0.0", "v.3.1.0", "v.3.2.0", "v.3.3.0"]) print "import issue tracker" g.import_github_issue_data(db_name, project_name, repo_name, issue_tracker_name, github_name, GH_TOKENS) g.import_github_pull_request_data(db_name, project_name, repo_name, issue_tracker_name, github_name, GH_TOKENS) g.match_vcs_and_github_users(db_name, project_name, repo_name, github_name, GH_TOKENS) print "import fun data" g.import_code_data(db_name, project_name, repo_name, repo_path, references=["origin/master"], processes=5)
def _decidim(): g = Gitana(CONFIG, None) g.delete_previous_logs() g.init_db("db_decidim") g.create_project("db_decidim", "decidim") print "import git data" g.import_git_data( "db_decidim", "decidim", "repo_decidim", "C:\\Users\\atlanmod\\Desktop\\decidim-analysis\\decidim", references=["origin/master"]) g.match_vcs_and_github_users("db_decidim", "decidim", "repo_decidim", "decidim/decidim", GH_TOKENS) g.export_json("db_decidim", "repo_decidim", "./decidim-master.json", references=["origin/master"])