Commit f61de990

Stainless Bot <107565488+stainless-bot@users.noreply.github.com>
2023-12-04 18:45:51
ci: ensure PR titles use conventional commits (#929)
1 parent 3157384
Changed files (1)
.github
workflows
.github/workflows/lint-pr.yml
@@ -0,0 +1,21 @@
+name: "Lint PR"
+
+on:
+  pull_request_target:
+    types:
+      - opened
+      - edited
+      - synchronize
+
+permissions:
+  pull-requests: read
+
+jobs:
+  pr_title:
+    name: Validate PR title
+    runs-on: ubuntu-latest
+    if: github.ref == 'refs/heads/main' && github.repository == 'openai/openai-python'
+    steps:
+      - uses: amannn/action-semantic-pull-request@v5
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}