Repository navigation
Conversation
🤖 Generated with Claude Code
spawnia
marked this pull request as ready for review
October 25, 2026 16:14
Contributor
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
2 open issues
What changed in this PR
Reformats GraphQL directive descriptions to follow Semantic Line Breaks (one sentence per line) across src/ and the mirrored snippets in docs/master/.
Changes:
- Reflow directive description strings in
src/to avoid mid-sentence hard wraps. - Apply the same sentence-per-line formatting to mirrored directive definitions in
docs/master/. - Some fenced PHP code examples in
docs/master/api-reference/directives.mdwere also reflowed.
| File | Description |
|---|---|
| src/WhereConditions/WhereHasConditionsDirective.php | Reflows directive description to a single sentence per line. |
| src/Validation/ValidatorDirective.php | Splits multi-sentence description into separate lines. |
| src/Validation/RulesForArrayDirective.php | Reflows description text to avoid mid-sentence wrapping. |
| src/Validation/RulesDirective.php | Reflows description text to avoid mid-sentence wrapping. |
| src/Tracing/TracingDirective.php | Reflows description text to a single line for the sentence. |
| src/Subscriptions/Directives/BroadcastDirective.php | Reflows description text to avoid mid-sentence wrapping. |
| src/SoftDeletes/SoftDeletesDirective.php | Reflows description text to avoid mid-sentence wrapping. |
| src/Schema/Directives/WithDirective.php | Reflows argument description text. |
| src/Schema/Directives/WithCountDirective.php | Splits multi-sentence note into separate lines. |
| src/Schema/Directives/WhereNotBetweenDirective.php | Reflows description text to a single sentence line. |
| src/Schema/Directives/WhereBetweenDirective.php | Reflows description text to a single sentence line. |
| src/Schema/Directives/UpsertManyDirective.php | Reflows argument description text. |
| src/Schema/Directives/UpsertDirective.php | Reflows argument description text. |
| src/Schema/Directives/UploadDirective.php | Reflows description text to a single sentence line. |
| src/Schema/Directives/UpdateManyDirective.php | Reflows argument description text. |
| src/Schema/Directives/UpdateDirective.php | Reflows argument description text. |
| src/Schema/Directives/ThrottleDirective.php | Splits two sentences onto separate lines. |
| src/Schema/Directives/SpreadDirective.php | Reflows description text to a single sentence line. |
| src/Schema/Directives/NestDirective.php | Reflows description text to a single sentence line. |
| src/Schema/Directives/MorphToManyDirective.php | Reflows argument descriptions to sentence-per-line. |
| src/Schema/Directives/MorphToDirective.php | Reflows argument description to sentence-per-line. |
| src/Schema/Directives/MorphOneDirective.php | Reflows argument description to sentence-per-line. |
| src/Schema/Directives/MorphManyDirective.php | Reflows argument descriptions to sentence-per-line. |
| src/Schema/Directives/MethodDirective.php | Reflows description text to avoid mid-sentence wrapping. |
| src/Schema/Directives/LimitDirective.php | Splits multi-sentence paragraphs into separate lines. |
| src/Schema/Directives/LikeDirective.php | Reflows argument description to a single sentence line. |
| src/Schema/Directives/LazyLoadDirective.php | Reflows description text to a single sentence line. |
| src/Schema/Directives/InjectDirective.php | Splits multi-sentence argument docs into separate lines. |
| src/Schema/Directives/HasOneThroughDirective.php | Reflows argument description to sentence-per-line. |
| src/Schema/Directives/HasOneDirective.php | Reflows argument description to sentence-per-line. |
| src/Schema/Directives/HasManyThroughDirective.php | Reflows argument descriptions to sentence-per-line. |
| src/Schema/Directives/HasManyDirective.php | Reflows argument descriptions to sentence-per-line. |
| src/Schema/Directives/EnumDirective.php | Reflows description text to avoid mid-sentence wrapping. |
| src/Schema/Directives/DeleteDirective.php | Reflows argument description text. |
| src/Schema/Directives/CreateManyDirective.php | Reflows argument description text. |
| src/Schema/Directives/CreateDirective.php | Reflows argument description text. |
| src/Schema/Directives/BelongsToManyDirective.php | Reflows argument descriptions to sentence-per-line. |
| src/Schema/Directives/BelongsToDirective.php | Reflows argument description to sentence-per-line. |
| src/GlobalId/NodeDirective.php | Reflows description text to a single sentence line. |
| src/GlobalId/GlobalIdDirective.php | Reflows semicolon-separated sentence to a single line. |
| src/Federation/Directives/TagDirective.php | Splits multi-sentence description into separate lines. |
| src/Federation/Directives/ShareableDirective.php | Reflows description paragraphs to sentence-per-line. |
| src/Federation/Directives/RequiresDirective.php | Splits multi-sentence description into separate lines. |
| src/Federation/Directives/ProvidesDirective.php | Splits multi-sentence description into separate lines. |
| src/Federation/Directives/OverrideDirective.php | Splits multi-sentence description into separate lines. |
| src/Federation/Directives/KeyDirective.php | Reflows description text to a single sentence line. |
| src/Federation/Directives/InterfaceObjectDirective.php | Reflows description text to a single sentence line. |
| src/Federation/Directives/InaccessibleDirective.php | Reflows description paragraphs to sentence-per-line. |
| src/Federation/Directives/ExternalDirective.php | Splits multi-sentence description into separate lines. |
| src/Federation/Directives/ExtendsDirective.php | Splits multi-sentence description into separate lines. |
| src/Federation/Directives/ComposeDirectiveDirective.php | Reflows description text to a single sentence line. |
| src/Defer/DeferrableDirective.php | Reflows description text to a single sentence line. |
| src/Cache/CacheDirective.php | Reflows description text to avoid mid-sentence wrapping. |
| src/Auth/GuardDirective.php | Reflows description text to a single sentence line. |
| src/Auth/CanQueryDirective.php | Reflows description text to a single sentence line. |
| src/Auth/CanDirective.php | Reflows multiple description blocks to sentence-per-line. |
| src/Auth/BaseCanDirective.php | Reflows shared argument description to sentence-per-line. |
| src/Async/AsyncDirective.php | Reflows multi-sentence paragraph to sentence-per-line. |
| docs/master/eloquent/complex-where-conditions.md | Mirrors the @whereHasConditions description reflow. |
| docs/master/digging-deeper/client-directives.md | Reflows directive argument description to a single sentence line. |
| docs/master/api-reference/directives.md | Mirrors description reflow; also reflows some fenced PHP code examples. |
Review effort: Lite
The formatter paired `"""` across markdown fences, which reflowed PHP examples and skipped the descriptions in between. 🤖 Generated with Claude Code
Copilot stopped reviewing on behalf of
spawnia due to an error
October 25, 2026 16:36
spawnia
commented
Oct 26, 2026
spawnia
commented
Oct 26, 2026
spawnia
commented
Oct 26, 2026
spawnia
commented
Oct 26, 2026
🤖 Generated with Claude Code
🤖 Generated with Claude Code
🤖 Generated with Claude Code
🤖 Generated with Claude Code
🤖 Generated with Claude Code
🤖 Generated with Claude Code
🤖 Generated with Claude Code
🤖 Generated with Claude Code
🤖 Generated with Claude Code
…ld by default 🤖 Generated with Claude Code
🤖 Generated with Claude Code
🤖 Generated with Claude Code
The docs held outdated copies with hard-wrapped comments. 🤖 Generated with Claude Code
🤖 Generated with Claude Code
…-sembr # Conflicts: # src/WhereConditions/SQLOperator.php
🤖 Generated with Claude Code
spawnia
commented
Oct 26, 2026
🤖 Generated with Claude Code
🤖 Generated with Claude Code
🤖 Generated with Claude Code
🤖 Generated with Claude Code
🤖 Generated with Claude Code
🤖 Generated with Claude Code
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Directive descriptions were hard-wrapped mid-sentence, which contradicts the Semantic Line Breaks rule in AGENTS.md.
This puts every sentence on its own line, in
src/and in the mirrored definitions indocs/master/.PHPDoc and Markdown also get one sentence per line.
It also rewords unclear or run-on descriptions, except the Federation directives, which stay close to the Apollo docs.
For example,
edgeTypeno longer refers to an Edge interface that Lighthouse does not have.Directive definitions in
docs/master/now matchsrc/.Before, the docs lacked locations of
@feature,@hideand@show, therepeatableof@feature, and gavereturnValueof the@can*directives the wrong type.The docs now show the
@mockdefinition.They also say which directives the default
field_middlewaresetting applies to every field.Filler words such as "easily", "simply" and "just" are removed from
src/anddocs/master/.Changelog
Changed
Fixed
🤖 Generated with Claude Code