From fc1083a8d49c133e7fadf666d124df2453b3f288 Mon Sep 17 00:00:00 2001 From: Arpit Mohan Date: Mon, 6 Sep 2021 02:41:30 +0530 Subject: [PATCH] ci: Adding release-drafter back (#7072) --- .github/release-drafter-template.yml | 52 +++++++++++++++++++++++++++ .github/workflows/release-drafter.yml | 29 +++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 .github/release-drafter-template.yml create mode 100644 .github/workflows/release-drafter.yml diff --git a/.github/release-drafter-template.yml b/.github/release-drafter-template.yml new file mode 100644 index 0000000000..3d37476e80 --- /dev/null +++ b/.github/release-drafter-template.yml @@ -0,0 +1,52 @@ +name-template: "Release v$RESOLVED_VERSION 🌈" +tag-template: "v$RESOLVED_VERSION" +categories: + - title: "🚀 Features" + labels: + - "Enhancement" + - title: "🐛 Bug Fixes" + labels: + - "Bug" + +# Only include the following labels in the release notes. All other labels are ignored. +include-labels: + - "Enhancement" + - "Bug" + +change-template: "- $TITLE (#$NUMBER)" + +change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. + +version-resolver: + major: + labels: + - "Major" + minor: + labels: + - "Minor" + patch: + labels: + - "Patch" + default: patch + +template: | + ## What's new? + + $CHANGES + +# The below configurations will label our PRs automatically +# autolabeler: +# - label: "Chore" +# title: +# - "/chore/i" +# - "/docs/i" +# - label: "Test" +# title: +# - "/test/i" +# - label: "Bug" +# title: +# - "/fix/i" +# - label: "Enhancement" +# title: +# - '/feature\/.+/' +# - "/feat/i" diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000000..306ae94d6f --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,29 @@ +name: Release Drafter + +on: + push: + branches: + - release + # Only trigger if files have changed in this specific path + paths: + - "app/client/**" + - "app/server/**" + - "app/rts/**" + + # pull_request event is required only for autolabeler + # pull_request: + # types: [opened, reopened, synchronize] + # branches: [release] + +jobs: + update_release_draft: + runs-on: ubuntu-latest + steps: + # Drafts your next Release notes as Pull Requests are merged into "master" + - uses: release-drafter/release-drafter@v5 + with: + # (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml + config-name: release-drafter-template.yml + disable-autolabeler: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}