Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [Unreleased]

### Changed

- The `vcs` repositories in `composer.json` (development dependencies) and in the README snippet now carry `"no-api": true`, so Composer reads tags with git instead of the GitHub API. A lockless install cost about 100 API requests of the token's hourly quota, enough to exhaust it in a busy CI.

## [1.4.0] - 2026-09-25

### Added
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ authentication, so always configure a token.
```json
{
"repositories": [
{ "type": "vcs", "url": "https://github.com/SilverAssist/wp-github-updater" }
{ "type": "vcs", "url": "https://github.com/SilverAssist/wp-github-updater", "no-api": true }
],
"require": {
"silverassist/wp-github-updater": "^1.3"
Expand All @@ -57,6 +57,11 @@ authentication, so always configure a token.
Never commit a token or an `auth.json`. Without a token, Composer hits GitHub's
anonymous API limit (60 requests per hour per IP) and falls back to an SSH clone.

Keep `"no-api": true` on every `vcs` entry: it makes Composer read tags with git instead of
the GitHub API. Without it, one install without a lock file costs about 100 API requests of
the token's hourly quota (5,000, shared with the token owner's other API usage), which a busy
CI can exhaust.

3. **Refresh the lock file** if your project commits `composer.lock`: run
`composer update --lock` after adding `repositories`, so the lock file's
`content-hash` matches `composer.json`.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}
],
"repositories": [
{ "type": "vcs", "url": "https://github.com/SilverAssist/coding-standards" }
{ "type": "vcs", "url": "https://github.com/SilverAssist/coding-standards", "no-api": true }
],
"require": {
"php": ">=8.2"
Expand Down
Loading