Skip to content

Commit

Permalink
Merge pull request #107 from seapagan/add-changelog-task
Browse files Browse the repository at this point in the history
Add a POE Task to automatically create and update the CHANGELOG.md
  • Loading branch information
seapagan committed Sep 24, 2023
2 parents ad2edfd + a1aacea commit 08903d3
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 5 deletions.
21 changes: 21 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,27 @@ If you add any new features, please add tests for them. This will help us to
ensure that the code is working as expected and will prevent any regressions.
*Currently we are not enforcing this until we have better coverage of the code.*

## Changelog

The changelog is automatically generated, so please do not edit it manually.

For information, it is generated using a **Ruby** gem called [GitHub Changelog
Generator](https://github.com/github-changelog-generator/github-changelog-generator).
There is a POE task that will run this and update the changelog file.

```console
$ poe changelog
```

you also need to add a GitHub Personal Access Token to the config file. See the
section in the
[Documentation](http://127.0.0.1:8000/configuration/#add-a-github-personal-access-token)
for information.

**However, you should NOT include a change to the `CHANGELOG.md` file in your
Pull Requests. This will be handled by the maintainers when a new release is
made.**

## Guidelines

Here are some guidelines to follow when contributing to Py-Maker:
Expand Down
5 changes: 0 additions & 5 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ importance.
- add a default dockerfile? Maybe a docker-compose file as well?
- take a look at the release-drafter GitHub action and see if worth using.
- add the `actions/stale` action to the generated project.
- add CLI command to generate the CHANGELOG.md file from the git history, using
`github_changelog_generator`. This would take the GitHub Key from the config
file if wanted. Note that without the Key, the GitHub API is rate limited to
50 requests per hour which is not usually usable unless you have a very small
project with few commits.
- update the POE tasks to add help text to each task.
- automatically create the new GitHub repository from the CLI. This would
require the GitHub API key to be in the config file.
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ lint = ["black", "flake8", "mypy", "try", "pylint"]
"docs:serve" = "mkdocs serve -w TODO.md -w CHANGELOG.md -w CONTRIBUTING.md"
"docs:serve:all" = "mkdocs serve -w TODO.md -w CHANGELOG.md -w CONTRIBUTING.md -a 0.0.0.0:9000"

# this needs the Ruby utility below installed.
changelog = "github_changelog_generator -u seapagan -p py-maker"

# configure assorted tools and linters
[tool.isort]
profile = "black"
Expand Down

0 comments on commit 08903d3

Please sign in to comment.