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
Copy file name to clipboardExpand all lines: README.md
+35-2Lines changed: 35 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,13 +15,23 @@ GITHUB_TOKEN:
15
15
default: ${{ github.token }}
16
16
```
17
17
18
-
## Usage
18
+
## Outputs
19
+
20
+
```yaml
21
+
updated:
22
+
description: "Boolean indicating whether code.json was updated"
23
+
pr_url:
24
+
description: "URL of the created pull request if changes were made"
25
+
```
26
+
27
+
## Workflow Examples
19
28
20
29
### Create a PR to add compliant code.json
21
30
22
31
```yaml
23
32
name: Update Code.json
24
33
on:
34
+
schedule: 0 0 1 * * # Example of running first day of every month
25
35
workflow_dispatch:
26
36
27
37
permissions:
@@ -45,6 +55,29 @@ jobs:
45
55
BRANCH: "main"
46
56
```
47
57
58
+
## Generation Context
59
+
The automated code.json generator calculates specific fields by analyzing your repository and using GitHub's API. Here's what gets generated and what your repository needs for successful generation.
60
+
61
+
**name**: This field pulls directly from your repository's name as configured in GitHub. No configuration needed.
62
+
63
+
**description**: The generator extracts this from your repository's description field in GitHub settings. *Make sure you've added a description to your repository through GitHub's interface for this field to populate properly.*
64
+
65
+
**repositoryURL**: This automatically uses your repository's public GitHub URL. No configuration needed.
66
+
67
+
**repositoryVisibility**: The generator determines whether your repository is private or public. No configuration needed.
68
+
69
+
**laborHours**: The generator runs SCC against your workspace to analyze your codebase and estimate development time. No configuration needed.
70
+
71
+
**languages**: This field populates the programming languages in your repository. No configuration needed.
72
+
73
+
**dateCreated**: The generator pulls your repository's creation date. No configuration needed.
74
+
75
+
**dateLastModified**: This uses your repository's last update timestamp, reflecting the most recent changes. No configuration needed.
76
+
77
+
**dateMetaDataLastUpdated**: The generator sets this to the current timestamp each time it runs, providing a record of when the metadata was last refreshed. No configuration needed.
78
+
79
+
**feedbackMechanisms**: A list of containing your repository's issues URL in the format of {repositoryURL}/issues. If you already have a code.json file with existing feedback mechanisms, the generator preserves those values. No configuration needed.
80
+
48
81
## Project Vision
49
82
50
83
To streamline federal agencies' compliance with open source requirements by automating the maintenance of code.json files, reducing manual effort and improving accuracy of repository metadata.
@@ -100,7 +133,7 @@ To develop locally:
100
133
1. Clone the repository
101
134
2. Install dependencies with `npm install`
102
135
3. Install Go and SCC tool: `go install github.com/boyter/scc/v3@latest`
0 commit comments