Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

feat: add validate pr workflow (#41061)

Raúl Barroso10cea1e5569d
diff --git a/.github/workflows/validate-pr.yml b/.github/workflows/validate-pr.yml
new file mode 100644
index 00000000000..b8b4226b25d
--- /dev/null
+++ b/.github/workflows/validate-pr.yml
@@ -0,0 +1,20 @@
+name: Validate pull request
+
+on:
+ pull_request:
+ types: [opened, labeled, unlabeled, synchronize, ready_for_review]
+
+jobs:
+ validate-pr:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Tagged with 'do not merge'
+ if: contains( github.event.pull_request.labels.*.name, 'do-not-merge')
+ run: |
+ echo "PR blocked: [tag: do not merge]"
+ exit 1
+
+ - name: All good
+ if: ${{ success() }}
+ run: |
+ echo "All good"