forked from paketo-buildpacks/python
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 795 Bytes
/
label-pr.yml
File metadata and controls
33 lines (30 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Set / Validate PR Labels
on:
pull_request_target:
branches:
- main
types:
- synchronize
- opened
- reopened
- labeled
- unlabeled
concurrency: pr_labels_${{ github.event.number }}
jobs:
autolabel:
name: Ensure Minimal Semver Labels
runs-on: ubuntu-24.04
steps:
- name: Check Minimal Semver Labels
uses: mheap/github-action-required-labels@v5
with:
count: 1
labels: semver:major, semver:minor, semver:patch
mode: exactly
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Auto-label Semver
if: ${{ failure() }}
uses: paketo-buildpacks/github-config/actions/pull-request/auto-semver-label@main
env:
GITHUB_TOKEN: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}