Skip to content
Merged

Dev #15

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 31 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,43 @@ jobs:
command: query
version: unreleased

- name: Detect Version Bump Type
id: version-bump
if: github.ref == 'refs/heads/main' # Only update for stable releases
run: |
CHANGELOG="${{ steps.extract-changelog.outputs.result }}"
echo "Extracted Changelog:"
echo "$CHANGELOG"

# Default bump type
BUMP_TYPE="patch"

if echo "$CHANGELOG" | grep -q "### Breaking Changes"; then
BUMP_TYPE="major"
elif echo "$CHANGELOG" | grep -q "### Removed"; then
BUMP_TYPE="major"
elif echo "$CHANGELOG" | grep -q "### Added"; then
BUMP_TYPE="minor"
elif echo "$CHANGELOG" | grep -q "### Deprecated"; then
BUMP_TYPE="minor"
elif echo "$CHANGELOG" | grep -q "### Changed"; then
BUMP_TYPE="minor"
elif echo "$CHANGELOG" | grep -q "### Fixed"; then
BUMP_TYPE="patch"
elif echo "$CHANGELOG" | grep -q "### Security"; then
BUMP_TYPE="patch"
fi

echo "Version bump detected: $BUMP_TYPE"
echo "bump_type=$BUMP_TYPE" >> $GITHUB_ENV


- name: Update CHANGELOG.md
if: github.ref == 'refs/heads/main' # Only update for stable releases
uses: release-flow/keep-a-changelog-action@v3.0.0
with:
command: bump
version: unreleased
version: ${{ env.bump_type }}

- name: Commit Updated CHANGELOG.md
if: github.ref == 'refs/heads/main'
Expand Down
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Core: add enum LogLevel
- Core: add method set_log_level to change the log level

### Changed
### Breaking Changes

- Core: init: parameter for logger has been added, if not provided, a new logger will be created

Expand All @@ -73,7 +73,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Person, Workflow, Task: inherit JsonSerializableDict --> make serializable
- Request: close: make it possible to close a without a note (using default note)

### Changed
### Breaking Changes

- Request: request.created_by, request.requested_by, request.requested_for, request.member are now Person objects
- Workflow: workflow.manager is now a Person object
Expand All @@ -84,7 +84,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Core: __append_per_page: exclude auto append for /me

### Changed
### Breaking Changes

- Request: request.workflow is now a Workflow object instead of a dict --> request.workflow.id instead of request.workflow['id']

Expand Down Expand Up @@ -134,7 +134,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Workflow: Fix toString / __str__ method

### Changed
### Breaking Changes

- Request: renamed get_request to get_requests
- Workflow: get_workflow_task_by_template_id now returns a Task object List
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "xurrent"
version = "0.4.0-preview.169"
version = "0.4.0-preview.193"
authors = [
{ name="Fabian Steiner", email="fabian@stei-ner.net" },
]
Expand All @@ -18,7 +18,7 @@ Homepage = "https://github.com/fasteiner/xurrent-python"
Issues = "https://github.com/fasteiner/xurrent-python/issues"
[tool.poetry]
name = "xurrent"
version = "0.4.0-preview.169"
version = "0.4.0-preview.193"
description = "A python module to interact with the Xurrent API."
authors = ["Ing. Fabian Franz Steiner BSc. <fabian.steiner@tttech.com>"]
readme = "README.md"
Expand Down