2024-08-19 19:47:27 +00:00
|
|
|
name: PR Label Validation
|
|
|
|
|
|
|
|
on:
|
2024-08-28 15:33:21 +00:00
|
|
|
pull_request_target:
|
2024-08-19 19:47:27 +00:00
|
|
|
types: [opened, labeled, unlabeled, synchronize]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
validate-release-label:
|
|
|
|
runs-on: ubuntu-latest
|
2024-08-28 15:33:21 +00:00
|
|
|
permissions:
|
|
|
|
issues: write
|
2024-10-07 10:42:04 +00:00
|
|
|
pull-requests: write
|
2024-08-19 19:47:27 +00:00
|
|
|
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
|
2024-12-25 13:07:52 +00:00
|
|
|
message: "Label error. Requires {{errorString}} {{count}} of: {{ provided }}. Found: {{ applied }}. A maintainer will add the required label."
|