Skip to content

Conversation

Copilot
Copy link

@Copilot Copilot AI commented Sep 5, 2025

This enhancement adds repository count information to the GitHub App installation diagnostics as requested. The diagnostics now show both total repository counts across all installations and individual repository counts per organization.

Changes Made

Backend Enhancements

  • Extended the InstallationDiagnostic interface to include a repositoryCount field
  • Added repositoryCounts and totalRepositories fields to the diagnostics summary
  • Enhanced the validateInstallations method to fetch repository data for each installation using the GitHub API
  • Integrated repository fetching with the existing Octokit authentication testing logic
  • Added graceful error handling for repository fetching failures

Frontend Enhancements

  • Added a new "Total Repositories" stat to the diagnostics summary dashboard
  • Enhanced organization chips to display repository counts in the format "org-name (5)"
  • Added repository count information to the detailed installation view
  • Updated the detailed diagnostics dialog to show repository counts alongside organization names
  • Added helper methods to retrieve repository counts for display
  • Updated the welcome documentation to mention the new repository counting feature

UI Improvements

The diagnostics interface now provides:

  1. Summary Statistics: Displays total repository count across all installations
  2. Organization Overview: Shows each organization with its repository count
  3. Detailed Installation View: Includes repository count for each individual installation
  4. Enhanced Dialog: Comprehensive view with repository counts per organization

Example output:

  • Summary: "42 Total Repositories"
  • Organization list: "my-org (15)", "another-org (27)"
  • Installation details: "Repository Count: 15"

The implementation maintains backward compatibility and includes proper error handling to ensure diagnostic functionality remains stable even if repository fetching encounters issues.

Fixes #245.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • fonts.googleapis.com
    • Triggering command: ng build (dns block)
  • www.google-analytics.com
    • Triggering command: ng lint (dns block)
    • Triggering command: ng build (dns block)
    • Triggering command: ng build --configuration development --optimization=false --source-map (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copy link
Author

Copilot AI commented Sep 5, 2025

@MattG57 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs.

I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review.

@MattG57 MattG57 marked this pull request as ready for review September 5, 2025 12:37
Copy link

github-actions bot commented Sep 5, 2025

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@MattG57
Copy link
Collaborator

MattG57 commented Sep 5, 2025

There were no file changes to https://github.com/austenstone/github-value/blob/main/frontend/src/app/main/diagnostics/main-diagnostics.component.ts that would count the repositories for each org. Can you try to make those changes and add them to this PR?

@MattG57 MattG57 requested a review from Copilot September 5, 2025 12:42
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Copilot Copilot AI changed the title [WIP] [Enhancement] repository diagnostics Add repository count diagnostics for GitHub App installations Sep 5, 2025
@Copilot Copilot AI requested a review from MattG57 September 5, 2025 12:51
Copilot finished work on behalf of MattG57 September 5, 2025 12:51
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.

[Enhancement] repository diagnostics
2 participants