You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[repo-scaffolder](https://github.com/DSACMS/repo-scaffolder) is a tool for creating repositories that adhere to repository hygiene standards. It provides file templates detailing project information, contributing guidance, maintainer roles, community involvement, and **project metadata**.
13
+
***Procedures for Agencies**:
14
+
[Generate an agency-index.json file for submission](#generate-an-agency-indexjson-file-for-agencies)
For repositories created using repo-scaffolder, the tool can assist with adding code.json to the repository. Navigate to your project's `.github` directory and run the following cookiecutter command. You will be asked questions about the project in order to collect and store this metadata in code.json.
14
17
15
-
```
16
-
cookiecutter . --directory=codejson
17
-
```
18
-
19
-
For more information on repo-scaffolder, check out the [documentation](https://github.com/DSACMS/repo-scaffolder?tab=readme-ov-file#metadata-collection-using-codejson).
18
+
## Creating a code.json file in your repository
20
19
21
20
### Using form site
21
+
*This method works best for all repositories on all platforms.*
22
22
23
23
Users can fill out a web form that creates a code.json file to be uploaded to a project's source code repository: https://dsacms.github.io/codejson-generator.
24
24
25
+
26
+
25
27
### Using automated-codejson-generator
28
+
*This method works best for repositories hosted on GitHub with GitHub Actions enabled.*
26
29
27
30
The [automated-codejson-generator](https://github.com/DSACMS/automated-codejson-generator) is a GitHub Action that automatically generates and maintains code.json files for federal open source repositories. It ensures schema consistency and automates metadata calculations, including:
28
31
@@ -31,6 +34,19 @@ The [automated-codejson-generator](https://github.com/DSACMS/automated-codejson-
31
34
- Repository information
32
35
- Timestamps
33
36
37
+
### Using repo-scaffolder
38
+
*This method is most effective when GitHub Actions are unavailable, allowing cookiecutter to be installed locally with Python.*
39
+
40
+
[repo-scaffolder](https://github.com/DSACMS/repo-scaffolder) is a tool for creating repositories that adhere to repository hygiene standards. It provides file templates detailing project information, contributing guidance, maintainer roles, community involvement, and **project metadata**.
41
+
42
+
For repositories created using repo-scaffolder, the tool can assist with adding code.json to the repository. Navigate to your project's `.github` directory and run the following cookiecutter command. You will be asked questions about the project in order to collect and store this metadata in code.json.
43
+
44
+
```
45
+
cookiecutter . --directory=codejson
46
+
```
47
+
48
+
For more information on repo-scaffolder, check out the [documentation](https://github.com/DSACMS/repo-scaffolder?tab=readme-ov-file#metadata-collection-using-codejson).
49
+
34
50
#### Setting up the GitHub Action
35
51
36
52
To use the automated-codejson-generator in your repository, create a workflow file with the following configuration:
@@ -74,10 +90,16 @@ jobs:
74
90
75
91
This action will create a pull request to add or update a compliant code.json file in your repository.
76
92
93
+
## Generate an agency-index.json file for agencies
94
+
77
95
### Using codejson-index-generator
78
96
79
97
The [codejson-index-generator](https://github.com/DSACMS/codejson-index-generator) is a Python-based tool that helps federal agencies compile and maintain their code.json files for code.gov compliance. It scans specified GitHub organizations, finds repositories containing code.json files, and combines them into a single indexed file.
80
98
99
+
The tool can be run using the [index-generator-website](https://dsacms.github.io/index-generator-website/).
100
+
101
+
Alternatively, follow the instructions below to run locally.
0 commit comments