Skip to content

Commit

Permalink
chore: update github service
Browse files Browse the repository at this point in the history
  • Loading branch information
0xExp-po committed Sep 5, 2024
1 parent 7d1b143 commit 2453634
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 1 addition & 7 deletions dapp/src/service/GithubService.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
import axios from 'axios';

interface FormattedCommit {
message: string;
author: { name: string; html_url: string };
commit_date: string;
html_url: string;
sha: string;
}
import type { FormattedCommit } from '../types/github';

async function getCommitHistory(username: string, repo: string, perPage: number = 30, page: number = 1): Promise<{ date: string; commits: FormattedCommit[] }[]> {
try {
Expand Down
7 changes: 7 additions & 0 deletions dapp/src/types/github.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export interface FormattedCommit {
message: string;
author: { name: string; html_url: string };
commit_date: string;
html_url: string;
sha: string;
}

0 comments on commit 2453634

Please sign in to comment.