mirror of
https://github.com/immich-app/immich.git
synced 2024-12-28 06:31:58 +00:00
22 lines
643 B
YAML
22 lines
643 B
YAML
name: PR Label Validation
|
|
|
|
on:
|
|
pull_request_target:
|
|
types: [opened, labeled, unlabeled, synchronize]
|
|
|
|
jobs:
|
|
validate-release-label:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
issues: write
|
|
pull-requests: write
|
|
steps:
|
|
- name: Require PR to have a changelog label
|
|
uses: mheap/github-action-required-labels@v5
|
|
with:
|
|
mode: exactly
|
|
count: 1
|
|
use_regex: true
|
|
labels: "changelog:.*"
|
|
add_comment: true
|
|
message: "Label error. Requires {{errorString}} {{count}} of: {{ provided }}. Found: {{ applied }}. A maintainer will add the required label."
|