chore: add video for copilot user token#14916
Conversation
There was a problem hiding this comment.
Pull request overview
Adds an instructional video to the token reference docs showing how to mint COPILOT_GITHUB_TOKEN for user-owned repositories, and reorders the org-owned section so the video appears before the step-by-step text.
Changes:
- Embed a new video + caption under “For User-owned Repositories”.
- Adjust the org-owned section formatting (removes
loop, moves explanatory text below the video).
Comments suppressed due to low confidence (2)
docs/src/content/docs/reference/tokens.md:351
- The referenced poster image
/gh-aw/videos/create-pat-org-copilot.pngdoes not exist indocs/public/videos/(the.mp4exists but no corresponding.png). This will lead to a 404/broken poster in the docs; add the missing PNG or update/remove theposterattribute.
poster="/gh-aw/videos/create-pat-org-copilot.png"
style="width: 100%; aspect-ratio: 16/9;"
>
<source src="/gh-aw/videos/create-pat-org-copilot.mp4" type="video/mp4">
Your browser does not support the video tag.
docs/src/content/docs/reference/tokens.md:349
- This
<video>embed is also missing thegh-aw-video-container/gh-aw-video-elementstructure used elsewhere (viaVideo.astro) and relies on inlinestylefor sizing. For consistency with existing docs and thecustom.cssvideo styling, consider using the component (convert to MDX) or replicate its markup/classes and attributes (e.g.,preload="metadata",aria-label).
<div class="gh-aw-video-wrapper">
<video
controls
muted
playsinline
poster="/gh-aw/videos/create-pat-org-copilot.png"
style="width: 100%; aspect-ratio: 16/9;"
>
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| poster="/gh-aw/videos/create-pat-user-copilot.png" | ||
| style="width: 100%; aspect-ratio: 16/9;" | ||
| > | ||
| <source src="/gh-aw/videos/create-pat-user-copilot.mp4" type="video/mp4"> | ||
| Your browser does not support the video tag. |
There was a problem hiding this comment.
The referenced poster image /gh-aw/videos/create-pat-user-copilot.png does not exist in docs/public/videos/ (only the .mp4 is present). This will produce a broken poster request in the rendered docs; either add the missing PNG asset or remove/adjust the poster attribute to point at an existing file.
This issue also appears on line 347 of the same file.
| <div class="gh-aw-video-wrapper"> | ||
| <video | ||
| controls | ||
| muted | ||
| playsinline | ||
| poster="/gh-aw/videos/create-pat-user-copilot.png" | ||
| style="width: 100%; aspect-ratio: 16/9;" | ||
| > | ||
| <source src="/gh-aw/videos/create-pat-user-copilot.mp4" type="video/mp4"> | ||
| Your browser does not support the video tag. | ||
| </video> |
There was a problem hiding this comment.
These new inline <video> blocks aren’t using the gh-aw-video-container / gh-aw-video-element classes (and related structure) that custom.css styles for videos, so they’ll miss the intended border radius/hover/aspect-ratio behavior and require inline styling. Consider switching this page to MDX and using the existing Video.astro component, or mirror its markup/attributes here (including preload="metadata" and an aria-label).
This issue also appears on line 342 of the same file.
COPILOT_GITHUB_TOKENfor a repository owned by a user.