Skip to content

Commit

Permalink
No prereleases for releases statistics, information, etc. not conside…
Browse files Browse the repository at this point in the history
…red.
  • Loading branch information
o0shojo0o committed Dec 13, 2022
1 parent 76706f1 commit 0b42ff0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion libs/gitRepo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit 0b42ff0

Please sign in to comment.