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
Update weekly report workflow to use gpt-5-mini-high and 3-step process
- Step 1: identify active repos (pushed in past 7 days) rather than scanning all repos
- Step 2: collect commits, PRs, issues only from active repos
- Step 3: generate polished news item via gh api /models/gpt-5-mini-high/chat/completions
- Publish to fvutils/.github Discussions
- Model is configurable via env.MODEL at top of workflow
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
# ── Step 3: Generate news item via gh api /models/$MODEL ─────────────────
93
+
# Pass the raw activity to gpt-5-mini-high and ask for a polished news item.
94
+
- name: Generate news item
75
95
env:
76
96
GH_TOKEN: ${{ github.token }}
77
97
run: |
78
-
# Read the activity data
79
98
ACTIVITY=$(cat /tmp/activity.md)
80
-
81
-
# Create prompt file for AI model
82
-
cat > /tmp/prompt.txt << 'PROMPT_EOF'
83
-
Based on the following weekly activity report, create a concise summary paragraph (2-3 sentences) highlighting the key accomplishments and overall development direction.
84
-
85
-
PROMPT_EOF
86
-
87
-
cat /tmp/activity.md >> /tmp/prompt.txt
88
-
89
-
# Read the complete prompt
90
-
PROMPT=$(cat /tmp/prompt.txt)
91
-
92
-
# Use GitHub Models API (GPT-4) to generate summary
93
-
RESPONSE=$(gh api \
94
-
-X POST \
95
-
/models/gpt-4o-mini/chat/completions \
96
-
-f model='gpt-4o-mini' \
97
-
-f messages[][role]='user' \
98
-
-f messages[][content]="$PROMPT" \
99
-
-F max_tokens=150 \
100
-
-F temperature=0.7 2>&1) || {
101
-
# Fallback if API fails: create basic summary
102
-
COMMIT_COUNT=$(grep -c "^- .*(.{7}) in fvutils/" /tmp/activity.md || echo "0")
103
-
echo "This week saw continued development across FVUtils repositories with $COMMIT_COUNT commits and various updates. The team remains focused on enhancing features, fixing bugs, and improving project infrastructure." > /tmp/summary.md
echo "This week saw active development across FVUtils repositories with multiple commits, pull requests, and issue updates. Development continues with focus on feature enhancements and project improvements." > /tmp/summary.md
99
+
WEEK_END=$(date -u '+%d %b %Y')
100
+
101
+
# Build the prompt as a JSON payload using jq to handle escaping
102
+
jq -n \
103
+
--arg activity "$ACTIVITY" \
104
+
--arg week_end "$WEEK_END" \
105
+
--arg model "$MODEL" \
106
+
'{
107
+
model: $model,
108
+
messages: [{
109
+
role: "user",
110
+
content: (
111
+
"You are a technical writer for an open-source verification tools project.\n\n" +
112
+
"Below is raw weekly activity (commits, PRs, issues) from the fvutils GitHub org " +
113
+
"for the week ending " + $week_end + ".\n\n" +
114
+
$activity + "\n\n" +
115
+
"Write a concise weekly news item suitable for the project website. " +
116
+
"Include: a short overall summary paragraph, then a per-repo highlights section " +
117
+
"using bullet points, and a brief 'What'\''s next' closing line. " +
118
+
"Be factual, avoid hype, use past tense for completed work."
119
+
)
120
+
}],
121
+
max_tokens: 600,
122
+
temperature: 0.4
123
+
}' > /tmp/request.json
124
+
125
+
gh api -X POST "/models/$MODEL/chat/completions" \
- "identify-activity: find repositories with pushes since 2026-02-17"
7
+
- "collect-details: fetch commits, pull-requests, and issues for active repos (pyvsc, pyucis, ivpm, scvpi, sysmesh)"
8
+
- "generate-news-item: compose a concise highlights paragraph using Copilot CLI"
9
+
10
+
copilot_cli:
11
+
command: "gh copilot chat --model gpt-5-mini-high --prompt 'Summarize fvutils org activity between 2026-02-17 and 2026-02-24: include a short high-level summary and per-repo highlights for pyvsc, pyucis, ivpm, scvpi, and sysmesh; produce a concise news item suitable for the project website.'"
12
+
note: "Run the gh copilot command above (model: gpt-5-mini-high) to reproduce the news item; redirect output to a file (e.g. news_item.md)."
13
+
14
+
news_item: |
15
+
fvutils Weekly Highlights — Week ending 24 Feb 2026
16
+
17
+
This week the fvutils organization delivered a set of maintenance and tooling improvements across core verification utilities. Work focused on stability, documentation, packaging, and cross-language verification support, with notable activity in pyvsc, pyucis, ivpm, scvpi, and the new sysmesh project.
18
+
19
+
pyvsc
20
+
- Landed nested rand_attr/coverpoint support and fixes (PR #265), resolving coverage sampling issues for nested randobj fields; added comprehensive tests and documentation updates.
21
+
- Additional commits improved recursive flattening, options handling, and test assertions.
22
+
23
+
pyucis
24
+
- Merged a documentation restructure and landed fixes to improve SQLite/XML interoperability and TUI coverage display; mapping of expression and condition coverage to XML was corrected.
25
+
- An enhancement issue to support cocotb-coverage as input/output was opened for follow-up.
26
+
27
+
ivpm
28
+
- Introduced package-lock support for reproducible workspaces, added venv isolation as the default with an opt-in flag for system-site-packages (--py-system-site-packages), and improved handling for tag-only releases.
29
+
- Several commits added tests and documentation for lockfile and packaging behavior.
30
+
31
+
scvpi
32
+
- Merged a community contribution that extended VPI support, added example designs (adder, TinyALU_SystemC), introduced pytest and CI workflows, and improved VPI object initialization and registry handling.
33
+
34
+
sysmesh
35
+
- Bootstrapped a new repository with initial content to start a runtime framework for multi-abstraction system simulations.
36
+
37
+
What’s next
38
+
- Prioritize implementing cocotb-coverage support in pyucis, continue test/CI stabilization across ivpm and scvpi, and iterate on documentation so users can adopt these fixes quickly.
0 commit comments