Skip to content

Main#1

Merged
LongCoderX merged 8 commits intomasterfrom
main
Apr 6, 2026
Merged

Main#1
LongCoderX merged 8 commits intomasterfrom
main

Conversation

@LongCoderX
Copy link
Copy Markdown
Owner

@LongCoderX LongCoderX commented Apr 6, 2026

Summary by Sourcery

Improve SEO, documentation, and automation for the AI Coding Plan comparison site.

New Features:

  • Add structured FAQPage JSON-LD, static noscript SEO content, sitemap, and robots directives to enhance search engine indexing.
  • Introduce a GitHub Actions workflow to build and deploy the site to GitHub Pages on pushes to main.

Enhancements:

  • Update page title, meta description, and keywords to better target domestic Coding Plan comparison queries.
  • Expand README with new supported platforms and models, detailed referral explanations, and additional usage notes.
  • Parameterize README generation script with environment-based online URL and footer metadata.

CI:

  • Add GitHub Actions workflow to generate README and deploy the site to GitHub Pages.

Deployment:

  • Automate GitHub Pages deployment with artifacts built from the repository contents.

Documentation:

  • Refresh README platform list, supported models, rating notes, pricing table, and referral program explanations to reflect current offerings.

@sourcery-ai
Copy link
Copy Markdown

sourcery-ai Bot commented Apr 6, 2026

Reviewer's Guide

Adds SEO-focused enhancements (metadata, FAQ schema, noscript content, sitemap, robots placeholder), expands documented platform/model coverage and referral explanations in README, parameterizes README generation script, and introduces a GitHub Actions workflow to auto-deploy the site to GitHub Pages.

Flow diagram for README generation using environment variables

graph TD
  Start[Start generate-readme.js] --> LoadEnv[Load environment variables]

  LoadEnv --> CheckOnlineUrl{ONLINE_URL set?}
  CheckOnlineUrl -- Yes --> UseEnvOnlineUrl[Use ONLINE_URL from env]
  CheckOnlineUrl -- No --> UseDefaultOnlineUrl[Use default https://longcoderx.github.io/coding-plan-page/]

  UseEnvOnlineUrl --> SetOnlineUrlConst[Set ONLINE_URL constant]
  UseDefaultOnlineUrl --> SetOnlineUrlConst

  SetOnlineUrlConst --> CheckFooter{FOOTER set?}
  CheckFooter -- Yes --> UseEnvFooter[Use FOOTER from env]
  CheckFooter -- No --> UseDefaultFooter[Use default 由 LongCoderX 维护]

  UseEnvFooter --> SetFooterConst[Set FOOTER constant]
  UseDefaultFooter --> SetFooterConst

  SetFooterConst --> ReadConfig[Read config.json and plans.json]
  ReadConfig --> GenerateReadme[Generate README.md content]
  GenerateReadme --> End[Write README.md file]
Loading

File-Level Changes

Change Details Files
Improve HTML SEO metadata and add structured data and crawlable static content.
  • Update page <title>, meta description, and keywords to target domestic Coding Plan comparison keywords.
  • Add JSON-LD FAQPage schema with common Coding Plan questions and answers for rich search results.
  • Inject a noscript SEO content section with detailed static descriptions of supported platforms, comparison dimensions, recommendations, referral explanation, and selection guidance.
index.html
Expand README content for platforms/models and clarify referral/usage notes and footer attribution.
  • Update platform list from nine to twelve platforms, including new providers (摩尔线程, 快手·KwaiKAT, 无问芯穹).
  • Extend supported models list with GLM-4.7, KAT-Coder-Pro V1, DeepSeek-V3.2 etc.
  • Add scoring notes for new platforms and expand pricing/comparison table with new plans and updated invite links and descriptions.
  • Clarify that links use official referral codes and summarize main rebate policies plus caveats about metering units and quotas.
  • Append a maintainer footer section in the README.
README.md
Prepare README generation script for environment-based configuration.
  • Introduce ONLINE_URL and FOOTER constants that read from environment variables with sensible defaults.
  • Leave rest of script behavior unchanged for now (data reading still uses config.json and plans.json).
scripts/generate-readme.js
Automate deployment to GitHub Pages via GitHub Actions.
  • Add a deploy workflow triggered on pushes to main and manual dispatch.
  • In build job, check out repo, run README generator with ONLINE_URL sourced from repository variables or default URL, configure Pages, and upload the repository as an artifact.
  • In deploy job, publish the uploaded artifact to GitHub Pages using actions/deploy-pages, exposing the final page URL via environment.
.github/workflows/deploy.yml
Add basic search engine discovery files.
  • Add a static sitemap.xml pointing to the main site URL with weekly change frequency.
  • Introduce an empty robots.txt placeholder file (content not yet defined).
sitemap.xml
robots.txt

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

Hey - I've found 2 issues, and left some high level feedback:

  • In scripts/generate-readme.js, the newly added ONLINE_URL and FOOTER constants are currently unused; either wire them into the README generation or remove them to avoid dead code.
  • The sitemap.xml has a hardcoded lastmod date and absolute URL, which will go stale over time; consider generating this file (or at least the date/loc) dynamically in the CI workflow so it stays in sync with deployments and ONLINE_URL.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- In `scripts/generate-readme.js`, the newly added `ONLINE_URL` and `FOOTER` constants are currently unused; either wire them into the README generation or remove them to avoid dead code.
- The `sitemap.xml` has a hardcoded `lastmod` date and absolute URL, which will go stale over time; consider generating this file (or at least the date/loc) dynamically in the CI workflow so it stays in sync with deployments and `ONLINE_URL`.

## Individual Comments

### Comment 1
<location path=".github/workflows/deploy.yml" line_range="20-27" />
<code_context>
+      - name: Checkout
+        uses: actions/checkout@v4
+
+      - name: Generate README
+        run: node scripts/generate-readme.js
+        env:
+          ONLINE_URL: ${{ vars.PAGES_URL || 'https://longcoderx.github.io/coding-plan-page/' }}
</code_context>
<issue_to_address>
**suggestion (bug_risk):** Add an explicit Node setup step to avoid relying on the runner's default Node installation.

This step runs `node scripts/generate-readme.js` without guaranteeing a specific Node version. To avoid future breakage from runner changes or version drift, add an `actions/setup-node@v4` step with an explicit version (e.g. `node-version: 20`) before running this script.

```suggestion
    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Setup Node
        uses: actions/setup-node@v4
        with:
          node-version: 20

      - name: Generate README
        run: node scripts/generate-readme.js
        env:
          ONLINE_URL: ${{ vars.PAGES_URL || 'https://longcoderx.github.io/coding-plan-page/' }}
```
</issue_to_address>

### Comment 2
<location path="sitemap.xml" line_range="5" />
<code_context>
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
+  <url>
+    <loc>https://longcoderx.github.io/coding-plan-page/</loc>
+    <lastmod>2026-04-06</lastmod>
+    <changefreq>weekly</changefreq>
+    <priority>1.0</priority>
</code_context>
<issue_to_address>
**issue (bug_risk):** Avoid hardcoding a future and non-updating `lastmod` date in the sitemap.

Using a fixed future `lastmod` date means it will never reflect real content changes, which can reduce the sitemap’s value to crawlers. Consider either updating this value whenever the file changes, or generating the sitemap dynamically (e.g., in the deploy workflow) so `lastmod` matches the actual deployment time.
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Comment on lines +20 to +27
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Generate README
run: node scripts/generate-readme.js
env:
ONLINE_URL: ${{ vars.PAGES_URL || 'https://longcoderx.github.io/coding-plan-page/' }}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

suggestion (bug_risk): Add an explicit Node setup step to avoid relying on the runner's default Node installation.

This step runs node scripts/generate-readme.js without guaranteeing a specific Node version. To avoid future breakage from runner changes or version drift, add an actions/setup-node@v4 step with an explicit version (e.g. node-version: 20) before running this script.

Suggested change
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Generate README
run: node scripts/generate-readme.js
env:
ONLINE_URL: ${{ vars.PAGES_URL || 'https://longcoderx.github.io/coding-plan-page/' }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Generate README
run: node scripts/generate-readme.js
env:
ONLINE_URL: ${{ vars.PAGES_URL || 'https://longcoderx.github.io/coding-plan-page/' }}

Comment thread sitemap.xml
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://longcoderx.github.io/coding-plan-page/</loc>
<lastmod>2026-04-06</lastmod>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

issue (bug_risk): Avoid hardcoding a future and non-updating lastmod date in the sitemap.

Using a fixed future lastmod date means it will never reflect real content changes, which can reduce the sitemap’s value to crawlers. Consider either updating this value whenever the file changes, or generating the sitemap dynamically (e.g., in the deploy workflow) so lastmod matches the actual deployment time.

@LongCoderX LongCoderX merged commit cbd869c into master Apr 6, 2026
5 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