-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(sage-monorepo): fix the format of the co-author docs page (#2528)
- Loading branch information
1 parent
f6dc872
commit 79b769c
Showing
2 changed files
with
50 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,14 +7,18 @@ to the commit's message. Co-authored commits are visible on GitHub. | |
|
||
## When to add co-authors to a commit? | ||
|
||
Annotating commits with co-authors is required when: | ||
Annotating commits with `Co-authored-by` is generally encouraged when copying code from other | ||
developers. | ||
|
||
- You are about to commit previously-untracked code written by other users. | ||
- Example: | ||
1. User A develops a new feature and submits it as a PR. | ||
2. User B is tasked with refactoring the PR from User A into multiple PRs. | ||
3. User B copy-paste code written by User A and adapt it. | ||
4. User B adds User A as a co-author when the commits include code written by User A. | ||
Annotating commits with `Co-authored-by` is **required** when you are committing | ||
previously-untracked code written by other users. | ||
|
||
!!! example "Example" | ||
|
||
1. Bea develops a new feature and submits it as a pull request (PR). | ||
2. Eddy is tasked with refactoring Bea's PR into multiple PRs. | ||
3. Eddy copies and pastes code written by Bea and adapts it. | ||
4. Eddy adds Bea as a co-author to the commits that include code she wrote. | ||
|
||
## Adding co-authors to a commit | ||
|
||
|
@@ -34,19 +38,43 @@ Co-authored-by: ANOTHER-NAME <ANOTHER-EMAIL>" | |
|
||
The name and "no-reply" emails of the Sage Monorepo contributors (sorted alphabetically): | ||
|
||
- Co-authored-by: andrewelamb <[email protected]> | ||
- Co-authored-by: gaiaandreoletti <[email protected]> | ||
- Co-authored-by: Lingling <[email protected]> | ||
- Co-authored-by: mdsage1 <[email protected]> | ||
- Co-authored-by: Rongrong Chai <[email protected]> | ||
- Co-authored-by: sagely1 <[email protected]> | ||
- Co-authored-by: Thomas Schaffter <[email protected]> | ||
- Co-authored-by: Verena Chung <[email protected]> | ||
|
||
> [!NOTE] | ||
> The names and user ID are collected from the profile page of the contributors. If a contributor | ||
does not specify their name on the profile page, the listing below uses their GitHub username | ||
instead of their name. The user ID can be found in the URL of the user's avatar. | ||
``` | ||
Co-authored-by: andrewelamb <[email protected]> | ||
``` | ||
|
||
``` | ||
Co-authored-by: gaiaandreoletti <[email protected]> | ||
``` | ||
|
||
``` | ||
Co-authored-by: Lingling <[email protected]> | ||
``` | ||
|
||
``` | ||
Co-authored-by: mdsage1 <[email protected]> | ||
``` | ||
|
||
``` | ||
Co-authored-by: Rongrong Chai <[email protected]> | ||
``` | ||
|
||
``` | ||
Co-authored-by: sagely1 <[email protected]> | ||
``` | ||
|
||
``` | ||
Co-authored-by: Thomas Schaffter <[email protected]> | ||
``` | ||
|
||
``` | ||
Co-authored-by: Verena Chung <[email protected]> | ||
``` | ||
|
||
!!! note | ||
|
||
The names, usernames and user IDs of the contributors are collected from their GitHub profile | ||
pages. If a contributor does not specify their name on the profile page, the listing uses their | ||
username instead of their name. The user ID can be found in the URL of the user's avatar. | ||
|
||
## References | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters