Skip to content

Commit

Permalink
fix return repometrics values syntax
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo Zamora <[email protected]>
  • Loading branch information
RicardoZamora01 committed Jul 8, 2024
1 parent a0fdbce commit 7c7f35b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/metricsLib/metrics_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@
"average_blank_lines": ["avg_blank_lines"]}))

REPOMETRICS_ENDPOINT = "https://raw.githubusercontent.com/{owner}/{repo}/main/code.json"
repometrics_values = {"project_type": "", "user_input": "", "project_fisma_level": "", "group": "", "subset_in_healthcare": "", "user_type": "", "repository_host": "", "maturity_model_tier": ""}
repometrics_values = {"project_type": "project_type", "user_input": "user_input", "project_fisma_level": "project_fisma_level",
"group": "group", "subset_in_healthcare": "subset_in_healthcare", "user_type": "user_type",
"repository_host": "repository_host", "maturity_model_tier": "maturity_model_tier"}
SIMPLE_METRICS.append(BaseMetric("repometrics", ['owner', 'repo'], REPOMETRICS_ENDPOINT, repometrics_values, token=TOKEN))

ORG_METRICS.append(ListMetric("topCommitters", ["repo_group_id"],
Expand Down

0 comments on commit 7c7f35b

Please sign in to comment.