Uploaded image for project: 'Red Hat OpenShift Control Planes'
  1. Red Hat OpenShift Control Planes
  2. CNTRLPLANE-1977

Add weekly PR report generation capability

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • HyperShift
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • None
    • None
    • None

      Overview

      Add capability to generate comprehensive weekly PR reports for the HyperShift project that include PR metadata, Jira ticket hierarchy (Ticket → Epic → OCPSTRAT), review activity, and timing metrics.

      Motivation

      Team needs an automated way to:

      • Track weekly PR activity across openshift/hypershift and openshift-eng/ai-helpers repositories
      • Understand the connection between PRs and strategic OCPSTRAT initiatives
      • Analyze review patterns and merge timing metrics
      • Generate reports for weekly status updates

      Implementation

      Python Script

      • Fast async PR fetching using GitHub GraphQL API
      • Automatic Jira ticket extraction from PR titles/bodies
      • Jira hierarchy enrichment with Epic and OCPSTRAT linkage
      • Markdown report generation with clickable links

      Slash Command

      • /weekly-pr-report [since-date] command for easy invocation
      • Fetches PRs merged since specified date (defaults to 7 days ago)
      • Queries Jira in parallel for complete ticket hierarchy
      • Generates markdown report with PR and Jira links

      Features

      • Complete Jira hierarchy (Ticket → Epic → OCPSTRAT)
      • PR grouping by OCPSTRAT strategic initiatives
      • Timing metrics (draft→ready, ready→merge)
      • Review activity analysis
      • Clickable markdown links for all PRs and Jira tickets
      • Async parallel API calls for performance

      Files

      • contrib/repo_metrics/weekly_pr_report.py - Report generator script
      • .claude/commands/weekly-pr-report.md - Claude Code slash command
      • contrib/repo_metrics/README.md - Documentation

              asegurap1@redhat.com Antoni Segura Puimedon
              asegurap1@redhat.com Antoni Segura Puimedon
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: