Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto-generate changelog from Git tags
This project uses Git tags to indicate releases, and has been providing annotated and signed Git tags with informative tag messages. These tags can be used to auto-generate a changelog. This commit will add a CHANGELOG.md, a corresponding docs/changelog.md, and a GitHub Actions job that will update the changelog on each Git tag. Future changelog updates will be made with automated PRs due to branch protection. GitHub Actions can't push to protected branches. Branch protection rules currently require signed commits. By default, bots can't sign commits. Setting up bot commit signing is involved, and requires storing a private key on GitHub. The commit signing requirement could be disabled, but this would create the possibility of unauthorized changes being committed. Having bots open PRs avoids this issue, because GitHub will sign the merge with their key. Note that, in order for the merged commit to show up as verified, the `Co-authored-by` trailers must be removed before squashing and merging. A downside of updating the changelog with PRs is that changelog PRs could go unmerged if maintainers forget to merge them. PR auto-merge could help with this, but then other unwanted PRs could be merged also, so auto-merge is currently disabled. Note that PRs or commits created from a GitHub Actions workflow don't trigger further workflows. This means the changelog PR won't trigger the required status checks, so an admin will have to bypass these checks in order to merge the PR. This commit will enable the `MagicLink` Python Markdown extension (`pymdownx.magiclink`). This extension will "magic link" (autolink) GitHub references (add hyperlinks to the text on the page). This extension is not officially supported by Material for MkDocs, but it appears to work well, and it helps add links to the changelog. https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/ https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/ https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls
- Loading branch information