Kaynağa Gözat

added CI workflow for CHANGELOG.md

Román Cárdenas 1 yıl önce
ebeveyn
işleme
cbc4a97ad9
1 değiştirilmiş dosya ile 20 ekleme ve 0 silme
  1. 20 0
      .github/workflows/changelog.yaml

+ 20 - 0
.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.'
+