From 32020d945a7351bc3a61f2eafea7e3fb1b352ac0 Mon Sep 17 00:00:00 2001 From: Adam Kudrna Date: Wed, 24 Apr 2024 13:30:37 +0200 Subject: [PATCH 1/4] Label `fix/bug/bugfix` branches as `fix` --- .github/pr-labeler.yml | 2 +- .github/release-drafter.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/pr-labeler.yml b/.github/pr-labeler.yml index 1dd04024..4927c6b6 100644 --- a/.github/pr-labeler.yml +++ b/.github/pr-labeler.yml @@ -1,6 +1,6 @@ BC: bc/* feature: [feature/*, task/*] -bug: [bug/*, bugfix/*] +fix: [fix/*, bug/*, bugfix/*] refactoring: refactoring/* documentation: [docs/*, documentation/*] maintenance: maintenance/* diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index fa4f4830..1ce4a92d 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -12,6 +12,7 @@ categories: - 'enhancement' - title: '🐞 Bug Fixes' labels: + - 'fix' - 'bug' - 'bugfix' - title: '♻️ Refactoring' @@ -32,6 +33,7 @@ version-resolver: - 'feature' patch: labels: + - 'fix' - 'bug' - 'bugfix' default: patch From e65f36f00bed524cabf9a8ce906d3d3bac08062c Mon Sep 17 00:00:00 2001 From: Adam Kudrna Date: Wed, 24 Apr 2024 13:31:14 +0200 Subject: [PATCH 2/4] Include PR authors in release notes --- .github/release-drafter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 1ce4a92d..e0f825f6 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -37,5 +37,5 @@ version-resolver: - 'bug' - 'bugfix' default: patch -change-template: '- $TITLE (PR #$NUMBER)' +change-template: '- $TITLE by @$AUTHOR (PR #$NUMBER)' template: $CHANGES From 490aa659b10135e5b9e7e4aaa6a0ab04ffc1d85a Mon Sep 17 00:00:00 2001 From: Adam Kudrna Date: Wed, 24 Apr 2024 13:48:02 +0200 Subject: [PATCH 3/4] Add link to compare changes on GitHub to release notes --- .github/release-drafter.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index e0f825f6..836e5fab 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -39,3 +39,4 @@ version-resolver: default: patch change-template: '- $TITLE by @$AUTHOR (PR #$NUMBER)' template: $CHANGES +footer: '**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...$RESOLVED_VERSION' From b6f918e443f564280c22be325a33ea6989411f95 Mon Sep 17 00:00:00 2001 From: Adam Kudrna Date: Wed, 24 Apr 2024 13:32:17 +0200 Subject: [PATCH 4/4] Remove needless permissions settings from the release workflow The workflow should work even without it. --- .github/workflows/release-management.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/release-management.yml b/.github/workflows/release-management.yml index 09dfebb6..a4f47639 100644 --- a/.github/workflows/release-management.yml +++ b/.github/workflows/release-management.yml @@ -4,9 +4,6 @@ on: push: branches: [ master ] -permissions: - contents: read - jobs: test_and_build: name: Test and build