Commit Graph
5 Commits
Author SHA1 Message Date
Alexis Aguilar 64433ecf69 chore(github): drop review day counts from PR template (#54337)
## Problem

Follow-up to [#54089](https://github.com/supabase/supabase/pull/54089),
tracked in [DOCS-1590](https://linear.app/supabase/issue/DOCS-1590). The
blocked-PR callout uses `[!WARNING]`, which signals risk rather than a
merge dependency. The review categories also list review deadlines in
business days, which the template doesn't need to commit to.

## Solution

- The blocked-PR callout uses `[!IMPORTANT]`.
- The review categories no longer list a number of days. The section
still asks Supabase team members to select one category, and PRs from
forks are still reviewed as Low.

## Review instructions

1. Read the diff to `.github/pull_request_template.md`.
2. Confirm the four category labels (`- [ ] Critical`, `Urgent`,
`Moderate`, `Low`) still start the same way.

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-11-30 17:40:21 -07:00
Alexis Aguilar 1f3549570d chore(github): add docs review categories and blocked-PR callout to PR template (#54089)
## Problem

Docs PRs have no review timeline. Some get reviewed the same day, and
others sit for weeks with no expectation of when they'll be looked at.
PRs that depend on another PR also get marked ready for review and
reviewed before they can merge. Tracked in
[DOCS-1590](https://linear.app/supabase/issue/DOCS-1590), part of the
Docs PR Tracker
([DOCS-1689](https://linear.app/supabase/issue/DOCS-1689)).

## Solution

Two additions to the shared PR template:

- **Review category (docs PRs only).** Four checkboxes, each with its
deadline in business days from when the PR is marked ready for review:
Critical (1), Urgent (3), Moderate (5), and Low (10). The section says
it only applies to docs PRs from Supabase team members. PRs from forks
are always reviewed as Low.
- **Blocked-PR callout.** An HTML comment at the top of the template
tells authors to keep a blocked PR as a draft and start the description
with a `[!WARNING]` callout naming the PR it depends on. Because it's a
comment, it doesn't render on PRs that aren't blocked.

The checkbox labels are fixed (`- [x] Critical`, and so on) because a
later check reads them to find the category. Non-docs PRs can ignore the
section.

## Review instructions

1. Read the diff to `.github/pull_request_template.md`.
2. Open a test PR, or preview the template, and confirm the callout
comment doesn't render and the category section reads clearly.
3. Since the template is shared across the repo, confirm the "docs PRs
only" wording is clear enough for non-docs authors to skip it.

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-11-30 15:01:54 -07:00
Miranda Limonczenko 36371de151 docs: trim CONTRIBUTING to repo mechanics and point at the style guide (#50743)
Part 3 of 3. Stack: #50742 → #50744 → #50743. Review #50742 and #50744
first.

Closes DOCS-1177

## Problem

`CONTRIBUTING.md` mixed how to write a page with how the repo is laid
out. That's why it reached 568 lines, and why a contributor looking for
either half reads past the other.

#50742 gives the writing half its own home.

## Solution

Trim `CONTRIBUTING.md` to repo mechanics, 568 lines down to 163.

**Removed**, now in the style guide: general principles, information
types, document types, components and elements, styling and grammar,
word usage.

**Kept**: the skills table, repo organization, guide and reference
structure, content reuse, search. Content listings keeps its data file,
ID rules, and test command here; the when-to-use-one part is in the
style guide.

**Added**: a table linking each style guide file.

Wire the contributor-facing entry points at the guide:

- `apps/docs/AGENTS.md` — gains a style guide section listing each file
separately, so an agent can load one file without the others. This
auto-loads for anything under `apps/docs`, making it the
highest-leverage pointer in the repo.
- Root `AGENTS.md` — claimed the skills are "the source of truth for
conventions." For docs content style that's now the guide, with the
skills as the process that applies it.
- `.github/pull_request_template.md`, `.coderabbit.yaml`,
`apps/docs/README.md`, `apps/docs/DEVELOPERS.md` — updated paths.

Drop the `.prettierignore` exemption for `apps/docs/CONTRIBUTING.md`.
It's short enough to format now, and a repo that publishes a style guide
shouldn't exempt its own contributing doc.

## Notes for review

Discoverability in a markdown-only guide is entirely these pointers, so
they're the load-bearing part of this PR rather than cleanup.

Both surviving anchor links into `CONTRIBUTING.md` target
`#ai-agent-skills-for-docs-authoring`, which is kept. No dangling
anchors.

This PR sits last in the stack on purpose. It deletes the style sections
that seven skill instructions referenced, so it has to land after #50744
rewires them.

## Manual testing

1. Open `apps/docs/CONTRIBUTING.md` and confirm every remaining section
is repo mechanics, and the style guide table links resolve.
2. Confirm `apps/docs/AGENTS.md` names each style guide file, in size
order: `WORD_LIST`, `01-voice-and-tone`, `02-elements`,
`03-page-structure`.
3. Run `grep -rn "apps/docs/WORD_LIST" --include="*.md"
--include="*.yaml" . | grep -v node_modules` and confirm only the
intentional stub matches.
4. Run `npx prettier --config prettier.config.mjs --check
apps/docs/CONTRIBUTING.md`.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Documentation**
* Updated contributor guidance to distinguish writing conventions from
repository mechanics, with the style guide as the reference for
documentation style.
* Added style guide links and clarified when to use the writing and
editing skills.
* Revised the docs contribution guide with a style guide file list and
steps for adding content listings.
* Updated the pull request checklist to direct contributors to the
documentation skills for style guidance.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-09-25 20:22:47 -07:00
Miranda Limonczenko 84e46779af chore(github) Revise pull request template, include docs skills (#50591)
Related to DOCS-1289

<img width="2150" height="1540" alt="CleanShot 2026-09-18 at 10 56 14
AM@2x"
src="https://github.com/user-attachments/assets/2a5d69e0-9037-4263-88c7-a624a167e775"
/>


## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.

YES

## What kind of change does this PR introduce?

Github chore

## What is the current behavior?

The template has not been revised in two years. It is serviceable but
simple. With some minor improvements, we can save time in the review
process and nudge contributors toward better PR descriptions.

## What is the new behavior?

This PR changes the pull request template:
- Adds `write-the-docs` and `edit-the-docs` skill, which was the main
ask for the Linear issue to socialize our skills so that we can retire
the linter
- Add "Problem" and "Solution" rather than "What is the current
behavior" and "What is the new behavior...". They mean approximately the
same thing but I think it's easier to understand and reason about.
- Makes "Additional context" an optional field by commenting it out and
stating "Optional". I find Additional context an annoying dumping ground
for AI slop.
- Adds a new section for writing manual instructions. Very valuable to
speed up the review process.
- Add an optional section for crafting a preview link table.

## Manual testing

1. Open the new template in a markdown visualizer
2. View content. See it is formatted well, links work, and content makes
sense.
3. Uncomment the optional sections. See table is formatted correctly
with the correct link formula.



<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Documentation

- Reworked the pull request template into a structured format covering
the problem, solution, review instructions, and checklist.
- Added optional sections for preview links and additional context.
- Updated preview-link guidance with clearer instructions and example
URLs.
- Replaced question-based prompts and manual contribution-guideline
confirmation with a clearer, checkbox-based review workflow.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-09-21 09:42:23 -07:00
Alaister Young 3750ad3f69 feat: CONTRIBUTING.md (#22107)
* feat: CONTRIBUTING.md

* add full stop
2024-03-19 09:27:47 +00:00