Skip to content

Commit 196c42f

Browse files
committed
Add link to throttling limits, improve summary text
1 parent b299a36 commit 196c42f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

markdown-templates/inline-pr-comment-with-diff.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Images automagically compressed by [Calibre](https://calibreapp.com)'s [image-ac
33
Compression reduced images by <strong><%- overallPercentageSaved %>%</strong>, saving <strong><%- overallBytesSaved %></strong>.
44

55
<% if(showSummary) { -%>
6-
**Displaying first 25 images: <%- totalOptimisedCount %> images processed.**
6+
**Displaying top 25 most improved images. <%- totalOptimisedCount %> images processed.**
77

88
<% } -%>
99
| Filename | Before | After | Improvement | Visual comparison |
@@ -14,4 +14,4 @@ Compression reduced images by <strong><%- overallPercentageSaved %>%</strong>, s
1414

1515
<% if(unoptimisedImages.length) { -%>
1616
<%- unoptimisedImages.length %> <%- unoptimisedImages.length > 1 ? 'images' : 'image' %> did not require optimisation.
17-
<% } %>
17+
<% } -%>

src/github-commit.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import type { ProcessedImage } from './types/ProcessedImage.d.ts'
88
const api = new Octokit()
99

1010
// Limit to 10 requests/10 seconds
11+
// See https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api?apiVersion=2022-11-28#about-secondary-rate-limits
1112
const throttle = pThrottle({
1213
limit: 10,
1314
interval: 10000

0 commit comments

Comments
 (0)