Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
14 changes: 11 additions & 3 deletions .github/workflows/refresh-project-workbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,22 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python3 pipeline/fetch.py

- name: Build project JSON for the chatbot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python3 pipeline/build_json.py

- name: Run pipeline tests
run: python3 -m unittest discover -s tests

- name: Commit workbook changes
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add sources/Public\ Invention\ Projects.xlsx
git add sources/Public\ Invention\ Projects.xlsx data/projects.json data/skills.json
if git diff --staged --quiet; then
echo "No workbook changes."
echo "No workbook or JSON changes."
else
git commit -m "chore: refresh project workbook"
git commit -m "chore: refresh project workbook and JSON"
git push
fi
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__pycache__/
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ The team ran into issues with the recommendation rankings, and so far the additi

In October of 2025, the project was reopened for further updates, and/or to be implemented on the Public Invention website. Awaiting further updates.

## Project data (JSON)

A weekly GitHub Action (`.github/workflows/refresh-project-workbook.yml`) refreshes the workbook's activity columns, then `pipeline/build_json.py` writes:

- `data/projects.json`: one record per project with status, synopsis, a README summary, priority, joinability, difficulty, Seeking Volunteers/Mentors (`yes` / `maybe` / `no` / `unknown`), activity (`Active` / `Stale` / `Dormant` / `Unknown`) and canonical skills.
- `data/skills.json`: the canonical skills used by at least one project.

Skills come from the workbook's Skills column, mapped through `data/skill_aliases.json`, plus keywords found in each project's README or idea file (`pipeline/skill_rules.py`). To run it locally: `GITHUB_TOKEN=$(gh auth token) python3 pipeline/build_json.py`, and `python3 -m unittest discover -s tests` for the tests.

## Resources

The current [Public Invention Project Chatbot](https://chatgpt.com/g/g-67c0c512437c8191844d6afd21abfb21-public-invention-project-chatbot?model=gpt-4o) is live and can provide details about projects currently on the project spreadsheet included in this repository.
Expand Down
Loading