Skip to content

CI: skip README-only changes and avoid the GitHub API rate limit - #21

Merged
tuladhar merged 1 commit into
mainfrom
agent/ci-paths-and-token
Nov 20, 2026
Merged

tuladhar merged 1 commit into
mainfrom
agent/ci-paths-and-token

Conversation

@tuladhar

Copy link
Copy Markdown
Owner
  • Skip checks when they can't matter: the workflow now runs only when chapters/, examples/, scripts/, a root *.py file or the workflow itself changes. README-only PRs (like Remove editor and maintainer credit from README #20) run no checks.
  • Fix the flaky failure: github_stars.py hit GitHub's anonymous API limit (60 requests/hour per IP) on shared CI runners (Remove editor and maintainer credit from README #20's 3.11 failure). It now sends GITHUB_TOKEN when set, CI passes github.token, and the JSON chapter explains the limit.

🤖 Generated with Claude Code

- run the workflow only when chapters/, examples/, scripts/, root *.py
  or the workflow change
- github_stars.py sends GITHUB_TOKEN when set (CI passes it), and the
  JSON chapter explains the 60 requests/hour anonymous limit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tuladhar
tuladhar merged commit c7f65d3 into main Nov 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant