The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/6299

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
From 3e07561990b233e816311bfe36c424db8ad19873 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgra...@ubuntu.com>
Date: Wed, 9 Oct 2019 12:23:50 -0400
Subject: [PATCH] doc: Add commit structure to contributing.md
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
---
 doc/contributing.md | 28 ++++++++++++++++++++++------
 1 file changed, 22 insertions(+), 6 deletions(-)

diff --git a/doc/contributing.md b/doc/contributing.md
index 82f5ed3b96..7a8b8ea550 100644
--- a/doc/contributing.md
+++ b/doc/contributing.md
@@ -1,16 +1,33 @@
 # Contributing
-
-## Pull requests:
-
+## Pull requests
 Changes to this project should be proposed as pull requests on Github
 at: <https://github.com/lxc/lxd>
 
 Proposed changes will then go through code review there and once acked,
 be merged in the main branch.
 
+## Commit structure
+Separate commits should be used for:
+ - API extension (`api: Add XYZ extension`, contains `doc/api-extensions.md` 
and `shared/version.api.go`)
+ - Documentation (`doc: Update XYZ` for files in `doc/`)
+ - API structure (`shared/api: Add XYZ` for changes to `shared/api/`)
+ - Go client package (`client: Add XYZ` for changes to `client/`)
+ - CLI (`lxc/<command>: Change XYZ` for changes to `lxc/`)
+ - Scripts (`scripts: Update bash completion for XYZ` for changes to 
`scripts/`)
+ - LXD daemon (`lxd/<package>: Add support for XYZ` for changes to `lxd/`)
+ - Tests (`tests: Add test for XYZ` for changes to `tests/`)
+
+The same kind of pattern extends to the other tools in the LXD code tree
+and depending on complexity, things may be split into even smaller chunks.
 
-## License and copyright:
+When updating strings in the CLI tool (`lxc/`), you may need a commit to 
update the templates:
+ - make i18n
+ - git commit -a -s -m "i18n: Update translation templates" po/
 
+This structure makes it easier for contributions to be reviewed and also
+greatly simplifies the process of backporting fixes to stable branches.
+
+## License and copyright
 By default, any contribution to this project is made under the Apache
 2.0 license.
 
@@ -18,8 +35,7 @@ The author of a change remains the copyright holder of their 
code
 (no copyright assignment).
 
 
-## Developer Certificate of Origin:
-
+## Developer Certificate of Origin
 To improve tracking of contributions to this project we use the DCO 1.1
 and use a "sign-off" procedure for all changes going into the branch.
 
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to