Skip to content

Commit

Permalink
add repo_url field to repo_labor insert
Browse files Browse the repository at this point in the history
Signed-off-by: Isaac Milarsky <[email protected]>
  • Loading branch information
IsaacMilarky committed Aug 25, 2023
1 parent fd88add commit b277462
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion augur/tasks/git/scc_value_tasks/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from augur.application.db.util import execute_session_query
from augur.tasks.util.worker_util import parse_json_from_subprocess_call

def value_model(session,repo_id, path):
def value_model(session,repo_git,repo_id, path):
"""Runs scc on repo and stores data in database
:param repo_id: Repository ID
:param path: absolute file path of the Repostiory
Expand Down Expand Up @@ -44,6 +44,7 @@ def value_model(session,repo_id, path):
'comment_lines': file['Comment'],
'blank_lines': file['Blank'],
'code_complexity': file['Complexity'],
'repo_url': repo_git,
'tool_source': 'value_model',
'data_source': 'Git',
'data_collection_date': datetime.now().strftime('%Y-%m-%dT%H:%M:%SZ')
Expand Down
2 changes: 1 addition & 1 deletion augur/tasks/git/scc_value_tasks/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ def process_scc_value_metrics(repo_git):
config = AugurConfig(session.logger, session)
absolute_repo_path = get_absolute_repo_path(config.get_section("Facade")['repo_directory'],repo.repo_id,repo.repo_path,repo.repo_name)

value_model(session,repo.repo_id, absolute_repo_path)
value_model(session,repo_git,repo.repo_id, absolute_repo_path)

0 comments on commit b277462

Please sign in to comment.