-
Notifications
You must be signed in to change notification settings - Fork 242
Weekly editors health check: discover editors dynamically from docs #17586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
pelikhan
merged 2 commits into
copilot/weekly-workflow-editor-checks
from
copilot/sub-pr-17585
Feb 21, 2026
+17
−14
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -46,19 +46,25 @@ Monitor the health of all workflow editors listed in the documentation and keep | |||||
|
|
||||||
| ## Editors to Check | ||||||
|
|
||||||
| The editors are documented in `docs/src/content/docs/reference/editors.mdx`. Check each of the following URLs: | ||||||
|
|
||||||
| | Editor | URL | | ||||||
| |--------|-----| | ||||||
| | Compiler Playground | https://github.github.com/gh-aw/editor/ | | ||||||
| | Agentic Prompt Generator | https://ashleywolf.github.io/agentic-prompt-generator/ | | ||||||
| | Graphical Workflow Editor | https://mossaka.github.io/gh-aw-editor-visualizer/ | | ||||||
| The editors are documented in `docs/src/content/docs/reference/editors.mdx`. | ||||||
|
|
||||||
| ## Process | ||||||
|
|
||||||
| ### Step 0: Discover Editors | ||||||
|
|
||||||
| Read the file `docs/src/content/docs/reference/editors.mdx` using the `cat` command to extract the list of editors to inspect. Parse the file sequentially top to bottom: | ||||||
|
|
||||||
| 1. Track the most recent `###` heading encountered — this is the editor name for all `<LinkButton>` elements that follow it until the next heading. | ||||||
| 2. For each `<LinkButton href="...">` element found, record the `href` value as the editor URL. | ||||||
| 3. Derive the editor-id by converting the `###` heading to lowercase kebab-case (e.g., "Compiler Playground" → `compiler-playground`). | ||||||
| 4. For any `href` that is not an absolute `https://` URL (e.g., it uses template expressions like `${import.meta.env.BASE_URL}` or starts with `/`), resolve it relative to the documentation base URL `https://github.github.com/gh-aw/`. For example, `${import.meta.env.BASE_URL}editor/` resolves to `https://github.github.com/gh-aw/editor/`. | ||||||
| 5. Build a working list of editors with: name, editor-id, and resolved URL. | ||||||
|
|
||||||
| Proceed with the full list of editors discovered in this step. | ||||||
|
|
||||||
| ### Step 1: URL Availability Check | ||||||
|
|
||||||
| For each URL in the table above, verify that the page is reachable: | ||||||
| For each editor discovered in Step 0, verify that its URL is reachable: | ||||||
|
|
||||||
| 1. Use `web_fetch` (or `curl -sS -o /dev/null -w "%{http_code}" <url>`) to perform an HTTP GET request. | ||||||
|
||||||
| 1. Use `web_fetch` (or `curl -sS -o /dev/null -w "%{http_code}" <url>`) to perform an HTTP GET request. | |
| 1. Use `web-fetch` (or `curl -sS -o /dev/null -w "%{http_code}" <url>`) to perform an HTTP GET request. |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Step 0 says to parse only
<LinkButton href="...">attributes, buteditors.mdxcurrently uses MDX expression syntax for the built-in editor (<LinkButton href={${import.meta.env.BASE_URL}editor/}>). As written, this discovery step would miss Compiler Playground entirely. Update the instructions to also capturehref={...}/ template-literal forms (and not just quoted strings), and then apply the BASE_URL resolution rules to that extracted expression.