Skip to content

Conversation

@gamebits
Copy link
Contributor

@gamebits gamebits commented Aug 12, 2025

Adds a wp-subdomain prompt to the github:add-checklist command that can then be used to parse launch checklists found in the special-projects-checklists repo.

Specifically, we want to avoid adding or testing for a www sub-subdomain in the launch-site.md checklist, since doing so is an unsupported anti-pattern: pMz3w-lWV-p2

Summary by CodeRabbit

  • New Features
    • Added a new checklist condition for WordPress.com/WordPress.org subdomains.
    • During setup, you may be asked if the final URL will use a WordPress.com or WordPress.org subdomain.
    • Checklist sections will automatically show or hide based on your answer, tailoring guidance to your site’s configuration.

Adds a `wp-subdomain` prompt to the `github:add-checklist` command that can then be used to parse launch checklists found in the `special-projects-checklists` repo.

Specifically, we want to avoid adding of testing for a `www` sub-subdomain in the `launch-site.md` [checklist](https://github.com/a8cteam51/special-projects-checklists/blob/trunk/checklists/launch/launch-site.md), since doing so is an unsupported anti-pattern:

pMz3w-lWV-p2
@gamebits gamebits requested review from ahegyes and nate-allen August 12, 2025 00:52
@gamebits gamebits self-assigned this Aug 12, 2025
@gamebits gamebits added the enhancement New feature or request label Aug 12, 2025
@coderabbitai
Copy link

coderabbitai bot commented Aug 12, 2025

Walkthrough

Adds a new conditional tag key 'wp-subdomain' to GitHub_Checklist_Add’s CONDITIONAL_TAGS. This enables checklists to gate sections based on whether the final URL will be a WordPress.com or WordPress.org subdomain. When present in fetched checklists, initialization will prompt for this tag and store its boolean value. Checklist processing will recognize the tag and include or exclude tagged sections accordingly. No other control flow, error handling, or public/exported declarations are changed.

✨ Finishing Touches
  • 📝 Generate Docstrings

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

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

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (2)
commands/GitHub_Checklist_Add.php (2)

72-75: Nit: Refine prompt copy for clarity and add examples

Suggest clarifying the user prompt intent and including examples. This reduces ambiguity around “final URL” and hints at the “no www” context without over-explaining.

-        'wp-subdomain' => array(
-            'question'    => 'Will the final URL be a subdomain of WordPress.com or WordPress.org?',
-            'description' => 'The site uses a subdomain of WordPress.com or WordPress.org.',
-        ),
+        'wp-subdomain' => array(
+            'question'    => 'Will the final production URL be a WordPress.com or WordPress.org subdomain (e.g., example.wordpress.com, make.wordpress.org)?',
+            'description' => 'The site uses a WordPress.com or WordPress.org subdomain.',
+        ),

72-75: Verify special-projects-checklists for wp-subdomain gating

The automated clone of a8cteam51/special-projects-checklists failed (repo not found), so please manually confirm that your new wp-subdomain tag is being applied in the launch-site checklist to skip “www” validations. Specifically:

• In checklists/launch/launch-site.md, wrap any “www” checks with either

  • [not:wp-subdomain] … [/not:wp-subdomain] (for subdomain sites), or
  • [wp-subdomain] … [/wp-subdomain] (if you only want to run the section when on a WordPress subdomain)

If those gates are missing, open a follow-up PR against special-projects-checklists to add them around the “www” sections.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b9f4efa and 0d21700.

📒 Files selected for processing (1)
  • commands/GitHub_Checklist_Add.php (1 hunks)
🔇 Additional comments (1)
commands/GitHub_Checklist_Add.php (1)

72-75: LGTM: New wp-subdomain conditional tag integrates cleanly with prompts and parsing

  • Consistent with existing CONDITIONAL_TAGS structure.
  • Will be auto-prompted during initialize() when present in fetched checklists.
  • Parser already supports simple tags and their negations ([tag] / [not:tag]), so no additional logic needed.

@gamebits
Copy link
Contributor Author

Let's pause on reviewing/merging this, as I think the rule may more broadly be "no sub-subdomains", regardless of whether the FQDN is an a8c property. Checking here: p1754960067684529-slack-C01M1J49Q75

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants