From c2fb4d3fa7964b3de6946b8adf31f21b9930180f Mon Sep 17 00:00:00 2001 From: boc-the-git <3479092+boc-the-git@users.noreply.github.com> Date: Wed, 4 Sep 2024 08:08:39 +1000 Subject: [PATCH] feat: Automate release drafting (#4147) --- .github/release-drafter.yml | 57 +++++++++++++++++++++++++++ .github/workflows/release-drafter.yml | 21 ++++++++++ renovate.json | 3 ++ 3 files changed, 81 insertions(+) create mode 100644 .github/release-drafter.yml create mode 100644 .github/workflows/release-drafter.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 00000000000..b20f603c8d9 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,57 @@ +--- +name-template: "v$RESOLVED_VERSION" +tag-template: "v$RESOLVED_VERSION" +change-template: "- $TITLE @$AUTHOR (#$NUMBER)" +sort-direction: ascending + +categories: + - title: "🚨 Breaking changes" + labels: + - "breaking-change" + - "major" + - title: "✨ New features" + labels: + - "feature" + - "minor" + - title: "🐛 Bug fixes" + labels: + - "bugfix" + - title: "🧰 Maintenance" + collapse-after: 3 + labels: + - "ci" + - "chore" + - "l10n" + - title: "📚 Documentation" + labels: + - "documentation" + - title: "⬆️ Dependency updates" + collapse-after: 3 + labels: + - "dependencies" + +version-resolver: + major: + labels: + - "major" + - "breaking-change" + minor: + labels: + - "minor" + - "feature" + patch: + labels: + - "bugfix" + - "chore" + - "ci" + - "dependencies" + - "documentation" + - "l10n" + default: patch + +template: | + # 🍴🍴🍴🍴🍴🍴🍴🍴🍴🍴 + + $CHANGES + + # 🍴🍴🍴🍴🍴🍴🍴🍴🍴🍴 diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 00000000000..1c8f998c904 --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,21 @@ +--- +name: Release Drafter + +on: + push: + branches: + - mealie-next + workflow_dispatch: + +jobs: + update_release_draft: + permissions: + # write permission is required to create a github release + contents: write + name: ✏️ Draft release + runs-on: ubuntu-latest + steps: + - name: 🚀 Run Release Drafter + uses: release-drafter/release-drafter@v6.0.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/renovate.json b/renovate.json index 0866a74b62d..193449c7a07 100644 --- a/renovate.json +++ b/renovate.json @@ -5,5 +5,8 @@ ], "extends": [ "config:base" + ], + "addLabels": [ + "dependencies" ] }