Skip to content

Commit

Permalink
chg: upgrade gitchangelog (#4)
Browse files Browse the repository at this point in the history
* upgrade to latest gitchangelog and update readme file
* usr: improve install time using latest wheels

Signed-off-by: Stephen L Arnold <[email protected]>
  • Loading branch information
sarnold authored Mar 1, 2021
1 parent 9319f68 commit 6be2053
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 10 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ RUN apk --no-cache add \
git \
py3-pip

RUN pip3 install https://github.com/sarnold/gitchangelog/archive/3.0.5.tar.gz
RUN pip3 install -U -f https://github.com/sarnold/pystache/releases/ \
-f https://github.com/sarnold/gitchangelog/releases/ \
pystache gitchangelog

ADD ./gitchangelog-release.rc /gitchangelog-release.rc

Expand Down
37 changes: 29 additions & 8 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,23 @@ gitchangelog_ creates a changelog from git log history using multiple
template engines and a config file. Output can be either `reStructuredText`_
or `MarkDown`_, with the latter format as default for this action (mainly
for generating GitHub release pages).

By default this action will ues the ``gitchangelog.rc.github.release``
config file installed by the gitchangelog package.

What you can do with gitchangelog-action:

* generate a nicely-formatted/configurable github release document to
use with something like `softprops/action-gh-release`_
* generate a full changelog during any workflow (capture as a workflow
or release artifact)
* use a custom ``gitchangelog.rc`` file from your source repo

By default this action will use the same ``gitchangelog.rc.github.release``
config file installed by the gitchangelog package. The full option list
is shown below.


.. _reStructuredText: https://docutils.sourceforge.io/rst.html
.. _MarkDown: https://www.markdownguide.org/
.. _softprops/action-gh-release: https://github.com/softprops/action-gh-release


Usage
Expand Down Expand Up @@ -121,20 +131,31 @@ Input Options
:output_file: Filename for changelog (default: CHANGES.md)
:extra_sort: Additionally sort the list of found tags (default: False)
:no_args: Pass no ref args to gitchangelog (always generate full changelog)

The following options are not yet implemented:

:commit_changelog: Whether to commit the changelog file (default: false)
:target_branch: Branch that the action will target (default: current branch)


Input Constraints
-----------------
Output Constraints
------------------

* If you need to generate changelogs outside the github release context,
the workaround for now is using `actions/upload-artifact`_.

* **target_branch** will not create a new branch (you must create and
push the branch *before* enabling this option)

Please refer to the gitchangelog_ readme document for further details.

Please refer to the gitchangelog_ readme doument for further details.
.. note:: gitchangelog works best if you use the "tags" it knows about
in your commit messages. If you already use your own commit
tags/markers, you can edit (or provide) your own config file.
See the comments in `gitchangelog-release.rc`_ for a brief
description of how the tags work, and the above readme for an
example.


.. _actions/upload-artifact: https://github.com/actions/upload-artifact
.. _gitchangelog: https://github.com/sarnold/gitchangelog


Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "gitchangelog-action"
author: sarnold
description: "Generate pretty changelogs, eg, for the github release page"
description: "Generate nice changelogs, eg, for the github release page"

inputs:
github_token:
Expand Down

0 comments on commit 6be2053

Please sign in to comment.