-
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): add docs about co-authors (#2523)
- Loading branch information
1 parent
a81c5be
commit f6dc872
Showing
2 changed files
with
97 additions
and
42 deletions.
There are no files selected for viewing
54 changes: 54 additions & 0 deletions
54
docs/developers-guide/creating-a-commit-with-multiple-authors.md
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Creating a commit with multiple authors | ||
|
||
## Introduction | ||
|
||
You can attribute a commit to more than one author by adding one or more `Co-authored-by` trailers | ||
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: | ||
|
||
- 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. | ||
|
||
## Adding co-authors to a commit | ||
|
||
Follow the instructions described [here](https://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/creating-a-commit-with-multiple-authors). | ||
|
||
Preview of the commit creation: | ||
|
||
``` | ||
$ git commit -m "Refactor usability tests. | ||
> | ||
> | ||
Co-authored-by: NAME <EMAIL> | ||
Co-authored-by: ANOTHER-NAME <ANOTHER-EMAIL>" | ||
``` | ||
|
||
## Names and emails of Sage Monorepo contributors | ||
|
||
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. | ||
|
||
## References | ||
|
||
- [Creating a commit with multiple | ||
authors](https://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/creating-a-commit-with-multiple-authors) |
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