added release drafter workflow (#3362)

This commit is contained in:
Kevin Papst
2022-06-19 17:42:09 +02:00
committed by GitHub
parent cdf5a545eb
commit c956d075d9
3 changed files with 74 additions and 1 deletions

43
.github/release-drafter.yml vendored Normal file
View File

@@ -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

30
.github/workflows/release-drafter.yaml vendored Normal file
View File

@@ -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 }}

View File

@@ -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