Skip to content

Commit 72c220b

Browse files
committed
docs: update documentation to clarify secondary rate limit guidelines and request limits
1 parent 8bbdf32 commit 72c220b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/copy-discussions.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@
2424
// Note: This script copies discussion content, comments, replies, polls, reactions, locked status,
2525
// and pinned status. Reactions are copied as read-only summaries.
2626
// Attachments (images and files) will not copy over - they need manual handling.
27+
//
28+
// Secondary Rate Limit Guidelines:
29+
// GitHub limits content-generating requests to avoid abuse:
30+
// - No more than 80 content-generating requests per minute
31+
// - No more than 500 content-generating requests per hour
32+
// This script includes automatic retry logic and rate limit handling to stay within these limits.
33+
// 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
2734

2835
// Configuration
2936
const INCLUDE_POLL_MERMAID_CHART = true; // Set to false to disable Mermaid pie chart for polls

0 commit comments

Comments
 (0)