Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,14 @@ jobs:
# You may remove this line if you want to manage the configuration yourself.
static_site_generator: next
- name: Restore cache
uses: actions/cache@734d9cb93d6f7610c2400b0f789eaa6f9813e271 # v3
uses: actions/cache@v4
with:
path: |
"${{ github.workspace }}/app/.next/cache"
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-

- name: Install dependencies
run: cd "${{ github.workspace }}/app" && ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
- name: Build with Next.js
Expand Down
1 change: 0 additions & 1 deletion app/src/components/RepositoriesTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,6 @@ const getComparator = (sortColumn: keyof RepositoryResult): Comparator => {
case 'mergedPullRequestsCount':
case 'openIssuesCount':
case 'openPullRequestsCount':
case 'projectsCount':
case 'watchersCount':
case 'openIssuesMedianAge':
case 'openIssuesAverageAge':
Expand Down
11 changes: 2 additions & 9 deletions backend/src/fetchers/repository.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Fetchers for repository data and metrics

import { Organization, Repository } from '@octokit/graphql-schema';
import { Fetcher } from '..';
import { RepositoryResult } from '../../../types';
Expand All @@ -15,8 +13,7 @@ export const addRepositoriesToResult: Fetcher = async (
`
query ($cursor: String, $organization: String!) {
organization(login:$organization) {
repositories(privacy:PUBLIC, first:100, isFork:false, isArchived:false, after: $cursor)
{
repositories(privacy:PUBLIC, first:100, isFork:false, isArchived:false, after: $cursor) {
pageInfo {
hasNextPage
endCursor
Expand All @@ -31,9 +28,6 @@ export const addRepositoriesToResult: Fetcher = async (
hasIssuesEnabled
hasProjectsEnabled
hasDiscussionsEnabled
projects {
totalCount
}
projectsV2 {
totalCount
}
Expand Down Expand Up @@ -89,10 +83,9 @@ export const addRepositoriesToResult: Fetcher = async (
watchersCount: repo.watchers.totalCount,
starsCount: repo.stargazerCount,
issuesEnabled: repo.hasIssuesEnabled,
projectsEnabled: repo.hasProjectsEnabled,
projectsEnabled: repo.hasProjectsEnabled, // still valid (boolean)
discussionsEnabled: repo.hasDiscussionsEnabled,
collaboratorsCount: repo.collaborators?.totalCount || 0,
projectsCount: repo.projects.totalCount,
projectsV2Count: repo.projectsV2.totalCount,
} as RepositoryResult,
};
Expand Down
4 changes: 2 additions & 2 deletions config.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
# Organization to pull metrics from
organization: 'github-community-projects'
organization: 'Falakme'

# Start date to pull metrics from
since: '2023-01-01'

# GitHub Pages path to the repository
# Used for handling relative paths for assets
basePath: '/org-metrics-dashboard'
basePath: '/metrics'
1 change: 0 additions & 1 deletion types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export interface RepositoryResult {
topics: string[];

// Counts of various things
projectsCount: number;
projectsV2Count: number;
discussionsCount: number;
forksCount: number;
Expand Down