Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

block prs coming from master (#61681)

bryanf2ddc223b6dd
diff --git a/.github/workflows/block-master-source-branch-prs.yml b/.github/workflows/block-master-source-branch-prs.yml
new file mode 100644
index 00000000000..34afd145aaf
--- /dev/null
+++ b/.github/workflows/block-master-source-branch-prs.yml
@@ -0,0 +1,14 @@
+name: Block Master Branch PRs
+on:
+ pull_request:
+ types: [opened, synchronize]
+
+jobs:
+ check-source-branch:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Block master branch PRs
+ if: github.head_ref == 'master'
+ run: |
+ echo "PRs from `master` branches are not allowed, please use a new branch name for your PR."
+ exit 1