Skip to content

Test/auto format dirty verify#31207

Closed
MohamedH1998 wants to merge 4 commits into
auto-format-canaryfrom
test/auto-format-dirty-verify
Closed

Test/auto format dirty verify#31207
MohamedH1998 wants to merge 4 commits into
auto-format-canaryfrom
test/auto-format-dirty-verify

Conversation

@MohamedH1998
Copy link
Copy Markdown
Contributor

Summary

Screenshots (optional)

Documentation checklist

  • Is there a changelog entry (guidelines)? If you don't add one for something awesome and new (however small) — how will our customers find out? Changelogs are automatically posted to RSS feeds, the Discord, and X.
  • The change adheres to the documentation style guide.
  • If a larger change - such as adding a new page- an issue has been opened in relation to any incorrect or out of date information that this PR fixes.
  • Files which have changed name or location have been allocated redirects.

@MohamedH1998 MohamedH1998 requested review from a team and kodster28 as code owners June 3, 2026 12:31
@cloudflare-docs-bot
Copy link
Copy Markdown

cloudflare-docs-bot Bot commented Jun 3, 2026

Review

✅ No style-guide issues found in commit 4e38ff0.

Commands

Only codeowners can run commands. Post a comment with the command to trigger it.

Command Description
/review Runs a review now. Incremental if a prior review exists, full if not.
/full-review Re-reviews the entire PR diff from scratch, ignoring incremental history. Useful after a rebase, when you want a fresh review, or if the bot gets out of sync and reports issues that no longer exist.

@cloudflare-docs-bot
Copy link
Copy Markdown

Thank you for reaching out. This issue appears to be spam or doesn't contain actionable documentation feedback, so we're closing it. If you have a genuine documentation question or suggestion, please open a new issue with details.

Copy link
Copy Markdown
Contributor

@ask-bonk ask-bonk Bot left a comment

Choose a reason for hiding this comment

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

This PR appears to be a test of the auto-format bot. However, the current HEAD introduces numerous formatting violations that will fail CI.

Issues found:

  • Missing description — The PR body is the default template with no context about what is being tested or why.
  • Formatting violations — Both changed files have inconsistent spacing, missing semicolons, mixed indentation (spaces vs tabs), and excessive blank lines. pnpm run format:core:check will fail.

Comment thread bin/check-component-docs.ts Outdated
"components",
);
const AGENT_REFERENCE = path.join(".agents", "references", "components.md");
const AGENT_REFERENCE = path.join( ".agents" , "references" ,'components.md' ) ;
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.

Fix spacing:

Suggested change
const AGENT_REFERENCE = path.join( ".agents" , "references" ,'components.md' ) ;
const AGENT_REFERENCE = path.join(".agents", "references", "components.md");

Comment thread bin/check-component-docs.ts Outdated
if (!fmMatch) return undefined;
const componentMatch = fmMatch[1].match(/^\s*component:\s*(\S+)\s*$/m);
return componentMatch?.[1];
function extractComponentName(content: string) : string|undefined {
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.

Fix spacing:

Suggested change
function extractComponentName(content: string) : string|undefined {
function extractComponentName(content: string): string | undefined {

Comment thread bin/check-component-docs.ts Outdated
Comment on lines +32 to +36
const fmMatch=content.match(/^---\n([\s\S]*?)\n---/);
if(!fmMatch)return undefined ;
const componentMatch = fmMatch[1].match(/^\s*component:\s*(\S+)\s*$/m) ;
return componentMatch?.[ 1 ];

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.

Use tabs and fix spacing/semicolons:

Suggested change
const fmMatch=content.match(/^---\n([\s\S]*?)\n---/);
if(!fmMatch)return undefined ;
const componentMatch = fmMatch[1].match(/^\s*component:\s*(\S+)\s*$/m) ;
return componentMatch?.[ 1 ];
const fmMatch = content.match(/^---\n([\s\S]*?)\n---/);
if (!fmMatch) return undefined;
const componentMatch = fmMatch[1].match(/^\s*component:\s*(\S+)\s*$/m);
return componentMatch?.[1];
}

Comment thread src/util/glossary.ts Outdated
@@ -1,4 +1,4 @@
import { getCollection } from "astro:content";
import { getCollection } from "astro:content";
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.

Remove extra spaces:

Suggested change
import { getCollection } from "astro:content";
import { getCollection } from "astro:content";

Comment thread src/util/glossary.ts Outdated

export async function getGlossaryEntry(term: string) {
const terms = await getGlossaryEntries();
const terms = await getGlossaryEntries() ;
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.

Remove trailing spaces:

Suggested change
const terms = await getGlossaryEntries() ;
const terms = await getGlossaryEntries();

Comment thread src/util/glossary.ts Outdated
Comment on lines +33 to +49
const entry = terms.find((x) => x.term === term)










const entry = terms.find((x) => x.term === term);

if (!entry) {
throw new Error(`[GetGlossaryEntry] Unable to find entry for ${term}`);



throw new Error(`[GetGlossaryEntry] Unable to find entry for ${term}`)
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.

Remove excessive blank lines and add missing semicolons:

Suggested change
const entry = terms.find((x) => x.term === term)
const entry = terms.find((x) => x.term === term);
if (!entry) {
throw new Error(`[GetGlossaryEntry] Unable to find entry for ${term}`);
throw new Error(`[GetGlossaryEntry] Unable to find entry for ${term}`)
const entry = terms.find((x) => x.term === term);
if (!entry) {
throw new Error(`[GetGlossaryEntry] Unable to find entry for ${term}`);
}
return entry;
}

@ask-bonk
Copy link
Copy Markdown
Contributor

ask-bonk Bot commented Jun 3, 2026

Review Complete

Verdict: 2 issues need fixing before merge — formatting violations and missing PR description.

What I did

  • Posted a review with 6 inline suggestions on bin/check-component-docs.ts and src/util/glossary.ts
  • Added the do-not-merge-yet label
  • Ran pnpm run format:core:check — it fails on both changed files

Issues flagged

Severity Issue Location
HIGH Missing PR description — body is the default template with no context about what is being tested or why PR body
HIGH Formatting violations — inconsistent spacing, missing semicolons, mixed indentation (spaces vs tabs), excessive blank lines bin/check-component-docs.ts, src/util/glossary.ts

Notes

  • This PR appears to be a test of the auto-format bot. The current HEAD (4e38ff0) introduces deliberate formatting issues. These issues will fail CI (pnpm run format:core:check).
  • Git history shows a later commit (6010a99 style: format) that may have fixed these, but the reviewed HEAD still contains the violations.

github run

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants