Skip to content

Commit

Permalink
Merge pull request #1730 from 0x4007/feat/storage
Browse files Browse the repository at this point in the history
feat/storage
  • Loading branch information
0x4007 authored Oct 18, 2024
2 parents 1ea661d + 54564a5 commit 9b7ddd1
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 17 deletions.
1 change: 0 additions & 1 deletion devpool-issues.json

This file was deleted.

1 change: 0 additions & 1 deletion devpool-statistics.json

This file was deleted.

15 changes: 1 addition & 14 deletions helpers/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,6 @@ import { Statistics } from "../types/statistics";
import { DEVPOOL_OWNER_NAME, DEVPOOL_REPO_NAME, GitHubIssue, octokit } from "./directory/directory";
let gitChanges: Array<{ path: string; content: string }> = [];

export async function getDefaultBranch(owner: string, repo: string): Promise<string> {
try {
const { data } = await octokit.rest.repos.get({
owner,
repo,
});
return data.default_branch;
} catch (error) {
console.error(`Error fetching default branch: ${error}`);
throw error;
}
}

async function gitCommit(data: unknown, fileName: string) {
try {
gitChanges.push({
Expand All @@ -41,7 +28,7 @@ export async function gitPush() {
try {
const owner = DEVPOOL_OWNER_NAME;
const repo = DEVPOOL_REPO_NAME;
const branch = await getDefaultBranch(owner, repo);
const branch = "__STORAGE__"; // Special branch for automated data updates
const { data: refData } = await octokit.rest.git.getRef({
owner,
repo,
Expand Down
1 change: 0 additions & 1 deletion twitter-map.json

This file was deleted.

1 comment on commit 9b7ddd1

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

Lines Statements Branches Functions
Coverage: 92%
92.1% (35/38) 80% (12/15) 100% (3/3)

JUnit

Tests Skipped Failures Errors Time
8 0 💤 1 ❌ 0 🔥 7.958s ⏱️

Please sign in to comment.