Skip to content

build: Community Gardener script for end of week - #574

Merged
ayushag-nv merged 1 commit into
mainfrom
gk-cg-weekly
Aug 28, 2026
Merged

ayushag-nv merged 1 commit into
mainfrom
gk-cg-weekly

Conversation

@grahamking

@grahamking grahamking commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Show weekly GitHub activity on PRs, Issues and Comments,
with before/after numbers.

My hope is this gives us raw material, which the runner can then choose to present in an interseting way.

My favorite part is that Codex / Sol chose this variable name:

+if [[ -n $gardener ]]; then
+ printf '\nACTIVITY BY %s\n' "$gardener"
...

Example report:

Community Gardener weekly report
Repository: NVIDIA-NeMo/Switchyard
Window:     2026-08-22T15:57:00Z through 2026-08-28T15:57:00Z (UTC)

PULL REQUESTS
  Open at start of window                        34
  Open now - total                               21
  Open now - draft                                3
  Open now - ready for review                    18
  Opened during window                           32
  Closed during window (includes merged)         45
  Merged during window                           28

ISSUES
  Open at start of window                        40
  Open now                                       34
  Opened during window                           11
  Closed during window                           17

COMMENTS (BOT ACCOUNTS EXCLUDED)
  Issue and PR conversation comments             94
  Inline PR review comments                      80
  Total comments                                174

ACTIVITY BY grahamking
  PRs opened                                      4
  Authored PRs merged                             5
  PRs merged as merger                            0
  Issues opened                                   0
  Issue and PR conversation comments             56
  Inline PR review comments                      14
  Total comments written                         70
  PR reviews submitted                           29
  Commits on the default branch                   6

Assisted-by: Codex:GPT 5.6 Sol medium
Signed-off-by: Graham King [email protected]

Summary by CodeRabbit

  • New Features
    • Added a command-line report that summarizes six days of repository activity.
    • Includes pull requests, issues, comments, and optional commit activity.
    • Supports filtering activity for a specific contributor.
    • Provides validation, usage guidance, error reporting, and cleanup of temporary data.

Show weekly GitHub activity on PRs, Issues and Comments,
with before/after numbers.

My favorite part is that Codex / Sol chose this variable name:

```
+if [[ -n $gardener ]]; then
+ printf '\nACTIVITY BY %s\n' "$gardener"
+ print_stat 'PRs opened' "$my_pulls_opened"
```

Example report:
```
Community Gardener weekly report
Repository: NVIDIA-NeMo/Switchyard
Window:     2026-08-22T15:57:00Z through 2026-08-28T15:57:00Z (UTC)

PULL REQUESTS
  Open at start of window                        34
  Open now - total                               21
  Open now - draft                                3
  Open now - ready for review                    18
  Opened during window                           32
  Closed during window (includes merged)         45
  Merged during window                           28

ISSUES
  Open at start of window                        40
  Open now                                       34
  Opened during window                           11
  Closed during window                           17

COMMENTS (BOT ACCOUNTS EXCLUDED)
  Issue and PR conversation comments             94
  Inline PR review comments                      80
  Total comments                                174

ACTIVITY BY grahamking
  PRs opened                                      4
  Authored PRs merged                             5
  PRs merged as merger                            0
  Issues opened                                   0
  Issue and PR conversation comments             56
  Inline PR review comments                      14
  Total comments written                         70
  PR reviews submitted                           29
  Commits on the default branch                   6
```

Assisted-by: Codex:GPT 5.6 Sol medium
Signed-off-by: Graham King <[email protected]>
@grahamking
grahamking requested a review from a team as a code owner August 28, 2026 17:55
@coderabbitai

coderabbitai Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 66857cea-76df-4068-87f7-8567f56e2e62

📥 Commits

Reviewing files that changed from the base of the PR and between 463a62c and 52e8189.

📒 Files selected for processing (1)
  • scripts/community_gardener/github_weekly_report.sh

Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review.


Walkthrough

Changes

The pull request adds a Bash script that reports six days of GitHub activity. It supports repository-wide metrics and optional statistics for a specified GitHub user.

GitHub weekly report

Layer / File(s) Summary
Report setup and data collection
scripts/community_gardener/github_weekly_report.sh
The script validates arguments and dependencies, discovers the repository and UTC reporting window, manages temporary files, and downloads paginated GitHub data.
Metrics, user activity, and output
scripts/community_gardener/github_weekly_report.sh
The script calculates repository metrics, retrieves optional user activity, performs parallel review lookups, and prints the formatted report.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Merge Risk: ⚪ Minimal · up to 52e81

This localized reporting-script change has no actionable merge-blocking risk remaining and is merge-ready after normal checks and review.

Poem

I’m a rabbit with a report in my paws
Six days of activity, counted by cause
Pull requests and issues hop into view
Human comments join the queue
User reviews race side by side
Clean little files keep the data inside

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the main change: adding a Community Gardener script for end-of-week reporting. It is concise and related to the pull request objectives.
  • Fix all pre-merge checks with AI

Comment @coderabbitai help to get the list of available commands.

@ayushag-nv
ayushag-nv merged commit 8ebed5b into main Aug 28, 2026
17 checks passed
@ayushag-nv
ayushag-nv deleted the gk-cg-weekly branch August 28, 2026 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants