From eea1d4bf8ee0afd0d2efce92eef04fa31e0d9e83 Mon Sep 17 00:00:00 2001 From: Nikola Irinchev Date: Wed, 5 Oct 2022 21:49:43 +0200 Subject: [PATCH 1/3] Add an action to enforce changelog --- .github/workflows/check-changelog.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/check-changelog.yml diff --git a/.github/workflows/check-changelog.yml b/.github/workflows/check-changelog.yml new file mode 100644 index 000000000..dc85ed458 --- /dev/null +++ b/.github/workflows/check-changelog.yml @@ -0,0 +1,14 @@ +name: "Check Changelog" +on: + pull_request: + types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled] + +jobs: + changelog: + runs-on: ubuntu-latest + steps: + - uses: dangoslen/changelog-enforcer@c0b9fd225180a405c5f21f7a74b99e2eccc3e951 + with: + skipLabels: + - no-changelog + missingUpdateErrorMessage: Please add an entry in CHANGELOG.md or apply the 'no-changelog' label to skip this check. \ No newline at end of file From dad73c5adde4b8ac6717eb37fab038cb648cf3e7 Mon Sep 17 00:00:00 2001 From: Nikola Irinchev Date: Wed, 5 Oct 2022 21:52:53 +0200 Subject: [PATCH 2/3] Fix workflow --- .github/workflows/check-changelog.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check-changelog.yml b/.github/workflows/check-changelog.yml index dc85ed458..625c76426 100644 --- a/.github/workflows/check-changelog.yml +++ b/.github/workflows/check-changelog.yml @@ -7,8 +7,12 @@ jobs: changelog: runs-on: ubuntu-latest steps: - - uses: dangoslen/changelog-enforcer@c0b9fd225180a405c5f21f7a74b99e2eccc3e951 - with: - skipLabels: - - no-changelog - missingUpdateErrorMessage: Please add an entry in CHANGELOG.md or apply the 'no-changelog' label to skip this check. \ No newline at end of file + - name: Checkout + uses: actions/checkout@v2 + with: + submodules: false + - name: Enforce Changelog + uses: dangoslen/changelog-enforcer@c0b9fd225180a405c5f21f7a74b99e2eccc3e951 + with: + skipLabels: no-changelog + missingUpdateErrorMessage: Please add an entry in CHANGELOG.md or apply the 'no-changelog' label to skip this check. \ No newline at end of file From 65200a317878899a9b73f294844d39d7d94cca3e Mon Sep 17 00:00:00 2001 From: Nikola Irinchev Date: Wed, 5 Oct 2022 21:54:47 +0200 Subject: [PATCH 3/3] Add changelog entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 14c5d2c38..0d49349af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -73,6 +73,7 @@ ### Internal * Uses Realm Core v12.9.0 * Added tracking of child handles for objects/results/lists obtained from an unowned Realm. This ensures that all children are invalidated as soon as the parent Realm gets released at the end of the callback. (Issue [#527](https://github.com/realm/realm-dart/issues/527)) +* Added an action to enforce that the changelog is updated before a PR is merged (Issue [#939](https://github.com/realm/realm-dart/issues/939)) ## 0.4.0+beta (2022-08-19)