Эх сурвалжийг харах

Github's contributing and issue template files

Stéphane Raimbault 8 жил өмнө
parent
commit
7612ce2029
3 өөрчлөгдсөн 48 нэмэгдсэн , 19 устгасан
  1. 29 0
      CONTRIBUTING.md
  2. 13 0
      ISSUE_TEMPLATE.md
  3. 6 19
      README.md

+ 29 - 0
CONTRIBUTING.md

@@ -0,0 +1,29 @@
+How Do I Submit A Good Bug Report?
+----------------------------------
+
+Please, don't send direct emails to Stéphane Raimbault unless you want
+commercial support.
+
+Take care to read the documentation at http://libmodbus.org/documentation/.
+
+- *Be sure it's a bug before creating an issue*, in doubt, post a message on
+  https://groups.google.com/forum/#!forum/libmodbus or send an email to
+  libmodbus@googlegroups.com
+
+- *Use a clear and decriptive title* for the issue to identify
+
+- *Which version of libmodbus are you using?* you can obtain this information
+from your package manager or by running `pkg-config --modversion libmodbus`.
+You can provide the sha1 of the commit if you have fetched the code with `git`.
+
+- *Which operating system are you using?*
+
+- *Describe the exact steps which reproduce the problem* in as many details as
+possible. For example, the software/equipement which runs the Modbus server, how
+the clients are connected (TCP, RTU, ASCII) and the source code you are using.
+
+- *Enable the debug mode*, libmodbus provides a function to display the content
+of the Modbus messages and it's very convenient to analyze issues
+(http://libmodbus.org/docs/latest/modbus_set_debug.html).
+
+Good bug reports provide right and quick fixes!

+ 13 - 0
ISSUE_TEMPLATE.md

@@ -0,0 +1,13 @@
+### libmodbus version
+
+### Operating system
+
+### Description of the Modbus network (server, client, links, etc)
+
+### Expected behavior
+
+### Actual behavior
+
+### Steps to reproduce the behavior (commands or source code)
+
+### libmodbus output with debug mode enabled

+ 6 - 19
README.md

@@ -59,13 +59,14 @@ automake libtool`.
 Documentation
 -------------
 
+The documentation is available [online](http://libmodbus.org/documentation) or
+as manual pages after installation.
+
 The documentation is based on
 [AsciiDoc](http://www.methods.co.nz/asciidoc/).  Only man pages are built
 by default with `make` command, you can run `make htmldoc` in *docs* directory
 to generate HTML files.
 
-The documentation is also available [online](http://libmodbus.org/documentation).
-
 Testing
 -------
 
@@ -83,21 +84,7 @@ By default, all TCP unit tests will be executed (see --help for options).
 
 It's also possible to run the unit tests with `make check`.
 
-Report a Bug
-------------
-
-Before reporting a bug, take care to read the documentation (RTFM!) and to
-provide enough information:
-
-1. libmodbus version
-2. OS/environment/architecture
-3. libmodbus backend (TCP, RTU, IPv6)
-3. Modbus messages when running in debug mode (`man modbus_set_debug`)
-
-To report your problem, you can:
-
-* fill a bug report on the issue tracker <http://github.com/stephane/libmodbus/issues>.
-* or send an email to the libmodbus mailing list [libmodbus@googlegroups.com](https://groups.google.com/forum/#!forum/libmodbus).
+To report a bug or to contribute
+--------------------------------
 
-If your prefer live talk when your're looking for help or to offer contribution,
-there is also a channel called #libmodbus on Freenode.
+See [CONTRIBUTING](CONTRIBUTING.md) document.