From f424fddbd6a9eb7bcf1dd7f9da1a9c5557c5eab8 Mon Sep 17 00:00:00 2001 From: ZigaStrgar Date: Fri, 27 May 2022 13:46:50 +0200 Subject: [PATCH 1/4] ci: Release drafter Action Signed-off-by: ZigaStrgar --- .github/workflows/release.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..69d9fc8 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,15 @@ +name: Release Drafter + +on: + pull_request: + # Only following types are handled by the action, but one can default to all as well + types: [ opened, reopened, synchronize ] + +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 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From a37ee8ac60396c97fb3835a0dbd1a97909876418 Mon Sep 17 00:00:00 2001 From: ZigaStrgar Date: Fri, 27 May 2022 13:50:13 +0200 Subject: [PATCH 2/4] ci: template update Signed-off-by: ZigaStrgar --- .github/release-drafter.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index dc73422..2d816d0 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -29,8 +29,10 @@ version-resolver: - 'patch' default: patch template: | - ## Changes - + ## Changes $CHANGES + + --- footer: | [Detailed comparison]($REPOSITORY/compare/$PREVIOUS_TAG...$RESOLVED_VERSION) between [$PREVIOUS_TAG]($REPOSITORY/releases/tag/$PREVIOUS_TAG) and [$RESOLVED_VERSION]($REPOSITORY/releases/tag/$RESOLVED_VERSION). From 841a34e86e02c99aeb1704a053a4b9de5204cdba Mon Sep 17 00:00:00 2001 From: ZigaStrgar Date: Fri, 27 May 2022 13:52:05 +0200 Subject: [PATCH 3/4] ci: template update Signed-off-by: ZigaStrgar --- .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 2d816d0..4d79b19 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -35,4 +35,4 @@ template: | --- footer: | - [Detailed comparison]($REPOSITORY/compare/$PREVIOUS_TAG...$RESOLVED_VERSION) between [$PREVIOUS_TAG]($REPOSITORY/releases/tag/$PREVIOUS_TAG) and [$RESOLVED_VERSION]($REPOSITORY/releases/tag/$RESOLVED_VERSION). + [Detailed comparison](https://github.com/ZigaStrgar/fastify-bugsnag/compare/$PREVIOUS_TAG...$RESOLVED_VERSION) between [$PREVIOUS_TAG](https://github.com/ZigaStrgar/fastify-bugsnag/releases/tag/$PREVIOUS_TAG) and [$RESOLVED_VERSION](https://github.com/ZigaStrgar/fastify-bugsnag/releases/tag/$RESOLVED_VERSION). From 94a673c18b9a76529e6eb4e122c460d92d0ec476 Mon Sep 17 00:00:00 2001 From: ZigaStrgar Date: Fri, 27 May 2022 13:59:01 +0200 Subject: [PATCH 4/4] ci: event trigger Signed-off-by: ZigaStrgar --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 69d9fc8..c3eb58f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,9 +1,9 @@ name: Release Drafter on: - pull_request: - # Only following types are handled by the action, but one can default to all as well - types: [ opened, reopened, synchronize ] + push: + branches: + - main jobs: update_release_draft: