Skip to content

armgit / meet

Public Imported from GitHub
0

Open source video conferencing app powered by LiveKit. Built with Django and React.

👷(ci) add CI check for CHANGELOG updates in pull requests

lebaudantoine602280988812
diff --git a/.github/workflows/meet.yml b/.github/workflows/meet.yml
index 8c243eb9..d0e7eec1 100644
--- a/.github/workflows/meet.yml
+++ b/.github/workflows/meet.yml
@@ -34,6 +34,32 @@ jobs:
if: always()
run: ~/.local/bin/gitlint --commits origin/${{ github.event.pull_request.base.ref }}..HEAD
+ check-changelog:
+ runs-on: ubuntu-latest
+ if: |
+ contains(github.event.pull_request.labels.*.name, 'noChangeLog') == false &&
+ github.event_name == 'pull_request'
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 50
+ - name: Check that the CHANGELOG has been modified in the current branch
+ run: git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.after }} | grep 'CHANGELOG.md'
+
+ lint-changelog:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+ - name: Check CHANGELOG max line length
+ run: |
+ max_line_length=$(cat CHANGELOG.md | grep -Ev "^\[.*\]: https://github.com" | wc -L)
+ if [ $max_line_length -ge 80 ]; then
+ echo "ERROR: CHANGELOG has lines longer than 80 characters."
+ exit 1
+ fi
+
build-mails:
runs-on: ubuntu-latest
defaults: