Skip to content

chore: add homepage and bugs URLs to package.json#1986

Open
DakshSinghDhami wants to merge 1 commit into
koajs:masterfrom
DakshSinghDhami:master
Open

chore: add homepage and bugs URLs to package.json#1986
DakshSinghDhami wants to merge 1 commit into
koajs:masterfrom
DakshSinghDhami:master

Conversation

@DakshSinghDhami

@DakshSinghDhami DakshSinghDhami commented Jul 1, 2026

Copy link
Copy Markdown

Adds homepage and bugs.url fields to package.json so users can easily find the project website and report issues.

Summary by CodeRabbit

  • Chores
    • Updated the project’s homepage link to point to the GitHub repository.
    • Added a bug-reporting link so users can more easily find where to submit issues.

@codecov

codecov Bot commented Jul 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.90%. Comparing base (52d5e8f) to head (7c80e9b).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@coderabbitai

coderabbitai Bot commented Jul 1, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

This 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)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: adding homepage and bugs URLs to package.json.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 9348682d-3b0f-4467-8127-839eefc00dce

📥 Commits

Reviewing files that changed from the base of the PR and between 52d5e8f and 7c80e9b.

📒 Files selected for processing (1)
  • package.json

Comment thread package.json
"lib"
],
"homepage": "https://koajs.com"
"homepage": "https://github.com/koajs/koa",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 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.json

Repository: 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 || true

Repository: 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.

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