mirror of
https://github.com/bitwarden/server
synced 2025-12-24 12:13:17 +00:00
22 lines
762 B
YAML
22 lines
762 B
YAML
name: Enforce PR labels
|
|
|
|
on:
|
|
workflow_call:
|
|
pull_request:
|
|
types: [labeled, unlabeled, opened, reopened, synchronize]
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
enforce-label:
|
|
if: ${{ contains(github.event.*.labels.*.name, 'hold') || contains(github.event.*.labels.*.name, 'needs-qa') || contains(github.event.*.labels.*.name, 'DB-migrations-changed') || contains(github.event.*.labels.*.name, 'ephemeral-environment') }}
|
|
name: Enforce label
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
- name: Check for label
|
|
run: |
|
|
echo "PRs with the hold, needs-qa or ephemeral-environment labels cannot be merged"
|
|
echo "### :x: PRs with the hold, needs-qa or ephemeral-environment labels cannot be merged" >> "$GITHUB_STEP_SUMMARY"
|
|
exit 1
|