Skip to content

Feat: update facts on GitHub sites and functions#10593

Merged
Meldiron merged 6 commits intomainfrom
feat-SER-193-Update-facts-on-github-sites-and-functions
Nov 6, 2025
Merged

Feat: update facts on GitHub sites and functions#10593
Meldiron merged 6 commits intomainfrom
feat-SER-193-Update-facts-on-github-sites-and-functions

Conversation

@HarshMN2345
Copy link
Copy Markdown
Member

What does this PR do?

(Provide a description of what this PR does and why it's needed.)

Test Plan

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Screenshots may also be helpful.)

Related PRs and Issues

  • (Related PR or issue)

Checklist

  • Have you read the Contributing Guidelines on issues?
  • If the PR includes a change to an API's metadata (desc, label, params, etc.), does it also include updated API specs and example docs?

@HarshMN2345 HarshMN2345 requested a review from Meldiron October 2, 2025 17:45
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Oct 2, 2025

📝 Walkthrough

Walkthrough

The change updates src/Appwrite/Vcs/Comment.php by replacing the contents of the protected $tips array with a larger set of tip strings. No methods, signatures, control flow, or error handling were modified. The mechanism that selects a random tip remains unchanged.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Pre-merge checks and finishing touches

❌ Failed checks (2 warnings)
Check name Status Explanation Resolution
Title Check ⚠️ Warning The title “Feat: update facts on GitHub sites and functions” does not accurately reflect the changeset, which only updates the tips array in the Appwrite Vcs Comment class and has nothing to do with GitHub sites or functions. Please update the title to concisely describe the actual change, for example “Feat: update inline tips in Vcs Comment class,” so it aligns with the changeset.
Description Check ⚠️ Warning The pull request description consists solely of the default contribution template without any specific details about the changes made, so it does not explain or relate to the update to the tips array. Please provide a meaningful description of the changes, including what was updated in the tips array, why the update was necessary, and any relevant test plan or related issues.
✅ Passed checks (1 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat-SER-193-Update-facts-on-github-sites-and-functions

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 and usage tips.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Oct 2, 2025

Security Scan Results for PR

Docker Image Scan Results

Package Version Vulnerability Severity
binutils 2.44-r2 CVE-2025-5244 HIGH
binutils 2.44-r2 CVE-2025-5245 HIGH
libxml2 2.13.8-r0 CVE-2025-49794 CRITICAL
libxml2 2.13.8-r0 CVE-2025-49796 CRITICAL
libxml2 2.13.8-r0 CVE-2025-49795 HIGH
libxml2 2.13.8-r0 CVE-2025-6021 HIGH
pcre2 10.43-r1 CVE-2025-58050 CRITICAL
golang.org/x/crypto v0.31.0 CVE-2025-22869 HIGH
golang.org/x/oauth2 v0.24.0 CVE-2025-22868 HIGH
stdlib 1.22.10 CVE-2025-47907 HIGH

Source Code Scan Results

🎉 No vulnerabilities found!

Copy link
Copy Markdown
Contributor

@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: 1

🧹 Nitpick comments (2)
src/Appwrite/Vcs/Comment.php (2)

12-12: Consider removing the TODO comment.

The TODO comment says "Add more tips", but this PR significantly expands the tips array from 3 to 31 entries. If the goal of adding more tips has been achieved, consider removing or updating this TODO.

Apply this diff if the TODO is no longer relevant:

-    // TODO: Add more tips
     protected array $tips = [

14-15: Remove trailing whitespace and adjust metric phrasing.

  • Delete trailing whitespace in src/Appwrite/Vcs/Comment.php to fix the pipeline failure.
  • Change “50K GitHub stars” to “over 50K GitHub stars” (currently ~52.9K).
  • Update “24K passionate developers” to “over 24K developers” or verify and adjust the exact Discord member count.
📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e2f4d38 and 61a8f58.

📒 Files selected for processing (1)
  • src/Appwrite/Vcs/Comment.php (1 hunks)
🧰 Additional context used
🪛 GitHub Actions: Linter
src/Appwrite/Vcs/Comment.php

[error] 1-1: Pint: no_trailing_whitespace detected. Remove trailing whitespace in this file. (no_trailing_whitespace)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: Setup & Build Appwrite Image
  • GitHub Check: Setup & Build Appwrite Image
  • GitHub Check: scan

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@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: 1

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 61a8f58 and 64c3b7a.

📒 Files selected for processing (1)
  • src/Appwrite/Vcs/Comment.php (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (20)
  • GitHub Check: E2E Service Test (Messaging)
  • GitHub Check: E2E Service Test (Migrations)
  • GitHub Check: E2E Service Test (Sites)
  • GitHub Check: E2E Service Test (Users)
  • GitHub Check: E2E Service Test (Health)
  • GitHub Check: E2E Service Test (Projects)
  • GitHub Check: E2E Service Test (Realtime)
  • GitHub Check: E2E Service Test (Storage)
  • GitHub Check: E2E Service Test (Proxy)
  • GitHub Check: E2E Service Test (Avatars)
  • GitHub Check: E2E Service Test (Console)
  • GitHub Check: E2E Service Test (Functions)
  • GitHub Check: E2E Service Test (GraphQL)
  • GitHub Check: E2E Service Test (Databases)
  • GitHub Check: E2E Service Test (Account)
  • GitHub Check: E2E General Test
  • GitHub Check: E2E Service Test (Dev Keys)
  • GitHub Check: Unit Test
  • GitHub Check: Setup & Build Appwrite Image
  • GitHub Check: scan
🔇 Additional comments (1)
src/Appwrite/Vcs/Comment.php (1)

14-43: Tips content looks good overall.

The expanded tip set provides valuable information about Appwrite's Sites and Functions features. The tips are:

  • Clear and concise
  • Technically accurate in their descriptions
  • Well-organized by feature area
  • Appropriate for display in GitHub PR comments

Comment on lines +14 to +15
'Appwrite has crossed the 50K GitHub stars milestone with hundreds of active contributors',
'Discord community has grown to 24K passionate developers and counting',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion | 🟠 Major

🧩 Analysis chain

Verify time-sensitive statistics before merging.

The GitHub stars (50K) and Discord community size (24K) are specific numbers that may become outdated quickly. Consider either:

  • Verifying these numbers are current as of the merge date
  • Making the messaging more general (e.g., "tens of thousands of stars", "thriving Discord community")

🌐 Web query:

What are the current GitHub star count for appwrite/appwrite repository and the current Discord community size for Appwrite?

💡 Result:

As of October 2, 2025:

  • GitHub (appwrite/appwrite) stars: 52.9k. [1]
  • Appwrite Discord community size: 23,922 members. [2]

Sources:
[1] appwrite/appwrite GitHub page.
[2] Appwrite server listing on Discord.


Update time-sensitive statistics

  • Replace “50K GitHub stars” with “52.9K GitHub stars”
  • Replace “24K passionate developers” with “23.9K passionate developers” (23,922 members)

Alternatively, generalize to reduce maintenance (e.g., “over 50K stars”, “thriving Discord community”).

🤖 Prompt for AI Agents
In src/Appwrite/Vcs/Comment.php around lines 14 to 15, update the time-sensitive
strings: replace "50K GitHub stars" with "52.9K GitHub stars" and replace "24K
passionate developers" with "23.9K passionate developers (23,922 members)";
alternatively, if you prefer less maintenance, change the phrases to non-exact
wording such as "over 50K stars" and "thriving Discord community"—pick one
approach and update both array entries accordingly.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Oct 2, 2025

✨ Benchmark results

  • Requests per second: 1,223
  • Requests with 200 status code: 220,272
  • P99 latency: 0.158941549

⚡ Benchmark Comparison

Metric This PR Latest version
RPS 1,223 995
200 220,272 179,115
P99 0.158941549 0.196356251

@Meldiron Meldiron merged commit ad46d05 into main Nov 6, 2025
42 checks passed
@HarshMN2345
Copy link
Copy Markdown
Member Author

@Meldiron #10771

@coderabbitai coderabbitai bot mentioned this pull request Nov 6, 2025
2 tasks
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.

3 participants