From cbc4a97ad9c7584e8f514d080223d12e90baa5e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rom=C3=A1n=20C=C3=A1rdenas?= Date: Fri, 6 Oct 2023 11:55:55 +0200 Subject: [PATCH 1/2] added CI workflow for CHANGELOG.md --- .github/workflows/changelog.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/changelog.yaml diff --git a/.github/workflows/changelog.yaml b/.github/workflows/changelog.yaml new file mode 100644 index 00000000..2ea7fb89 --- /dev/null +++ b/.github/workflows/changelog.yaml @@ -0,0 +1,20 @@ +name: Check CHANGELOG.md + +on: + merge_group: + pull_request: + types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled] + +jobs: + changelog-check: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Check for CHANGELOG.md + uses: dangoslen/changelog-enforcer@v3 + with: + skipLabels: 'skip changelog' + missingUpdateErrorMessage: 'Please add a changelog entry in the CHANGELOG.md file.' + From c067315a30b83a0c69c00c94936236a8db1e9b36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rom=C3=A1n=20C=C3=A1rdenas?= Date: Fri, 6 Oct 2023 11:57:54 +0200 Subject: [PATCH 2/2] forgot the CHANGELOG.md xd --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 37803141..9c53de9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Added +- Add CI workflow to check that CHANGELOG.md file has been modified in PRs - Add `read_csr_as_rv32`, `set_rv32`, and `clear_rv32` macros - Add `mstatus::uxl` and `mstatus::sxl` - Add `mstatus::ube`, `mstatus::sbe`, and `mstatus::mbe` endianness bit fields