mirror of
https://github.com/bitwarden/server.git
synced 2024-11-28 13:15:12 +01:00
c63db733e0
* Workflow linting and test separation * Name linting step * Few more renames * Database testing consolidation * Few more renames and tweaks
20 lines
633 B
YAML
20 lines
633 B
YAML
---
|
|
name: Enforce PR labels
|
|
|
|
on:
|
|
workflow_call:
|
|
pull_request:
|
|
types: [labeled, unlabeled, opened, reopened, synchronize]
|
|
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') }}
|
|
name: Enforce label
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
- name: Check for label
|
|
run: |
|
|
echo "PRs with the hold or needs-qa labels cannot be merged"
|
|
echo "### :x: PRs with the hold or needs-qa labels cannot be merged" >> $GITHUB_STEP_SUMMARY
|
|
exit 1
|