From 406d6bb1b8a2ea173102117bcee4394165580102 Mon Sep 17 00:00:00 2001 From: junland Date: Thu, 26 Nov 2026 11:48:13 -0600 Subject: [PATCH 1/2] docs(contributing): enhance warning formatting for rebasing instructions --- CONTRIBUTING.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4f7b9041db..3bd35c3c96 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -110,7 +110,8 @@ git rebase main -i git push origin my-fix-branch -f ``` -_WARNING: Squashing or reverting commits and force-pushing thereafter may remove GitHub comments on code that were previously made by you or others in your commits. Avoid any form of rebasing unless necessary. +> [!WARNING] +> Squashing or reverting commits and force-pushing thereafter may remove GitHub comments on code that were previously made by you or others in your commits. Avoid any form of rebasing unless necessary. That's it! Thank you for your contribution! From 59861a0bc8c6384082aead61f50d02048cd3197d Mon Sep 17 00:00:00 2001 From: junland Date: Thu, 26 Nov 2026 11:56:44 -0600 Subject: [PATCH 2/2] docs(contributing): update rebase instructions and clarify force-push warnings --- CONTRIBUTING.md | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3bd35c3c96..bb09cb4e71 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -103,15 +103,16 @@ If we suggest changes, then: * Commit your changes to your branch (e.g. `my-fix-branch`). * Push the changes to your GitHub repository (this will update your Pull Request). -If the PR gets too outdated we may ask you to rebase and force push to update the PR: - -```shell -git rebase main -i -git push origin my-fix-branch -f -``` - -> [!WARNING] -> Squashing or reverting commits and force-pushing thereafter may remove GitHub comments on code that were previously made by you or others in your commits. Avoid any form of rebasing unless necessary. +> [!NOTE] +> If your PR becomes outdated, we may ask you to update it by rebasing onto the latest `main` branch. +> +>> [!WARNING] +>> Squashing, reverting, or force-pushing commits can remove GitHub comments tied to those commits. +> +>```shell +>git rebase -i main +>git push origin my-fix-branch --force-with-lease +>``` That's it! Thank you for your contribution!