File: index.rst

package info (click to toggle)
python-changelogd 0.1.9-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 448 kB
  • sloc: python: 1,921; makefile: 21
file content (95 lines) | stat: -rw-r--r-- 2,372 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
.. Changelogd documentation master file, created by
   sphinx-quickstart on Sat Jan 11 13:46:11 2020.
   You can adapt this file completely to your liking, but it should at least
   contain the root `toctree` directive.

Changelogd
==========

.. toctree::
   :maxdepth: 2
   :caption: Contents:

Changelogd allows teams to avoid merge conflicts for the changelog files. 
The ``changelogd`` content is stored within multiple YAML files - one per each 
changelog entry. Then, during application release, all input files are combined 
into one release file. The script uses Jinja2 templates to generate one consistent 
text file out of all input YAML files. The default output format is Markdown, but 
by modifying the templates it can be changed into any text format you like. 

Installation
------------

You can install ``changelogd`` via `pip`_ from `PyPI`_::

    $ pip install changelogd

Quickstart
----------

First, initialize ``changelogd`` configuration.

.. code-block:: bash

    $ changelogd init
    Created main configuration file: changelog.d\config.yaml
    Copied templates to changelog.d\templates

Then, create changelog entries:

.. code-block:: bash

    $ changelogd entry
            [1]: Features [feature]
            [2]: Bug fixes [bug]
            [3]: Documentation changes [doc]
            [4]: Deprecations [deprecation]
            [5]: Other changes [other]
    > Select message type [1]: 2
    > Issue ID: 100
    > Changelog message: Changelog message
    Created changelog entry at changelog.d\bug.a3f13823.entry.yaml

Finally, generate changelog file.

.. code-block:: bash

    $ changelogd release version-number
    > Release description (hit ENTER to omit): This is the initial release.
    Saved new release data into changelog.d\releases\0.release-name.yaml
    Generated changelog file to changelog.md

Output file:

.. code-block:: md

    # Changelog  
    
    
    ## version-number (2020-01-11)  
    
    This is the initial release.  
    
    ### Bug fixes  
    * [#100](http://repo/issues/100): Changelog message ([@user](user@example.com))  

Contents
--------

.. toctree::
   :maxdepth: 2

   commands
   configuration
   templates
   history

Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

.. _`pip`: https://pypi.org/project/pip/
.. _`PyPI`: https://pypi.org/project