mirror of
https://github.com/nagaoo0/HabbitGrid.git
synced 2026-01-11 23:44:55 +00:00
git fetch
This commit is contained in:
@@ -180,6 +180,7 @@ async function fetchGitHubEvents({ baseUrl = 'https://api.github.com', username,
|
|||||||
return counts;
|
return counts;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//This bullshit is still not working, but at least it is not crashing everything
|
||||||
async function fetchGiteaLike({ baseUrl, username, token }, days = 365) {
|
async function fetchGiteaLike({ baseUrl, username, token }, days = 365) {
|
||||||
let authMode = token ? 'token' : null; // 'token' | 'bearer' | null
|
let authMode = token ? 'token' : null; // 'token' | 'bearer' | null
|
||||||
const counts = {};
|
const counts = {};
|
||||||
@@ -228,6 +229,7 @@ async function fetchGiteaLike({ baseUrl, username, token }, days = 365) {
|
|||||||
return counts;
|
return counts;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//gitlab fetch should work now
|
||||||
async function fetchGitLabEvents({ baseUrl = 'https://gitlab.com', token }, days = 365) {
|
async function fetchGitLabEvents({ baseUrl = 'https://gitlab.com', token }, days = 365) {
|
||||||
const headers = { 'Accept': 'application/json', 'PRIVATE-TOKEN': token };
|
const headers = { 'Accept': 'application/json', 'PRIVATE-TOKEN': token };
|
||||||
const counts = {};
|
const counts = {};
|
||||||
|
|||||||
Reference in New Issue
Block a user