From 0b42ff07abe3a731c842fed033fb2bd878bdfb82 Mon Sep 17 00:00:00 2001 From: Dennis Rathjen Date: Tue, 13 Dec 2022 18:42:38 +0100 Subject: [PATCH] No prereleases for releases statistics, information, etc. not considered. --- README.md | 4 ++++ libs/gitRepo.js | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fc5f295..677c4e3 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,10 @@ Install dependencies with `npm install` and run dev server with `npn run dev`. ## Changelog +### 1.1.0 (2022-12-13) + +- (o0shojo0o) no prereleases for releases statistics, information, etc. not considered. + ### 1.0.1 (2022-09-05) - (o0shojo0o) fix id check diff --git a/libs/gitRepo.js b/libs/gitRepo.js index f34d7bb..e5618b0 100644 --- a/libs/gitRepo.js +++ b/libs/gitRepo.js @@ -11,7 +11,8 @@ async function getGitReleases() { const gitReleases = []; try { const res = await axios.get('https://api.github.com/repos/pixelit-project/PixelIt/releases', authConf); - const gitData = res.data; + // No prereleases + const gitData = res.data.filter(x => x.prerelease == false); log.info('GitAPIRateLimit: Limit: {rateLimitLimit}, Remaining: {rateLimitRemaining}, Used: {rateLimitUsed}, Reset at {rateLimitReset}', { rateLimitLimit: res.headers['x-ratelimit-limit'], rateLimitRemaining: res.headers['x-ratelimit-remaining'],