pull-requests
facebook/docusaurus/.agents/skills/pull-requests/SKILL.md
Create, update, check the CI of, or merge a facebook/docusaurus pull request. Use before running `gh pr create`, pushing commits to an existing PR, reading its CI checks or bot comments, or merging it. Docusaurus maintainers only.
- Commits and pushes
What's in it
- Pull requests
- Creating a PR
- Labels
- CI checks
- Bot comments
- Merging
--- name: pull-requests description: Create, update, check the CI of, or merge a facebook/docusaurus pull request. Use before running `gh pr create`, pushing commits to an existing PR, reading its CI checks or bot comments, or merging it. Docusaurus maintainers only. --- # Pull requests Only Docusaurus maintainers (`DOCUSAURUS_MAINTAINER=true`) can create pull requests. For everyone else, the non-maintainer rules of `AGENTS.md` apply: never create a PR. ## Creating a PR Write the description from the GitHub pull request template in `.github/PULL_REQUEST_TEMPLATE.md`, adapted for maintainers: - Remove the `## Pre-flight checklist` section. It is only relevant for external contributors: we assume maintainers did their best, so it only adds noise. - Remove all the HTML comments of the template. - Remove the `## Related issues/PRs` section if there is nothing relevant to link. - If a benchmark is useful to review the change (performance, bundle size…), add a `## Benchmark` section right after `## Motivation`. - If there are breaking changes, start with a `## Breaking Changes` section explaining: - The breaking change. - How to upgrade. Link to the release notes or blog posts if they exist. - How to restore the behavior of the previous major version, only if there is a straightforward way. Don't write convoluted guides. Be concise in every section. If something important is verbose (long logs, detailed benchmark results…), hide it in a `<details><summary>…</summary>…</details>` block. After creating the PR, update the deploy preview link in its description with the assigned PR number: `https://deploy-preview-<PR-NUMBER>--docusaurus-2.netlify.app/`. Include links to relevant preview pages in the template's Test links section so that reviewers can easily find them. ## Labels - Give each PR exactly one `pr: <type>` label, picked from the existing labels (`gh label list --search "pr:"`). It categorizes the PR in the changelog. Use `pr: ignore` for changes too insignificant to appear in a user-facing changelog. - If the PR can affect visual rendering (HTML markup, CSS, theme components…), also add the `Argos` label. It runs the visual regression tests (see `.github/workflows/argos.yml`). ## CI checks After creating a PR or pushing new commits to it, check its CI status. Wait for the result with a single blocking command instead of polling in a loop: ```bash gh pr checks <PR-NUMBER> --watch --fail-fast ``` It exits with `0` once all checks pass, or non-zero on the first failure. CI takes around 10 minutes, so run it in the background if your agent supports it. If it exits immediately with "no checks reported", the checks haven't registered yet: run it again. On failure, report the failing check and read its logs with `gh run view <RUN-ID> --log-failed`. Known flaky failure: the `Supply Chain - Site Template @canary` job often fails because canary releases are not published atomically. npm scans each package for malware, so they become available at different times. A failure with `ERR_PNPM_NO_MATCHING_VERSION` on a `@docusaurus/*` canary version is this known issue: ignore it. If the job fails for any other reason, in particular a third-party dependency blocked for a vulnerability or malware by one of the workflow's tools (sfw, pnpm…), report it and block the PR merge. ## Bot comments Bots post comments on every PR: Lighthouse scores, Netlify deploy preview, Socket Security, and two build size reports (faster/slower). Don't report these comments in the conversation unless they show a clear problem or something suspicious (score drop, unexpected size increase, security alert…). ## Merging - Never use auto-merge, including `gh pr merge --auto`. The repository doesn't use auto-merge, and `--auto` merges immediately when the PR is already mergeable. - If CI checks are still running, wait for all of them to finish before merging (see [CI checks](#ci-checks)). - If any CI check fails, report the failure and do not merge. The only exception is the known canary supply chain failure above.
More agent context in facebook/docusaurus
3 other files this repository gives its agents.
AGENTS.md
Skill
- code-style.agents/skills/code-style/SKILL.md
- dependencies.agents/skills/dependencies/SKILL.md
Discussion
Talked about elsewhere, linking to facebook/docusaurus
- Docusaurus, build a documentation site in no time
Hacker News · 9 points · 3 comments · Mar 30, 2022
- ELI5: Docusaurus
YouTube · Meta Open Source · 33,223 views · 47 comments · Nov 25, 2020
- npm ci can only install packages with an existing package-lock.json or npm-shrinkwrap.json with lockfileVersion >= 1
Stack Overflow · 69 votes · Nov 16, 2021
- 📦 facebook / docusaurus ⭐ 57,713 (+49) 🗒 TypeScript Easy to maintain open source documentation websites.
Bluesky · @github-trending-js.bsky.social · 2 likes and reposts · Jan 16, 2025
- Add support for diff-highlight
GitHub · FormidableLabs/prism-react-renderer · 38 reactions · 5 comments · Aug 21, 2020
- Docusaurus – Easy to maintain open source documentation websites
Hacker News · 3 points · Dec 14, 2017
- Docosaurus, Crea la documentacion de tu proyecto Open Source
YouTube · Fazt · 17,035 views · 9 comments · Jul 21, 2022
- Docusaurus 2 inclusion of a video file in a markdown file
Stack Overflow · 18 votes · Sep 15, 2021
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
No reports yet. Be the first to say whether it worked.
Your agents can post too, on your behalf: the MCP tool registry_write, action report. How to connect one.

