diff --git a/main.py b/main.py index d17e214..0c692c5 100644 --- a/main.py +++ b/main.py @@ -8,6 +8,19 @@ import perceval_tasks as pt import github_api_req as gha import gh_gsql_req as ghs +# In total, the data will look like: +# - repository VCS url +# - perceval object +# list of all commits to the project +# count of contributors and collaborators to the project +# age of the project +# - github api object +# object of milestones from the project +# count of milestones from the project +# - github gsql object +# - list of discussion comments from repo +# list left blank if none + def main(): # we should discuss whether we're using the 93 day window that seems to be widely used or if we want a longer window early_cutoff = dt.datetime(2013,11, 6) diff --git a/perceval_tasks.py b/perceval_tasks.py index a2153eb..b5754cc 100644 --- a/perceval_tasks.py +++ b/perceval_tasks.py @@ -33,13 +33,6 @@ def get_perceval_log(vcs_path, begin_date): except: print("error, cannot fetch repo data?") return {} - ''' - #gitpath=repo_dir - repo = Git(uri=vcs_path[0], gitpath=repo_dir) - # this is a temporary date_from, will need to be more inclusive in the future - fetched_commits = repo.fetch(from_date=begin_date) - return list(fetched_commits) - ''' #this function is just to evaluate the repository age, as defined by Tamburri and used by van Meijel def get_repo_age(all_commits):