You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: stop reading the removed org commits flag in the current user - #1577
#1492 merged after the organization commits flag was removed in 6e71709, so GET /api/v1/me throws on the missing Feature::OrganizationCommits and production CI fails.
Posting as an organization is always on now, so can_post_as_organization is always true, and the tests that switched the flag are gone. This also applies Pint's mb_ltrim fix to GitHubReadmeQuery, which fails lint on production too.
Summary by CodeRabbit
Bug Fixes
Relative README image links now handle leading Unicode whitespace correctly.
Updates
The current-user response now consistently reports organization posting as available, regardless of the previous feature setting.
No actionable comments were generated in the recent review.
Walkthrough
The current-user response now always sets can_post_as_organization to true. Relative README image paths now use Unicode-aware trimming for leading whitespace.
The resource now reports can_post_as_organization as true without checking the feature flag. Tests expect true and no longer cover the feature-disabled response.
README relative image paths
Layer / File(s)
Summary
Trim relative image paths app/Queries/GitHubReadmeQuery.php
Relative image paths now use mb_ltrim instead of ltrim after leading ./ prefixes are removed.
The change fixes the current-user endpoint, which referenced a removed feature flag, and updates README image path trimming. No actionable merge-blocking risk remains.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title names the main change: the current-user endpoint no longer reads the removed org commits feature flag. The PR also applies an mb_ltrim lint fix in GitHubReadmeQuery, which the title does not…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: the current-user endpoint no longer reads the removed org commits feature flag. The PR also applies an mb_ltrim lint fix in GitHubReadmeQuery, which the title does not mention. That secondary change is minor and does not make the title misleading.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 1 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#1492 merged after the organization commits flag was removed in 6e71709, so
GET /api/v1/methrows on the missingFeature::OrganizationCommitsand production CI fails.Posting as an organization is always on now, so
can_post_as_organizationis alwaystrue, and the tests that switched the flag are gone. This also applies Pint'smb_ltrimfix toGitHubReadmeQuery, which fails lint on production too.Summary by CodeRabbit