summaryrefslogtreecommitdiffstats
path: root/.github/workflows/pre_merge_check.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/pre_merge_check.yml')
-rw-r--r--.github/workflows/pre_merge_check.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/.github/workflows/pre_merge_check.yml b/.github/workflows/pre_merge_check.yml
new file mode 100644
index 0000000..1740fb4
--- /dev/null
+++ b/.github/workflows/pre_merge_check.yml
@@ -0,0 +1,19 @@
+name: Pre-merge check
+
+on:
+ pull_request:
+ branches:
+ - main
+ types: [opened, reopened, synchronize, labeled]
+
+jobs:
+ check_pull_request_label:
+ name: Check pull request label
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ - name: Check for the PR label
+ id: label
+ uses: zwaldowski/match-label-action@v4
+ with:
+ allowed: major,minor,patch