Skip to content

Commit

Permalink
Merge pull request #146 from DSACMS/dev
Browse files Browse the repository at this point in the history
Merge Dev to Main
  • Loading branch information
IsaacMilarky authored Aug 28, 2024
2 parents 66f42d2 + 1deece3 commit 4d48f83
Show file tree
Hide file tree
Showing 26 changed files with 80 additions and 72 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ cookiecutter https://github.com/DSACMS/repo-scaffolder --directory=tierX
```

## Add Repometrics to your Project
To integrate repometrics into your new project, navigate to your project's directory and run the following cookiecutter command:
To integrate repometrics into your new project, navigate to your project's `.github` directory and run the following cookiecutter command:
```
cookiecutter . --directory=repometrics
```
Expand Down
14 changes: 7 additions & 7 deletions code.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"project_type": "Tools",
"user_input": "No",
"project_fisma_level": "Low",
"projectType": "Tools",
"userInput": "No",
"fismaLevel": "Low",
"group": "CMS/OA/DSAC",
"subset_in_healthcare": "Operational",
"user_type": "Government",
"repository_host": "Github.com",
"maturity_model_tier": "3"
"subsetInHealthcare": "Operational",
"userType": "Government",
"repositoryHost": "Github.com",
"maturityModelTier": "3"
}
2 changes: 1 addition & 1 deletion tier1/cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"create_repo": "Would you like to create a repo on github.com?",
"receive_updates": "Would you like to receive updates from the DSACMS team via pull requests?"
},
"_copy_without_render": ["repometrics"]
"_copy_without_render": [".github/repometrics"]
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"project_type" : ["Package", "Website", "Standards", "Libraries", "Data", "Apps", "Tools", "APIs"],
"project_type" : ["Package", "Website", "Standards", "Libraries", "Data", "Apps", "Tools", "APIs", "Docs"],
"user_input": ["Yes", "No"],
"project_fisma_level": ["Low", "Moderate", "High"],
"fisma_level": ["Low", "Moderate", "High"],
"group": "CMS/OA/DSAC",
"subset_in_healthcare": "Policy, Operational",
"user_type": "Providers, Patients, Government",
Expand All @@ -10,7 +10,7 @@
"group": "Which group is the project part of?",
"subset_in_healthcare": "Which subset of healthcare does the project belong to?",
"user_type": "Who are the intended users?",
"user_input": "Does the project accept user input? (e.g. allows user to query a database, allows login by users, etc.)",
"user_input": "Does the project accept user input? (e.g. allows user to query a database, allows login by users, upload files, etc.)",
"repository_host": "Where is the repository hosted?"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ fi
project_type="{{cookiecutter.project_type}}"
sub_project_dir="${project_type}"
repometrics_file="code.json"
parent_dir="./"
project_root_dir="../"

if [ -f "${sub_project_dir}/${repometrics_file}" ]; then
# Move code.json file to parent directory
mv "${sub_project_dir}/${repometrics_file}" "${parent_dir}"
mv "${sub_project_dir}/${repometrics_file}" "${project_root_dir}"

# Check if the move was successful
if [ $? -eq 0 ]; then
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"projectType": "{{ cookiecutter.project_type }}",
"userInput": "{{ cookiecutter.user_input }}",
"fismaLevel": "{{ cookiecutter.fisma_level }}",
"group": "{{ cookiecutter.group }}",
"subsetInHealthcare": "{{ cookiecutter.subset_in_healthcare }}",
"userType": "{{ cookiecutter.user_type }}",
"repositoryHost": "{{ cookiecutter.repository_host }}",
"maturityModelTier": "1"
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,6 @@ jobs:

# The default token is the repolinter token for the DSACMS org
# You can change it if needed.
{% raw %}
token: ${{ secrets.REPOLINTER_AUTO_TOKEN }}
{% endraw %}

This file was deleted.

2 changes: 1 addition & 1 deletion tier2/cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
"receive_updates": "Would you like to receive updates from the DSACMS team via pull requests?",
"add_maintainer": "Would you like to add a maintainer?"
},
"_copy_without_render": ["repometrics"]
"_copy_without_render": [".github/repometrics"]
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"project_type" : ["Package", "Website", "Standards", "Libraries", "Data", "Apps", "Tools", "APIs"],
"project_type" : ["Package", "Website", "Standards", "Libraries", "Data", "Apps", "Tools", "APIs", "Docs"],
"user_input": ["Yes", "No"],
"project_fisma_level": ["Low", "Moderate", "High"],
"fisma_level": ["Low", "Moderate", "High"],
"group": "CMS/OA/DSAC",
"subset_in_healthcare": "Policy, Operational",
"user_type": "Providers, Patients, Government",
Expand All @@ -10,7 +10,7 @@
"group": "Which group is the project part of?",
"subset_in_healthcare": "Which subset of healthcare does the project belong to?",
"user_type": "Who are the intended users?",
"user_input": "Does the project accept user input? (e.g. allows user to query a database, allows login by users, etc.)",
"user_input": "Does the project accept user input? (e.g. allows user to query a database, allows login by users, upload files, etc.)",
"repository_host": "Where is the repository hosted?"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ fi
project_type="{{cookiecutter.project_type}}"
sub_project_dir="${project_type}"
repometrics_file="code.json"
parent_dir="./"
project_root_dir="../"

if [ -f "${sub_project_dir}/${repometrics_file}" ]; then
# Move code.json file to parent directory
mv "${sub_project_dir}/${repometrics_file}" "${parent_dir}"
mv "${sub_project_dir}/${repometrics_file}" "${project_root_dir}"

# Check if the move was successful
if [ $? -eq 0 ]; then
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"projectType": "{{ cookiecutter.project_type }}",
"userInput": "{{ cookiecutter.user_input }}",
"fismaLevel": "{{ cookiecutter.fisma_level }}",
"group": "{{ cookiecutter.group }}",
"subsetInHealthcare": "{{ cookiecutter.subset_in_healthcare }}",
"userType": "{{ cookiecutter.user_type }}",
"repositoryHost": "{{ cookiecutter.repository_host }}",
"maturityModelTier": "2"
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,6 @@ jobs:

# The default token is the repolinter token for the DSACMS org
# You can change it if needed.
{% raw %}
token: ${{ secrets.REPOLINTER_AUTO_TOKEN }}
{% endraw %}

This file was deleted.

2 changes: 1 addition & 1 deletion tier3/cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
"receive_updates": "Would you like to receive updates from the DSACMS team via pull requests?",
"add_maintainer": "Would you like to add maintainers, approvers, and/or reviewers?"
},
"_copy_without_render": ["repometrics"]
"_copy_without_render": [".github/repometrics"]
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"project_type" : ["Package", "Website", "Standards", "Libraries", "Data", "Apps", "Tools", "APIs"],
"project_type" : ["Package", "Website", "Standards", "Libraries", "Data", "Apps", "Tools", "APIs", "Docs"],
"user_input": ["Yes", "No"],
"project_fisma_level": ["Low", "Moderate", "High"],
"fisma_level": ["Low", "Moderate", "High"],
"group": "CMS/OA/DSAC",
"subset_in_healthcare": "Policy, Operational",
"user_type": "Providers, Patients, Government",
Expand All @@ -10,7 +10,7 @@
"group": "Which group is the project part of?",
"subset_in_healthcare": "Which subset of healthcare does the project belong to?",
"user_type": "Who are the intended users?",
"user_input": "Does the project accept user input? (e.g. allows user to query a database, allows login by users, etc.)",
"user_input": "Does the project accept user input? (e.g. allows user to query a database, allows login by users, upload files, etc.)",
"repository_host": "Where is the repository hosted?"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ fi
project_type="{{cookiecutter.project_type}}"
sub_project_dir="${project_type}"
repometrics_file="code.json"
parent_dir="./"
project_root_dir="../"

if [ -f "${sub_project_dir}/${repometrics_file}" ]; then
# Move code.json file to parent directory
mv "${sub_project_dir}/${repometrics_file}" "${parent_dir}"
mv "${sub_project_dir}/${repometrics_file}" "${project_root_dir}"

# Check if the move was successful
if [ $? -eq 0 ]; then
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"projectType": "{{ cookiecutter.project_type }}",
"userInput": "{{ cookiecutter.user_input }}",
"fismaLevel": "{{ cookiecutter.fisma_level }}",
"group": "{{ cookiecutter.group }}",
"subsetInHealthcare": "{{ cookiecutter.subset_in_healthcare }}",
"userType": "{{ cookiecutter.user_type }}",
"repositoryHost": "{{ cookiecutter.repository_host }}",
"maturityModelTier": "3"
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,6 @@ jobs:

# The default token is the repolinter token for the DSACMS org
# You can change it if needed.
{% raw %}
token: ${{ secrets.REPOLINTER_AUTO_TOKEN }}
{% endraw %}

This file was deleted.

2 changes: 1 addition & 1 deletion tier4/cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
"receive_updates": "Would you like to receive updates from the DSACMS team via pull requests?",
"add_maintainer": "Would you like to add maintainers, approvers, and/or reviewers?"
},
"_copy_without_render": ["repometrics"]
"_copy_without_render": [".github/repometrics"]
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"project_type" : ["Package", "Website", "Standards", "Libraries", "Data", "Apps", "Tools", "APIs"],
"project_type" : ["Package", "Website", "Standards", "Libraries", "Data", "Apps", "Tools", "APIs", "Docs"],
"user_input": ["Yes", "No"],
"project_fisma_level": ["Low", "Moderate", "High"],
"fisma_level": ["Low", "Moderate", "High"],
"group": "CMS/OA/DSAC",
"subset_in_healthcare": "Policy, Operational",
"user_type": "Providers, Patients, Government",
Expand All @@ -10,7 +10,7 @@
"group": "Which group is the project part of?",
"subset_in_healthcare": "Which subset of healthcare does the project belong to?",
"user_type": "Who are the intended users?",
"user_input": "Does the project accept user input? (e.g. allows user to query a database, allows login by users, etc.)",
"user_input": "Does the project accept user input? (e.g. allows user to query a database, allows login by users, upload files, etc.)",
"repository_host": "Where is the repository hosted?"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ fi
project_type="{{cookiecutter.project_type}}"
sub_project_dir="${project_type}"
repometrics_file="code.json"
parent_dir="./"
project_root_dir="../"

if [ -f "${sub_project_dir}/${repometrics_file}" ]; then
# Move code.json file to parent directory
mv "${sub_project_dir}/${repometrics_file}" "${parent_dir}"
mv "${sub_project_dir}/${repometrics_file}" "${project_root_dir}"

# Check if the move was successful
if [ $? -eq 0 ]; then
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"projectType": "{{ cookiecutter.project_type }}",
"userInput": "{{ cookiecutter.user_input }}",
"fismaLevel": "{{ cookiecutter.fisma_level }}",
"group": "{{ cookiecutter.group }}",
"subsetInHealthcare": "{{ cookiecutter.subset_in_healthcare }}",
"userType": "{{ cookiecutter.user_type }}",
"repositoryHost": "{{ cookiecutter.repository_host }}",
"maturityModelTier": "4"
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,6 @@ jobs:

# The default token is the repolinter token for the DSACMS org
# You can change it if needed.
{% raw %}
token: ${{ secrets.REPOLINTER_AUTO_TOKEN }}
{% endraw %}

This file was deleted.

0 comments on commit 4d48f83

Please sign in to comment.