chore: add homepage and bugs URLs to package.json#1986
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1986 +/- ##
=======================================
Coverage 99.90% 99.90%
=======================================
Files 9 9
Lines 2109 2109
=======================================
Hits 2107 2107
Misses 2 2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
📝 WalkthroughWalkthroughThis change updates package.json metadata. The homepage field was changed from the project website URL to the GitHub repository URL, and a new bugs object was added containing a url field pointing to the GitHub issues page. No code or exported entities were altered. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@package.json`:
- Line 72: The package metadata currently sets homepage to the GitHub
repository, but it should point to the project website instead. Update the
homepage field in package.json to use the same site referenced in the docs,
keeping bugs.url unchanged; locate this in the top-level package metadata near
the homepage property.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
| "lib" | ||
| ], | ||
| "homepage": "https://koajs.com" | ||
| "homepage": "https://github.com/koajs/koa", |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Check for repository field and full package.json structure
cat package.json | jq '{homepage, repository, bugs}'Repository: koajs/koa
Length of output: 291
🏁 Script executed:
#!/bin/bash
set -euo pipefail
printf '\n== package.json excerpt ==\n'
sed -n '60,90p' package.json
printf '\n== previous package.json homepage/repository/bugs ==\n'
git show HEAD^:package.json 2>/dev/null | python3 - <<'PY'
import json, sys
data = json.load(sys.stdin)
print(json.dumps({k: data.get(k) for k in ("homepage", "repository", "bugs")}, indent=2))
PY
printf '\n== README references to website/repo ==\n'
rg -n "koajs\.com|github.com/koajs/koa|homepage|bugs" README* .github package.jsonRepository: koajs/koa
Length of output: 1258
🏁 Script executed:
#!/bin/bash
set -euo pipefail
printf '\n== current package.json metadata ==\n'
python3 - <<'PY'
import json
with open('package.json') as f:
data = json.load(f)
print(json.dumps({k: data.get(k) for k in ("homepage", "repository", "bugs")}, indent=2))
PY
printf '\n== previous package.json metadata ==\n'
git show HEAD^:package.json | python3 - <<'PY'
import json, sys
data = json.load(sys.stdin)
print(json.dumps({k: data.get(k) for k in ("homepage", "repository", "bugs")}, indent=2))
PY
printf '\n== website/repo references ==\n'
rg -n "koajs\.com|github.com/koajs/koa|homepage|bugs" README* .github package.json || trueRepository: koajs/koa
Length of output: 1123
🏁 Script executed:
#!/bin/bash
set -euo pipefail
printf '\n== package.json top-level metadata ==\n'
python3 - <<'PY'
import json
with open('package.json') as f:
data = json.load(f)
keys = ["name", "homepage", "repository", "bugs", "author", "license"]
print(json.dumps({k: data.get(k) for k in keys}, indent=2))
PY
printf '\n== README / docs references to project website ==\n'
rg -n "koajs\.com|koa\.js|github.com/koajs/koa|homepage|bugs" README* docs* .github* package.json || true
printf '\n== package.json lines with website-related fields ==\n'
nl -ba package.json | sed -n '65,80p'Repository: koajs/koa
Length of output: 1681
homepage should point to the project website, not the GitHub repo. bugs.url is fine, but homepage now sends npm users to https://github.com/koajs/koa instead of the site referenced in the docs (https://koajs.com).
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@package.json` at line 72, The package metadata currently sets homepage to the
GitHub repository, but it should point to the project website instead. Update
the homepage field in package.json to use the same site referenced in the docs,
keeping bugs.url unchanged; locate this in the top-level package metadata near
the homepage property.
Adds
homepageandbugs.urlfields to package.json so users can easily find the project website and report issues.Summary by CodeRabbit