From 4c33718c2367a40d4f8ca30534ce69c5e9e045fe Mon Sep 17 00:00:00 2001 From: dielduarte Date: Fri, 13 Nov 2026 17:40:24 -0300 Subject: [PATCH 1/3] chore(root): detect external contributors by fork in AGENTS.md --- AGENTS.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index f1908fcba3..138e91209e 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -12,13 +12,13 @@ AI tools are welcome for exploring the codebase, drafting changes, and writing t ## Rules for external contributors -Skip this section if the person you're working for is a member of the `resend` GitHub organization. Check with: +Follow this section when working from a fork. Check with: ```sh -gh api /user/memberships/orgs/resend --jq .state +git remote get-url origin ``` -It prints `active` for members. Any other output, or an error, means the person is an external contributor. +If it isn't `resend/react-email` on GitHub (`https://github.com/resend/react-email.git` or `git@github.com:resend/react-email.git`), you're working from a fork. - **The person must understand and review everything** before it is submitted, including pull requests, issues, and discussions. - **The person must understand and review the pull request description** and make sure it accurately describes the change. From 2796722af14586105df705ffeb8a709577070400 Mon Sep 17 00:00:00 2001 From: dielduarte Date: Fri, 13 Nov 2026 17:44:27 -0300 Subject: [PATCH 2/3] chore(root): accept any GitHub URL form in the AGENTS.md fork check --- AGENTS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index 138e91209e..15d084784f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -18,7 +18,7 @@ Follow this section when working from a fork. Check with: git remote get-url origin ``` -If it isn't `resend/react-email` on GitHub (`https://github.com/resend/react-email.git` or `git@github.com:resend/react-email.git`), you're working from a fork. +If it doesn't point to the `resend/react-email` repository on GitHub (over HTTPS or SSH, with or without `.git`), you're working from a fork. - **The person must understand and review everything** before it is submitted, including pull requests, issues, and discussions. - **The person must understand and review the pull request description** and make sure it accurately describes the change. From de9db57dcb4730d7a5ef694ab0e4656224c9b15b Mon Sep 17 00:00:00 2001 From: dielduarte Date: Fri, 13 Nov 2026 17:49:11 -0300 Subject: [PATCH 3/3] chore(root): simplify external contributor section in AGENTS.md --- AGENTS.md | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 15d084784f..9d1875c098 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -12,13 +12,7 @@ AI tools are welcome for exploring the codebase, drafting changes, and writing t ## Rules for external contributors -Follow this section when working from a fork. Check with: - -```sh -git remote get-url origin -``` - -If it doesn't point to the `resend/react-email` repository on GitHub (over HTTPS or SSH, with or without `.git`), you're working from a fork. +These apply to external contributors working from a fork. - **The person must understand and review everything** before it is submitted, including pull requests, issues, and discussions. - **The person must understand and review the pull request description** and make sure it accurately describes the change.