Skip to content

Commit 19ccb37

Browse files
Merge pull request #4 from SoftwareUnderstanding/update_sw_metadata_bot_v0.3
Update sw metadata bot v0.4.1
2 parents 737ab4a + 59cf704 commit 19ccb37

64 files changed

Lines changed: 13364 additions & 390 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.env
2+
*.pyc

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.11

README.md

Lines changed: 41 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,56 @@
22

33
A website to display the results of running the sw metadata bot on different organizations
44

5-
## Generating the Dashboard
5+
## Installation
66

7-
The landing page (`index.html`) is generated dynamically from the JSON data report using a Python script and a Mustache template.
7+
### Option 1: Using uv (recommended)
88

9-
### Requirements
9+
```bash
10+
uv sync
11+
```
12+
13+
This creates/updates `.venv` and installs all project dependencies from `pyproject.toml`.
14+
15+
### Option 2: Using pip
16+
17+
```bash
18+
python -m pip install --upgrade pip
19+
python -m pip install "pystache>=0.6.8" "sw-metadata-bot>=0.4.1"
20+
```
21+
22+
If you prefer isolated environments, create and activate a virtual environment first:
1023

11-
You need Python 3 and the `pystache` library to generate the HTML file:
24+
```bash
25+
python -m venv .venv
26+
source .venv/bin/activate
27+
python -m pip install --upgrade pip
28+
python -m pip install "pystache>=0.6.8" "sw-metadata-bot>=0.4.1"
29+
```
30+
31+
## Running Analysis and Updating the Dashboard
32+
33+
Use the helper script to run new analysis, submit issues and update the index.html:
1234

1335
```bash
14-
pip install pystache
36+
bash input/run_analysis.sh
1537
```
1638

17-
### How to Generate
39+
The script now supports two modes automatically:
1840

19-
1. Ensure that the latest JSON report is saved as `created_issues_report.json` in this directory.
20-
2. Run the generation script:
41+
1. `uv` mode when both `uv` and `.venv/` are available
42+
2. `pip` fallback mode when `uv` is not available or `.venv/` does not exist
43+
44+
In fallback mode, it installs required Python dependencies (`sw-metadata-bot`, `pystache`) with `pip` before running.
45+
46+
## Generating Only the Landing Page
47+
48+
If analysis output already exists, regenerate HTML pages with:
2149

2250
```bash
23-
python generate.py
51+
python generate_landing_page.py --config-file input/config.json
2452
```
2553

26-
This script will read the JSON data, parse it, and render it through `template.mustache` to output a the `index.html` file in the same directory.
54+
The generator reads snapshots from `outputs/<run_name>/<snapshot_tag>/run_report.json` and renders:
55+
56+
1. `index.html` for the latest snapshot
57+
2. `history/report_<snapshot_tag>.html` for each available snapshot

created_issues_report.json

Lines changed: 0 additions & 194 deletions
This file was deleted.

0 commit comments

Comments
 (0)