Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

ci: check pr title for conventional commit (#8862)

Marc Klingen702dd6ac275c
diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml
index 93a9a99d87..2734da37dd 100644
--- a/.github/workflows/pipeline.yml
+++ b/.github/workflows/pipeline.yml
@@ -469,6 +469,41 @@ jobs:
- name: Run e2e tests
run: pnpm --filter=web run test:e2e:server
+ validate-pr-title:
+ runs-on: ubuntu-latest
+ needs:
+ - pre-job
+ if: needs.pre-job.outputs.should_skip != 'true' && github.event_name == 'pull_request'
+ permissions:
+ statuses: write
+ pull-requests: read
+ steps:
+ - name: Validate PR title follows conventional commits
+ uses: amannn/action-semantic-pull-request@v6
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ # Configure the types of commits allowed
+ types: |
+ feat
+ fix
+ docs
+ style
+ refactor
+ perf
+ test
+ build
+ ci
+ chore
+ revert
+ # Allow scopes (optional)
+ requireScope: false
+ # Allow any scope (not just the ones listed above)
+ validateSingleCommit: false
+ ignoreLabels: |
+ bot
+ ignore-semantic-pull-request
+
all-ci-passed:
# This allows us to have a branch protection rule for tests and deploys with matrix
runs-on: ubuntu-latest
@@ -482,6 +517,7 @@ jobs:
test-docker-build,
e2e-server-tests,
tests-web-async,
+ validate-pr-title,
]
if: always()
steps: