Build AI methods with your coding agent, then run them anywhere: as an MCP for chatbots, as a webapp for people, or via API for your software.
feature/changelog-gha
thomashebrardba581909de34
diff --git a/.github/workflows/changelog-check.yml b/.github/workflows/changelog-check.ymlnew file mode 100644index 000000000..c0a87c06e--- /dev/null+++ b/.github/workflows/changelog-check.yml@@ -0,0 +1,35 @@+name: Changelog Version Check++on:+ pull_request:+ branches:+ - main+ types: [opened, synchronize, reopened]++jobs:+ check-changelog:+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v4++ - name: Check Changelog Version+ run: |+ # Get the current branch name+ BRANCH_NAME=${GITHUB_HEAD_REF}++ # Check if this is a release branch+ if [[ $BRANCH_NAME =~ ^release/v([0-9]+\.[0-9]+\.[0-9]+)$ ]]; then+ VERSION="${BASH_REMATCH[1]}"+ echo "Release branch detected for version v$VERSION"++ # Look for the version in the changelog+ if ! grep -q "## \[v$VERSION\] -" CHANGELOG.md; then+ echo "Error: No changelog entry found for version v$VERSION"+ echo "Please add a changelog entry for v$VERSION before merging this release"+ exit 1+ else+ echo "✅ Changelog entry found for version v$VERSION"+ fi+ else+ echo "Not a release branch, skipping changelog check"+ fi\ No newline at end of file