diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 00000000..25b6d8ae --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,43 @@ +name-template: 'v$RESOLVED_VERSION' +tag-template: 'v$RESOLVED_VERSION' +categories: + - title: 'Enhancements' + labels: + - 'feature request' + - 'technical debt' + - 'translation' + - title: 'Fixed bugs' + labels: + - 'bug' +exclude-labels: + - 'duplicate' + - 'invalid' + - 'wontfix' +exclude-contributors: + - 'dependabot' + - 'weblate' +change-template: '- $TITLE (#$NUMBER) @$AUTHOR' +change-title-escapes: '\<*_&`#@' +version-resolver: + major: + labels: + - 'release' + minor: + labels: + - 'feature request' + patch: + labels: + - 'technical debt' + - 'bug' + - 'translation' + default: patch +template: | + [Upgrade guide](https://www.kimai.org/documentation/updates.html) - [Installation docs](https://www.kimai.org/documentation/installation.html) - [Docker docs](https://tobybatch.github.io/kimai2/) - [Docker Hub](https://hub.docker.com/r/kimai/kimai2) + + **PHP Version compatibility:** + - PHP 7.3 is [end-of-life](https://www.php.net/supported-versions.php): you need to update now + - PHP 7.4, PHP 8 and PHP 8.1 are supported + + $CHANGES + + Thanks to $CONTRIBUTORS \ No newline at end of file diff --git a/.github/workflows/release-drafter.yaml b/.github/workflows/release-drafter.yaml new file mode 100644 index 00000000..9eb87c4b --- /dev/null +++ b/.github/workflows/release-drafter.yaml @@ -0,0 +1,30 @@ +name: Release Drafter + +on: + push: + branches: + - master + +permissions: + contents: read + +jobs: + correct_repository: + permissions: + contents: none + runs-on: ubuntu-latest + steps: + - name: fail on fork + if: github.repository_owner != 'kevinpapst' + run: exit 1 + + update_release_draft: + permissions: + contents: write # for release-drafter/release-drafter to create a github release + pull-requests: write # for release-drafter/release-drafter to add label to PR + needs: correct_repository + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github_changelog_generator b/.github_changelog_generator index c1447938..871f7d0b 100644 --- a/.github_changelog_generator +++ b/.github_changelog_generator @@ -1,5 +1,5 @@ unreleased=true future-release=1.20 exclude-labels=duplicate,support,question,invalid,wontfix,release,waiting for feedback,documentation -enhancement_labels=>enhancement,Enhancement,feature request,translation i18n,technical debt,documentation +enhancement_labels=>feature request,translation,technical debt,documentation issues-wo-labels=false