When a development team works with multiple GitHub repositories, keeping track of pull requests, issues, reviews, and ongoing development tasks can become difficult. GitHub already provides repository-level views, but team members often need to move between repositories to understand what is happening across the entire project.
For a small team, this can create unnecessary overhead. A developer might need to check several pull request pages to find pending reviews, while a team lead may need to inspect multiple issue lists to understand which tasks are still open. Important updates can easily get buried among other repository activities.
A simple GitHub repository board can bring this information into one place. It can display repositories, open pull requests, unresolved issues, review activity, and recent updates without requiring team members to visit every repository separately.
In this article, we will build a practical repository board using GitHub CLI, GitHub REST APIs, and a small ASP.NET Core application. We will explore how to retrieve repository information, organize pull requests and issues, handle pagination, manage API permissions, and keep the board updated without creating unnecessary complexity.
Understanding the Repository Board
Before writing code, it is important to decide what information the board should display.
A small development team usually needs visibility into a few important areas:
Board section | Information displayed |
|---|
Repositories | Repository name, description, and default branch |
Open pull requests | Title, author, status, and creation time |
Pending reviews | Pull requests waiting for review |
Open issues | Issue title, labels, and assignee |
Recent activity | Recent commits and repository updates |
CI status | Latest workflow or check results |
The objective is not to recreate the entire GitHub interface. The board should focus on information that helps the team understand current development activity.
For example, a team lead might open the board in the morning and immediately identify three pull requests waiting for review, two unresolved bugs, and a repository where the latest build failed.
A useful first version should focus on read-only information. Creating issues, merging pull requests, assigning developers, and modifying repository settings can be added later if the team actually needs those operations.
Choosing the Right GitHub Integration
There are several ways to retrieve GitHub repository information.
For a developer working from a terminal, GitHub CLI is convenient because it already handles authentication and provides commands for repositories, issues, pull requests, and workflow runs.
For an application that needs to refresh information automatically, the GitHub REST API is usually a better integration point. It provides structured responses that can be stored, processed, and displayed through a custom interface.
GitHub GraphQL API is another option when the application needs to retrieve several related objects in a single query. However, the REST API is often easier to understand for a small repository board.
The following table compares the main options:
Integration | Advantages | Considerations |
|---|
GitHub CLI | Simple commands and convenient local authentication | Better suited to scripts and developer workflows |
REST API | Straightforward HTTP integration and structured responses | Requires pagination and rate-limit handling |
GraphQL API | Flexible selection of related data | Queries and response handling require more planning |
Webhooks | Notifications when selected events occur | Requires a publicly accessible receiving endpoint |
For this example, we will use GitHub CLI for initial exploration and the REST API for the application implementation.
Exploring Repository Information With GitHub CLI
GitHub CLI makes it easy to inspect repository information without writing an application.
First, authenticate with GitHub:
gh auth login
Check the authentication status:
gh auth status
To display information about the current repository, run:
gh repo view
You can also request JSON output and select specific properties:
gh repo view OWNER/REPO \
--json name,description,url,defaultBranchRef
This is useful when preparing a local script that collects repository details.
To list open pull requests:
gh pr list \
--repo OWNER/REPO \
--state open \
--limit 100
To list open issues:
gh issue list \
--repo OWNER/REPO \
--state open \
--limit 100
You can also retrieve workflow runs:
gh run list \
--repo OWNER/REPO \
--limit 20
These commands provide a quick way to understand the information available from GitHub before building the board.
However, a script that needs to collect information from many repositories will eventually become difficult to maintain. An application can centralize authentication, caching, error handling, and data processing.
Designing the Application Structure
Let's create a small ASP.NET Core application that retrieves repository information and exposes it through dashboard endpoints.
The application can be divided into the following components:
GitHub API client handles authentication and HTTP requests.
Repository service retrieves repositories belonging to the configured organization.
Pull request service retrieves open pull requests.
Issue service retrieves unresolved issues.
Dashboard service combines information into a single response.
Dashboard API exposes the data to the frontend.
A possible project structure is:
GitHubRepositoryBoard/
|
+-- Controllers/
| +-- DashboardController.cs
|
+-- Models/
| +-- RepositoryModel.cs
| +-- PullRequestModel.cs
| +-- IssueModel.cs
| +-- DashboardModel.cs
|
+-- Services/
| +-- GitHubApiClient.cs
| +-- RepositoryService.cs
| +-- PullRequestService.cs
| +-- IssueService.cs
| +-- DashboardService.cs
|
+-- Program.cs
+-- appsettings.json
Keeping API communication separate from dashboard processing makes the application easier to test and maintain.
The GitHub API client should be responsible for HTTP communication. The dashboard service should not need to understand authentication headers, pagination links, or response parsing.
Configuring GitHub Authentication
The application needs permission to read repository information.
For a team application, a GitHub App is generally preferable to a developer's personal access token. A GitHub App can be installed on selected repositories and granted only the permissions required by the dashboard.
For a read-only repository board, typical permissions may include:
Metadata: Read access to repository metadata.
Pull requests: Read access to pull request information.
Issues: Read access to issue information.
Actions: Read access to workflow information, if CI status is displayed.
The exact permissions depend on the endpoints and resources used by the application.
A GitHub App uses a private key to generate a signed JSON Web Token. The application exchanges that JWT for an installation access token, which is then used to call GitHub APIs.
Installation tokens are short-lived, so the application should generate or refresh them when required rather than storing one permanently.
For a simpler local prototype, a fine-grained personal access token can be used with the minimum required repository permissions. Avoid putting tokens directly into source code or committing them to Git.
For local development, use environment variables or a development secrets provider. In production, use a secure secrets manager.
Creating the GitHub API Client
The next step is creating a reusable HTTP client.
The following example assumes that an installation access token has already been obtained and is supplied through configuration or a secure token provider.
using System.Net.Http.Headers;
public sealed class GitHubApiClient
{
private readonly HttpClient _httpClient;
public GitHubApiClient(HttpClient httpClient)
{
_httpClient = httpClient;
_httpClient.BaseAddress =
new Uri("https://api.github.com/");
_httpClient.DefaultRequestHeaders.Accept.Add(
new MediaTypeWithQualityHeaderValue(
"application/vnd.github+json"));
_httpClient.DefaultRequestHeaders.UserAgent.ParseAdd(
"GitHubRepositoryBoard");
}
public async Task<T?> GetAsync<T>(
string endpoint,
string accessToken,
CancellationToken cancellationToken)
{
using var request = new HttpRequestMessage(
HttpMethod.Get,
endpoint);
request.Headers.Authorization =
new AuthenticationHeaderValue(
"Bearer",
accessToken);
using var response = await _httpClient.SendAsync(
request,
HttpCompletionOption.ResponseHeadersRead,
cancellationToken);
response.EnsureSuccessStatusCode();
return await response.Content.ReadFromJsonAsync<T>(
cancellationToken: cancellationToken);
}
}
The client accepts an access token for each request. This makes it easier to integrate a token provider later and avoids assuming that one token will remain valid throughout the application's lifetime.
Register the client in Program.cs:
builder.Services.AddHttpClient<GitHubApiClient>();
In a larger application, you should also add centralized handling for rate limits, transient HTTP failures, token refresh, and structured logging.
Retrieving Repositories From GitHub
GitHub provides an endpoint for listing repositories belonging to an organization:
GET /orgs/{org}/repos
The application can retrieve repository metadata and convert it into a model used by the dashboard.
A simplified model might look like this:
public sealed class RepositoryModel
{
public long Id { get; set; }
public string Name { get; set; } = string.Empty;
public string FullName { get; set; } = string.Empty;
public string? Description { get; set; }
public string HtmlUrl { get; set; } = string.Empty;
public string DefaultBranch { get; set; } = string.Empty;
public bool IsPrivate { get; set; }
public DateTimeOffset? UpdatedAt { get; set; }
}
The repository service can call the API and map the response into this model.
public sealed class RepositoryService
{
private readonly GitHubApiClient _client;
private readonly IGitHubTokenProvider _tokenProvider;
public RepositoryService(
GitHubApiClient client,
IGitHubTokenProvider tokenProvider)
{
_client = client;
_tokenProvider = tokenProvider;
}
public async Task<RepositoryModel[]?> GetRepositoriesAsync(
string organization,
CancellationToken cancellationToken)
{
string token = await _tokenProvider.GetTokenAsync(
cancellationToken);
return await _client.GetAsync<RepositoryModel[]>(
$"orgs/{organization}/repos?per_page=100",
token,
cancellationToken);
}
}
This example illustrates the service boundary, but a production implementation must handle pagination. The per_page parameter controls the number of items returned in one response, up to the API's supported page size. It does not guarantee that all repositories are returned in a single request.
The same consideration applies to pull requests and issues.
Retrieving Open Pull Requests
The GitHub REST API provides an endpoint for listing pull requests:
GET /repos/{owner}/{repo}/pulls
You can filter the response by state and sort order.
For the repository board, the application should initially retrieve open pull requests:
GET /repos/OWNER/REPO/pulls?state=open&per_page=100
A pull request model can contain the information required by the board:
public sealed class PullRequestModel
{
public int Number { get; set; }
public string Title { get; set; } = string.Empty;
public string State { get; set; } = string.Empty;
public string HtmlUrl { get; set; } = string.Empty;
public string Author { get; set; } = string.Empty;
public DateTimeOffset CreatedAt { get; set; }
public DateTimeOffset UpdatedAt { get; set; }
public bool Draft { get; set; }
public string Repository { get; set; } = string.Empty;
}
The dashboard can display these records in a table:
Pull request | Author | Status |
|---|
Improve authentication flow | Alex | Open |
Fix database timeout handling | Priya | Draft |
Add notification preferences | Daniel | Open |
The values above are illustrative. The actual records should come from the GitHub API.
For a team that reviews many pull requests, you may also want to display review requests and approval status. This information can be retrieved using the appropriate pull request and review endpoints.
Do not assume that an open pull request is automatically waiting for review. It may already have approvals or be waiting for additional changes.
Retrieving Open Issues
Issues are another important part of the board.
Use the following REST API endpoint:
GET /repos/{owner}/{repo}/issues?state=open&per_page=100
One detail is important: GitHub's issues endpoint can return both regular issues and pull requests because pull requests are also represented in the issues API.
If the board needs only regular issues, exclude objects that contain the pull_request property.
For example, the application can use the following model:
public sealed class IssueModel
{
public int Number { get; set; }
public string Title { get; set; } = string.Empty;
public string State { get; set; } = string.Empty;
public string HtmlUrl { get; set; } = string.Empty;
public string Author { get; set; } = string.Empty;
public DateTimeOffset CreatedAt { get; set; }
public string[] Labels { get; set; } = [];
public string? Assignee { get; set; }
}
For a useful team board, organize issues by labels such as bug, enhancement, documentation, and support.
This allows developers to understand the type of work without opening every issue.
Handling Pagination Correctly
Pagination is one of the most important details when integrating with GitHub APIs.
A request using per_page=100 returns up to 100 records. If the organization has more repositories or a repository has more than 100 matching issues, additional pages are required.
GitHub REST API responses provide pagination information through the Link response header when additional pages are available.
A simple application should continue requesting pages until no next page remains.
For example, the requests might look like this:
GET /orgs/OWNER/repos?per_page=100&page=1
GET /orgs/OWNER/repos?per_page=100&page=2
GET /orgs/OWNER/repos?per_page=100&page=3
Avoid assuming that the second page always exists or that every page contains the same number of records.
For a production API client, implement pagination using the returned Link header rather than calculating page numbers from assumptions about the dataset.
Also consider how the application behaves when a repository is added or removed while pagination is in progress. For a small board, a periodic refresh and a later reconciliation are often sufficient.
Combining Repository Data Into a Dashboard
Once repository, pull request, and issue services are available, the dashboard service can combine the information.
A simplified response model could look like this:
public sealed class DashboardModel
{
public int RepositoryCount { get; set; }
public int OpenPullRequestCount { get; set; }
public int OpenIssueCount { get; set; }
public List<RepositoryModel> Repositories { get; set; } = [];
public List<PullRequestModel> PullRequests { get; set; } = [];
public List<IssueModel> Issues { get; set; } = [];
public DateTimeOffset LastUpdatedAt { get; set; }
}
The dashboard service calls the individual services and prepares one response for the frontend.
For example, it can calculate the total number of repositories, open pull requests, and open issues.
When collecting information from several repositories, avoid sending a large number of API requests simultaneously without limits. Use controlled concurrency so the application does not overwhelm GitHub APIs or its own HTTP connection resources.
For larger organizations, cache repository information and refresh only data that has changed.
Exposing the Dashboard Through ASP.NET Core
The application can expose a simple endpoint that returns the combined dashboard information.
app.MapGet(
"/api/dashboard",
async (
DashboardService dashboardService,
CancellationToken cancellationToken) =>
{
var dashboard = await dashboardService.GetDashboardAsync(
cancellationToken);
return Results.Ok(dashboard);
});
The frontend can call this endpoint and display the data in cards, tables, or repository-specific sections.
A useful first screen might contain three summary cards:
Total repositories
Open pull requests
Open issues
Below the summary, the board can show a repository list and a combined pull request table.
Add filters for repository, author, label, and status when the team needs them. Avoid building too many filters before understanding how developers actually use the board.
Keeping the Board Updated
A repository board should not display outdated information.
There are two common ways to refresh its data.
The first is periodic polling. The application retrieves the latest information from GitHub at a controlled interval and updates its cached data.
This approach is easy to implement and can be sufficient for a small team.
The second approach uses GitHub webhooks. GitHub sends notifications when selected repository events occur, allowing the application to update affected records without repeatedly retrieving every resource.
For example, a pull request webhook can trigger an update to the corresponding pull request record. An issue webhook can update the issue section.
A practical design often combines both approaches:
Webhooks provide timely updates.
Scheduled reconciliation corrects missed or outdated information.
Cached dashboard data reduces repeated GitHub API calls.
If the frontend needs immediate updates, the backend can notify connected browsers using Server-Sent Events or WebSockets after the dashboard data has been updated.
Managing API Rate Limits and Failures
GitHub API requests are subject to rate limits. A dashboard that refreshes every repository every few seconds can consume its available request allowance quickly.
Use caching to avoid retrieving unchanged information repeatedly. Store the last successful refresh time and avoid refreshing the same repository unnecessarily.
GitHub also supports conditional requests using ETag and Last-Modified headers for supported endpoints. These can help reduce unnecessary data transfer and, when the response is not modified, avoid consuming primary rate-limit quota for the conditional request.
The application should inspect rate-limit response headers and handle HTTP 403 and 429 responses appropriately. A 403 response can have different causes, so inspect the response headers and body rather than assuming every 403 means the rate limit has been exceeded.
For temporary failures, use bounded retries with exponential backoff and respect the Retry-After header when provided.
Do not retry authorization failures indefinitely. If the token lacks permission or has expired, the application should report the problem and refresh or correct the authentication configuration.
Security Considerations
A repository board may display private repository information, issue descriptions, developer names, and internal project activity.
Protect the dashboard with authentication and authorization. A user should only see repositories and information they are permitted to access.
Use a GitHub App with narrowly scoped permissions instead of granting broad access to an entire organization unnecessarily.
Keep installation private keys and access tokens in a secure secrets manager. Never include them in frontend JavaScript, browser storage, application logs, or source control.
Also consider repository access changes. If a GitHub App is removed from a repository or its permissions are reduced, the dashboard should stop displaying information that the installation can no longer access.
For teams working across multiple organizations, maintain a clear relationship between the authenticated dashboard user and the GitHub installations or repositories they are allowed to view.
Common Mistakes to Avoid
One common mistake is treating a single API response as the complete repository list. Always account for pagination.
Another mistake is using the issues endpoint without filtering out pull requests. This can cause pull requests to appear in the issue section of the board.
It is also easy to refresh every repository too frequently. This creates unnecessary API traffic and can cause rate-limit problems.
A further mistake is treating webhook notifications as the only source of truth. Webhooks can fail to reach an application during an outage, so periodic reconciliation is important.
Finally, avoid building a dashboard that duplicates every GitHub feature. A small team usually benefits more from a focused board that highlights pending work and important changes than from another full project-management system.
Summary
A GitHub repository board helps small development teams understand activity across multiple repositories from one place. By combining repository metadata, open pull requests, issues, and workflow information, developers can quickly identify pending work and review activity.
GitHub CLI is useful for exploring repository data and building local scripts, while the REST API provides a practical foundation for an ASP.NET Core dashboard. A well-structured application separates API communication, data processing, and dashboard presentation.
For production use, handle pagination, authentication, rate limits, caching, and repository permissions carefully. Webhooks can provide timely updates, while scheduled reconciliation helps recover from missed events.
Start with a read-only board that solves the team's most common visibility problems. Add more features only when they make the development workflow easier to understand and manage.
Join the conversation! Your thoughts help the community grow.