Skip to content

Commit b66f3b6

Browse files
jackton1code-review-doctor[bot]Lint Action
authored
Added support for generating CHANGELOG.md (#104)
Co-authored-by: django-doctor[bot] <72320148+django-doctor[bot]@users.noreply.github.com> Co-authored-by: Lint Action <github-action[bot]@github.com>
1 parent 57e4917 commit b66f3b6

File tree

2 files changed

+36
-2
lines changed

2 files changed

+36
-2
lines changed

.github/workflows/changelog.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Update CHANGELOG
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
changelog:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
14+
- name: Generate CHANGELOG
15+
uses: tj-actions/github-changelog-generator@v1.3
16+
with:
17+
token: ${{ secrets.PAT_TOKEN }}
18+
19+
- name: Create Pull Request
20+
uses: peter-evans/create-pull-request@v3
21+
with:
22+
token: ${{ secrets.PAT_TOKEN }}
23+
commit-message: Update CHANGELOG
24+
committer: github-actions[bot] <github-actions[bot]@users.noreply@github.com>
25+
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
26+
branch: chore/update-changelog
27+
base: master
28+
delete-branch: true
29+
title: 'Update CHANGELOG'
30+
body: |
31+
Update changelog
32+
- Auto-generated by github-actions[bot]
33+
assignees: jackton1
34+
reviewers: jackton1

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ MANAGE_PY := $(PYTHON) manage.py
77
PYTHON_PIP := /usr/bin/env pip
88
PIP_COMPILE := /usr/bin/env pip-compile
99
PART := patch
10-
PACKAGE_VERSION = $(shell $(PYTHON) setup.py --version)
1110

1211
# Put it first so that "make" without argument is like "make help".
1312
help:
@@ -50,13 +49,14 @@ update-requirements: ## Updates the requirement.txt adding missing package depe
5049
@$(PIP_COMPILE)
5150

5251
tag-build:
53-
@git tag v$(PACKAGE_VERSION)
52+
@git tag v$(shell $(PYTHON) setup.py --version)
5453

5554
release-to-pypi: clean-build increase-version tag-build ## Release project to pypi
5655
@$(PYTHON_PIP) install -U twine
5756
@$(PYTHON) setup.py sdist bdist_wheel
5857
@twine check dist/*
5958
@twine upload dist/*
59+
@git push --tags
6060

6161
# ----------------------------------------------------------
6262
# ---------- Upgrade project version (bumpversion) --------

0 commit comments

Comments
 (0)