Skip to content

Commit f6dc872

Browse files
authored
docs(sage-monorepo): add docs about co-authors (#2523)
1 parent a81c5be commit f6dc872

File tree

2 files changed

+97
-42
lines changed

2 files changed

+97
-42
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Creating a commit with multiple authors
2+
3+
## Introduction
4+
5+
You can attribute a commit to more than one author by adding one or more `Co-authored-by` trailers
6+
to the commit's message. Co-authored commits are visible on GitHub.
7+
8+
## When to add co-authors to a commit?
9+
10+
Annotating commits with co-authors is required when:
11+
12+
- You are about to commit previously-untracked code written by other users.
13+
- Example:
14+
1. User A develops a new feature and submits it as a PR.
15+
2. User B is tasked with refactoring the PR from User A into multiple PRs.
16+
3. User B copy-paste code written by User A and adapt it.
17+
4. User B adds User A as a co-author when the commits include code written by User A.
18+
19+
## Adding co-authors to a commit
20+
21+
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).
22+
23+
Preview of the commit creation:
24+
25+
```
26+
$ git commit -m "Refactor usability tests.
27+
>
28+
>
29+
Co-authored-by: NAME <EMAIL>
30+
Co-authored-by: ANOTHER-NAME <ANOTHER-EMAIL>"
31+
```
32+
33+
## Names and emails of Sage Monorepo contributors
34+
35+
The name and "no-reply" emails of the Sage Monorepo contributors (sorted alphabetically):
36+
37+
- Co-authored-by: andrewelamb <[email protected]>
38+
- Co-authored-by: gaiaandreoletti <[email protected]>
39+
- Co-authored-by: Lingling <[email protected]>
40+
- Co-authored-by: mdsage1 <[email protected]>
41+
- Co-authored-by: Rongrong Chai <[email protected]>
42+
- Co-authored-by: sagely1 <[email protected]>
43+
- Co-authored-by: Thomas Schaffter <[email protected]>
44+
- Co-authored-by: Verena Chung <[email protected]>
45+
46+
> [!NOTE]
47+
> The names and user ID are collected from the profile page of the contributors. If a contributor
48+
does not specify their name on the profile page, the listing below uses their GitHub username
49+
instead of their name. The user ID can be found in the URL of the user's avatar.
50+
51+
## References
52+
53+
- [Creating a commit with multiple
54+
authors](https://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/creating-a-commit-with-multiple-authors)

mkdocs.yml

+43-42
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Project
2-
site_name: "Sage Monorepo"
2+
site_name: 'Sage Monorepo'
33
site_description: >-
44
A development environment for building robust apps faster.
55
@@ -9,57 +9,58 @@ repo_name: sage-monorepo
99

1010
# Navigation
1111
nav:
12-
- Home:
13-
- Sage Monorepo: index.md
14-
- What's new: news.md
15-
- Contributing:
16-
- Overview: contributions/overview.md
17-
- Reporting a bug: contributions/bug-report.md
18-
- Adding a feature: contributions/guidelines.md
12+
- Home:
13+
- Sage Monorepo: index.md
14+
- What's new: news.md
15+
- Contributing:
16+
- Overview: contributions/overview.md
17+
- Reporting a bug: contributions/bug-report.md
18+
- Adding a feature: contributions/guidelines.md
1919
- Getting Started:
20-
- What is Angular Universal?: getting-started/what-is-angular.md
21-
- What is a devcontainer?: getting-started/what-is-devcontainer.md
22-
- What is Nx?: getting-started/what-is-nx.md
23-
- Setup:
24-
- Develop Locally: getting-started/local-dev.md
25-
- Develop On a Remote Host: getting-started/remote-dev.md
20+
- What is Angular Universal?: getting-started/what-is-angular.md
21+
- What is a devcontainer?: getting-started/what-is-devcontainer.md
22+
- What is Nx?: getting-started/what-is-nx.md
23+
- Setup:
24+
- Develop Locally: getting-started/local-dev.md
25+
- Develop On a Remote Host: getting-started/remote-dev.md
2626
- Tutorials:
27-
- Angular:
28-
- Create an Angular app: tutorials/angular/add-app.md
29-
- Add an Angular API client: tutorials/angular/add-api-client.md
30-
- Add an Angular component: tutorials/angular/add-component.md
31-
- Add an Angular library: tutorials/angular/add-library.md
32-
- Docker:
33-
- Create a Docker-based project: tutorials/docker/new-project.md
34-
- Java:
35-
- Add a Java library: tutorials/java/add-library.md
36-
- Add a Java REST API: tutorials/java/add-rest-api.md
37-
- Python:
38-
- Add a Python REST API: tutorials/python/add-rest-api.md
39-
- R:
40-
- Add an R project: tutorials/r/new-project.md
27+
- Angular:
28+
- Create an Angular app: tutorials/angular/add-app.md
29+
- Add an Angular API client: tutorials/angular/add-api-client.md
30+
- Add an Angular component: tutorials/angular/add-component.md
31+
- Add an Angular library: tutorials/angular/add-library.md
32+
- Docker:
33+
- Create a Docker-based project: tutorials/docker/new-project.md
34+
- Java:
35+
- Add a Java library: tutorials/java/add-library.md
36+
- Add a Java REST API: tutorials/java/add-rest-api.md
37+
- Python:
38+
- Add a Python REST API: tutorials/python/add-rest-api.md
39+
- R:
40+
- Add an R project: tutorials/r/new-project.md
4141
- Developers Guide:
42-
- Common Issues: developers-guide/faq.md
42+
- Creating a commit with multiple authors: developers-guide/creating-a-commit-with-multiple-authors.md
43+
- Common Issues: developers-guide/faq.md
4344
- Reference:
44-
- Agora:
45-
- API: reference/agora.md
46-
- OpenChallenges:
47-
- Microservices: reference/oc-microservices.md
48-
- Schemas: reference/oc-schemas.md
49-
- Schematic:
50-
- API: reference/schematic.md
45+
- Agora:
46+
- API: reference/agora.md
47+
- OpenChallenges:
48+
- Microservices: reference/oc-microservices.md
49+
- Schemas: reference/oc-schemas.md
50+
- Schematic:
51+
- API: reference/schematic.md
5152

5253
# Theme configuration
5354
theme:
5455
name: material
5556
palette:
56-
- media: "(prefers-color-scheme: light)"
57+
- media: '(prefers-color-scheme: light)'
5758
scheme: default
5859
primary: blue
5960
toggle:
6061
icon: material/toggle-switch-off-outline
6162
name: Switch to dark mode
62-
- media: "(prefers-color-scheme: dark)"
63+
- media: '(prefers-color-scheme: dark)'
6364
scheme: slate
6465
primary: blue
6566
toggle:
@@ -81,10 +82,10 @@ theme:
8182
- toc.follow
8283

8384
plugins:
84-
- search
85-
- mkdocstrings
86-
- autorefs
87-
- termynal
85+
- search
86+
- mkdocstrings
87+
- autorefs
88+
- termynal
8889

8990
markdown_extensions:
9091
- admonition

0 commit comments

Comments
 (0)