diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 0000000..9a36f2f --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,4 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "dependencyDashboardApproval": true +} \ No newline at end of file diff --git a/.github/workflows/changelog_checks.yml b/.github/workflows/changelog_checks.yml index f06001c..82470b9 100644 --- a/.github/workflows/changelog_checks.yml +++ b/.github/workflows/changelog_checks.yml @@ -121,7 +121,7 @@ jobs: title = 'Version Mismatch' ) - if os.environ[ "SOURCE_CHANGED" ] == 'true' and 1 < len( head_changes ): + if os.environ[ "SOURCE_CHANGED" ] == 'true' and head_changes and base_changes: last_version = head_changes[ 1 ][ "version" ] incremented = ( last_version.bump_major(), last_version.bump_minor(), last_version.bump_patch() ) if head_changes[ 0 ][ "version" ] not in incremented: diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 265cf5f..d2030b1 100755 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -65,7 +65,7 @@ jobs: run: >- gh pr view --repo ${{ github.event.pull_request.base.repo.full_name }} --json comments --jq '.comments | - map( select( .body | startswith( "" ) ) ) | + map( select( .body | startswith( "" ) ) ) | "comment-id=\( .[ -1 ].url // "" | split( "#issuecomment-" )[ 1 ] // "" )" ' ${{ github.event.pull_request.number }} >> "$GITHUB_OUTPUT" - uses: peter-evans/create-or-update-comment@v3 diff --git a/pyproject.toml b/pyproject.toml index 81b0eb9..5e294c0 100755 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,7 +28,7 @@ urls.changelog = "https://github.com/JasonStiefel/changelog-parser/blob/main/CHA dynamic = [ "version" ] dependencies = [ - "semver" + "semver==3.0.1" ] [tool.setuptools.dynamic]