aboutsummaryrefslogtreecommitdiffstats
path: root/tools/create_changelog.py
Commit message (Collapse)AuthorAgeFilesLines
* create_changelog.py: Use '-' for lists of [Changelog] tagsFriedemann Kleint2021-05-271-1/+1
| | | | | | Pick-to: 6.1 Change-Id: I702f1a3e9f0add747d93db7ae19bf5878a96563a Reviewed-by: Christian Tismer <tismer@stackless.com>
* create_changelog: add option to exclude pick-toCristian Maureira-Fredes2021-05-121-1/+26
| | | | | | | | | | | | | | | | | | | | This enables the option '-e/--exclude' to skip all the sha1 related to commits that have been already picked to another previous version. The motivation comes to be able to generate the changelog for 6.1, which comes from the dev branch that already have many patches that are already cherry picked to previous releases. The logic is the following: - A: Get sha1 from the latest previous non-minor release to the new minor-release: origin/6.0.3 and origin/6.1 (created) - B: Get all the commits from there that have a 'Pick-to' entry - Use the remaining sha1 from: A - B Change-Id: I1e1fb5c225c13180dc15ea3e92ce4a641f6455f2 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* create_changelog.py: Fix shiboken versionFriedemann Kleint2021-02-251-1/+1
| | | | | | Pick-to: 6.0 Change-Id: If8d3bfdde3a1afe5cced1be4d3c8bcc92256048e Reviewed-by: Christian Tismer <tismer@stackless.com>
* Rename PySide2 to PySide6Friedemann Kleint2020-11-021-11/+11
| | | | | | | | Adapt CMake files, build scripts, tests and examples. Task-number: PYSIDE-904 Change-Id: I845f7b006e9ad274fed5444ec4c1f9dbe176ff88 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Rename shiboken2 to shiboken6Friedemann Kleint2020-10-281-10/+10
| | | | | | | | Adapt CMake files, build scripts, tests and examples. Task-number: PYSIDE-904 Change-Id: I4cb5ee4c8df539546014b08202a7b1e98ed3ff07 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* improve create_changelog toolCristián Maureira-Fredes2020-09-151-2/+5
| | | | | | | | | | Avoiding the corner case when someone reference another patch on the commit message by the whole 40-digit hash. Remove the 'Fixes' or 'Task-number' from the task ID. Change-Id: I51e93a06a9343b74bc94f7f2c2af1c40024daf9d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* changelog-tool: Add handling of actual changelog entriesFriedemann Kleint2020-03-031-21/+61
| | | | | | | | | | | Scan the commit messages for entries like [ChangeLog][shiboken2] description... and prepend them to the task list. Change-Id: I4cc8599eefb18c0b2c1892b8f23682b15815d1ec Reviewed-by: Christian Tismer <tismer@stackless.com>
* create_changelog.py: Fix checks for task numbersFriedemann Kleint2019-11-141-7/+11
| | | | | | | | | | The script was failing on commit messages like "Fixes https://github.com/spyder-ide/qtpy/issues/195". Use a regexp to get the number and insert into the dict for convenient sorting. Change-Id: I16499a083d31b85f11d2e7325c7c2c9c6e4332a5 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* create_changelog.py: Silence flake8 and Qt Creator's checkerFriedemann Kleint2019-11-131-11/+15
| | | | | Change-Id: If61585c69e9f73aecd8b001523165df0967721ed Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Add script to generate changelogsCristian Maureira-Fredes2019-06-171-0/+219
This tool generate the changelog for the Qt for Python project. Since the structure is different from other Qt project, this script split the changes between the ones to shiboken, and pyside. A shiboken change must contain the word "shiboken" in the title, everything else will be consider a "pyside" change. The only reported commits are the one associated with a certain task: Fixes or Task-number. The option accepts tags, branches or SHAs. Usage: python create_changelog.py -v v5.12.0..v5.12.1 -r 5.12.1 python create_changelog.py -v v5.11.4..5.13.0 -r 5.13.0 -t minor python create_changelog.py -v 9e13465a..5.12 -r 5.12 python create_changelog.py -v 5.17..6.0 -r 6.0 -t major The availables arguments are the following: -d DIRECTORY, --directory DIRECTORY Repository directory, the current one is default. -v VERSIONS, --versions VERSIONS Tags, branches, or SHA to compare e.g.: v5.12.1..5.12 v5.12.0..v5.12.1 cebc32a5..5.12 -r RELEASE, --release RELEASE Release version: e.g.: 5.12.4 -t TYPE, --type TYPE Release type: bug-fix (default), minor, or major There was an issue related to commits that were found twice, having no task number on the second time. Added type annotations for the functions. Sorted the changelog by task-number. Change-Id: Ia283864fa8add03e136afd75fe7a139ce7e190d8 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>