Exemple #1
0
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"])
Exemple #2
0
def _json_export():
    g = Gitana(CONFIG)
    g.export_json("db_2048", "repo_2048", "./file-dump.json", references=["origin/master"])