Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
5f830da
adding release automation
sachin-panayil Feb 4, 2026
bbbd218
updating docs
sachin-panayil Feb 4, 2026
a4a8d3f
added linting and fixed errors
sachin-panayil Feb 4, 2026
c85b3d3
Add new PR body for archival mode
natalialuzuriaga Feb 17, 2026
1359dee
Changed to archived tag to be lowercase
natalialuzuriaga Feb 18, 2026
fb8cf0d
Merge pull request #118 from DSACMS/DSACMS/nat/archive-pr-body
natalialuzuriaga Feb 18, 2026
9a59833
refactoring using dependency injection
sachin-panayil Feb 25, 2026
bee7273
adding tests for helper and main
sachin-panayil Feb 25, 2026
9d9b4b4
Merge remote-tracking branch 'refs/remotes/origin/dev' into dev
sachin-panayil Feb 25, 2026
e7efdaf
populate reusedCode with detected USWDS and CMS Design System depende…
haseebmalik18 Jun 30, 2026
406dea2
populate reusedCode with the upstream repo when the repository is a fork
haseebmalik18 Jul 8, 2026
dce6eff
populate reusedCode with detected USWDS and CMS Design System depende…
haseebmalik18 Jun 30, 2026
724746f
Merge pull request #125 from haseebmalik18/DSACMS/haseeb/reusedCodeFr…
haseebmalik18 Jul 10, 2026
a552bab
Merge remote-tracking branch 'upstream/dev' into DSACMS/haseeb/reused…
haseebmalik18 Jul 10, 2026
ea906ec
update contributors information
github-actions[bot] Jul 11, 2026
1c4ac04
Revert unrelated formatting changes
haseebmalik18 Jul 13, 2026
4da25dd
Merge pull request #127 from haseebmalik18/DSACMS/haseeb/reusedCodeFr…
haseebmalik18 Jul 13, 2026
53034c1
change that introduces fix to issue 93
jjijon7000 Jul 15, 2026
39d5274
change that introduces fix to issue 107
jjijon7000 Jul 15, 2026
f1c1788
Preserve existing code.json tags during metadata updates
isaac-rtc Jul 17, 2026
bff836d
Fixed first test to pass without dupes
isaac-rtc Jul 17, 2026
6619a9d
Merge pull request #131 from DSACMS/DSACMS/isaac/issues-92-topics-ove…
isaac-rtc Jul 22, 2026
1eddeb0
Add e2e workflow that triggers the sandbox run on pull requests
haseebmalik18 Jul 22, 2026
74e915c
Wait for the sandbox run and report its result
haseebmalik18 Jul 22, 2026
3871b49
Merge branch 'dev' into fix/issue-107-enum-fields-missing
jjijon7000 Jul 22, 2026
a8f6129
Merge pull request #130 from DSACMS/fix/issue-107-enum-fields-missing
jjijon7000 Jul 22, 2026
63036c7
Merge branch 'dev' into issue-93-languages-override
jjijon7000 Jul 22, 2026
0844e75
Merge pull request #129 from DSACMS/issue-93-languages-override
jjijon7000 Jul 22, 2026
818079f
Mint the sandbox token from a GitHub App instead of a PAT
haseebmalik18 Jul 30, 2026
5f65a4e
Merge branch 'dev' into dsacms/haseeb/e2etestingpipeline
haseebmalik18 Jul 31, 2026
073f549
Merge pull request #134 from DSACMS/dsacms/haseeb/e2etestingpipeline
haseebmalik18 Jul 31, 2026
c072dc0
introduced change that fixes issue #91 (#128)
jjijon7000 Aug 7, 2026
969f19d
update contributors information (#137)
github-actions[bot] Aug 7, 2026
4c986bb
Bump actions/checkout from 4 to 6 (#111)
dependabot[bot] Aug 18, 2026
450455d
Bump akhilmhdh/contributors-readme-action in the actions-minor group …
dependabot[bot] Aug 18, 2026
010fe62
Bump actions/setup-node from 4 to 6 (#112)
dependabot[bot] Aug 18, 2026
a6b228a
fix(deps): resolve all 47 open Dependabot alerts (#140)
sachin-panayil Aug 19, 2026
a50aaa9
Phase 2: Expand reusedCode detection to federal npm and PyPI dependen…
haseebmalik18 Aug 25, 2026
c46450f
Auto-discover and verify new gov dependencie (#136)
haseebmalik18 Aug 25, 2026
c85b595
codejson-core Refactor (#138)
sachin-panayil Aug 25, 2026
b39b8f2
grouping dependabot PRs by group and every month (#151)
sachin-panayil Aug 26, 2026
fa6e57f
Adding Local AI Generation (#156)
sachin-panayil Oct 2, 2026
a8fa08c
Bump codejson-core to 0.2.0 (#171)
sachin-panayil Oct 7, 2026
c1aee6c
Adopting codejson-core 0.3.0 (#176)
sachin-panayil Oct 14, 2026
a74ee7f
Bump the github-actions group with 7 updates (#152)
dependabot[bot] Oct 14, 2026
7fabfd3
Updating workflow files (#177)
sachin-panayil Oct 15, 2026
6c9c8d5
Updating docs (#178)
sachin-panayil Oct 15, 2026
618e5f0
Cleaned up dependencies (#179)
sachin-panayil Oct 15, 2026
b8e2fc5
Merge main into dev to record the v1.3.0 squash
sachin-panayil Oct 15, 2026
f53b7d4
Merge pull request #181 from DSACMS/sachin/sync-main-into-dev
sachin-panayil Oct 15, 2026
baa279c
updating release guidelines
sachin-panayil Oct 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ dist
.gitignore
.npmrc
coverage
.env
.env*
*.log
25 changes: 16 additions & 9 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,35 @@ updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
interval: monthly
groups:
actions-minor:
github-actions:
patterns:
- "*"
update-types:
- major
- minor
- patch

- package-ecosystem: npm
directory: /
schedule:
interval: weekly
interval: monthly
ignore:
- dependency-name: "@types/node"
update-types:
- "version-update:semver-major"
# Must match the version baked into the base image; bump it with a base rebuild (CONTRIBUTING.md).
- dependency-name: "node-llama-cpp"
# typescript-eslint and ts-jest don't support TypeScript 7 yet.
- dependency-name: "typescript"
update-types:
- "version-update:semver-major"
groups:
npm-development:
dependency-type: development
npm:
patterns:
- "*"
update-types:
- major
- minor
- patch
npm-production:
dependency-type: production
update-types:
- patch
66 changes: 66 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<!--
Thank you for sending the PR! We appreciate you spending the time to work on
these changes.
Help us understand your motivation by explaining why you decided to make this change.
Happy contributing!
- Comments should be formatted to a width no greater than 80 columns.
- Files should be exempt of trailing spaces.
- We adhere to a specific format for commit messages. Please write your commit
messages along these guidelines. Please keep the line width no greater than 80
columns (You can use `fmt -n -p -w 80` to accomplish this).
-->

## module-name: One line description of your change (less than 72 characters)

## Problem

Explain the context and why you're making that change. What is the problem
you're trying to solve? In some cases there is not a problem and this can be
thought of being the motivation for your change.

## Solution

Describe the modifications you've done.

## AI Usage
- [ ] Generated AI was used in this contribution

If checked, please provide an explanation on how AI was used in the development of this pull request:

- **Description:**
- _Include a high level description of Gen AI utilization_
- **Type of Assistance:**
- [ ] Code generation
- [ ] Documentation
- [ ] Debugging
- [ ] Testing
- [ ] Refactoring
- [ ] Other:
- **AI System Used:**
- [ ] ChatGPT
- [ ] Claude
- [ ] Gemini
- [ ] GitHub Copilot
- **Level of Modification:**
- [ ] As-is
- [ ] Modified
- [ ] Used as inspiration

## Result

What will change as a result of your pull request? Note that sometimes this
section is unnecessary because it is self-explanatory based on the solution.

Some important notes regarding the summary line:

* Describe what was done; not the result
* Use the active voice
* Use the present tense
* Capitalize properly
* Do not end in a period — this is a title/subject
* Prefix the subject with its scope

## Test Plan

(Write your test plan here. If you changed any code, please provide us with
clear instructions on how you verified your changes work.)
43 changes: 15 additions & 28 deletions .github/workflows/contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ on:
schedule:
# Weekly on Saturdays.
- cron: "30 1 * * 6"
push:
branches: [main]

jobs:
update-contributors:
Expand All @@ -17,53 +15,42 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
uses: actions/checkout@v7

- name: Update contributor list
id: contrib_list
uses: akhilmhdh/contributors-readme-action@v2.3.10
uses: akhilmhdh/contributors-readme-action@v2.3.11
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
readme_path: MAINTAINERS.md
use_username: false
commit_message: "update contributors information"

- name: Get contributors count
id: get_contributors
- name: Update contributors count
id: count
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

run: |
OWNER=$(echo $GITHUB_REPOSITORY | cut -d'/' -f1)
REPO=$(echo $GITHUB_REPOSITORY | cut -d'/' -f2)
QUERY='query { repository(owner: \"'"$OWNER"'\", name: \"'"$REPO"'\") { collaborators { totalCount } } }'

CONTRIBUTORS=$(gh api \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"/repos/$OWNER/$REPO/contributors?per_page=100" | \
"/repos/$GITHUB_REPOSITORY/contributors?per_page=100" | \
jq '[.[] | select(.type != "Bot" and (.login | test("\\[bot\\]$") | not) and (.login | test("-bot$") | not))] | length')

echo "Total contributors: $CONTRIBUTORS"
echo "contributors=$CONTRIBUTORS" >> $GITHUB_OUTPUT

- name: Update MAINTAINERS.md
run: |
CONTRIBUTORS="${{ steps.get_contributors.outputs.contributors }}"

perl -i -pe 's/(<!--CONTRIBUTOR COUNT START-->).*?(<!--CONTRIBUTOR COUNT END-->)/$1 '"$CONTRIBUTORS"' $2/' MAINTAINERS.md

git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git add MAINTAINERS.md
git commit -m "update contributors count to $CONTRIBUTORS" || exit 0

- name: Push protected
uses: CasperWA/push-protected@v2
# The default branch is protected, so the count goes in through a pull request.
# The contributor list above opens its own pull request for the same reason.
- name: Create Pull Request
uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.GITHUB_TOKEN }}

branch: main
commit-message: "update contributors count to ${{ steps.count.outputs.contributors }}"
title: "update contributors count to ${{ steps.count.outputs.contributors }}"
body: "Weekly contributor count refresh for MAINTAINERS.md."
branch: automated/update-contributors-count
delete-branch: true
add-paths: MAINTAINERS.md
99 changes: 99 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
name: End-to-End

on:
pull_request:
types: [opened, synchronize, reopened]

permissions:
contents: read

concurrency:
group: e2e-${{ github.event.pull_request.number }}
cancel-in-progress: true

env:
SANDBOX_REPO: DSACMS/codejson-action-e2e
SANDBOX_WORKFLOW: e2e.yml

jobs:
e2e:
name: End-to-End
runs-on: ubuntu-latest
timeout-minutes: 30

# Fork PRs get no secrets, so they can't reach the sandbox. Skip rather than fail
# the check, and run the e2e by hand for those.
if: github.event.pull_request.head.repo.full_name == github.repository

steps:
- name: Generate sandbox token
id: app_token
uses: actions/create-github-app-token@v3
with:
app-id: ${{ secrets.E2E_APP_ID }}
private-key: ${{ secrets.E2E_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: codejson-action-e2e

- name: Trigger sandbox run
id: trigger
env:
GH_TOKEN: ${{ steps.app_token.outputs.token }}
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
set -euo pipefail

# workflow_dispatch doesn't return the run it created, so tag the run with an
# id only this job could produce and find it by name below.
RUN_NAME="e2e ${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
echo "run_name=${RUN_NAME}" >> "$GITHUB_OUTPUT"

gh workflow run "$SANDBOX_WORKFLOW" \
--repo "$SANDBOX_REPO" \
--ref main \
-f action_sha="$HEAD_SHA" \
-f pr_number="$PR_NUMBER" \
-f correlation_id="${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"

echo "Dispatched ${SANDBOX_REPO} for ${HEAD_SHA} (PR #${PR_NUMBER})"

- name: Wait for sandbox verdict
env:
GH_TOKEN: ${{ steps.app_token.outputs.token }}
RUN_NAME: ${{ steps.trigger.outputs.run_name }}
run: |
set -euo pipefail

RUN_ID=""
for _ in $(seq 1 24); do
RUN_ID=$(gh api "repos/${SANDBOX_REPO}/actions/workflows/${SANDBOX_WORKFLOW}/runs?per_page=100" \
--jq "[.workflow_runs[] | select(.name == \"${RUN_NAME}\" or .display_title == \"${RUN_NAME}\")] | .[0].id // empty")
[ -n "$RUN_ID" ] && break
sleep 5
done

if [ -z "$RUN_ID" ]; then
echo "::error::Sandbox run '${RUN_NAME}' never appeared in ${SANDBOX_REPO}."
exit 1
fi

RUN_URL="https://github.com/${SANDBOX_REPO}/actions/runs/${RUN_ID}"
echo "Sandbox run: ${RUN_URL}"
echo "Sandbox run: ${RUN_URL}" >> "$GITHUB_STEP_SUMMARY"

# The sandbox serializes its runs, so this can sit queued behind another PR.
while true; do
STATUS=$(gh api "repos/${SANDBOX_REPO}/actions/runs/${RUN_ID}" --jq '.status')
[ "$STATUS" = "completed" ] && break
echo " ${STATUS}..."
sleep 15
done

CONCLUSION=$(gh api "repos/${SANDBOX_REPO}/actions/runs/${RUN_ID}" --jq '.conclusion')

if [ "$CONCLUSION" != "success" ]; then
echo "::error::Sandbox e2e ${CONCLUSION}. See ${RUN_URL}"
exit 1
fi
echo "Sandbox e2e passed."
7 changes: 5 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,20 @@ on:
- main
- dev

permissions:
contents: read

jobs:
eslint:
name: ESLint
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: Setup Node
uses: actions/setup-node@v4
uses: actions/setup-node@v7
with:
node-version: 20
cache: npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-warning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

steps:
- name: Check for release label
uses: actions/github-script@v7
uses: actions/github-script@v9
with:
script: |
const labels = context.payload.pull_request.labels.map(l => l.name);
Expand Down
Loading
Loading