From 72b735480de64aa4c1e769fd3fce73f81dab0643 Mon Sep 17 00:00:00 2001 From: Maria Katsantoni <31883096+mkatsanto@users.noreply.github.com> Date: Thu, 30 Mar 2023 11:02:41 +0200 Subject: [PATCH] fix: release notes categories (#128) --- .github/labeler.yml | 9 +++++++++ .github/release.yml | 5 +++-- .github/workflows/main.yml | 13 +++++++++++++ 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/main.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..07ab3e9 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,9 @@ +version: 1 +labels: +- label: "breaking-change" + title: "BREAKING CHANGE:.*" +- label: "breaking-change" + title: ".*!:.*" +- label: "enhancement" + title: "^feat:.*" + \ No newline at end of file diff --git a/.github/release.yml b/.github/release.yml index 2d9ed95..9af4a1b 100644 --- a/.github/release.yml +++ b/.github/release.yml @@ -1,4 +1,5 @@ # .github/release.yml + changelog: # exclude: # labels: @@ -8,10 +9,10 @@ changelog: categories: - title: Breaking Changes 🛠 labels: - - BREAKING CHANGE + - breaking-change - title: Exciting New Features 🎉 labels: - - feat + - enhancement - title: Other Changes labels: - "*" diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..6d77c59 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,13 @@ +name: Label PRs + +on: +- pull_request + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: srvaroa/labeler@master + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file