Skip to content

release: 2024-08-27 #17731

release: 2024-08-27

release: 2024-08-27 #17731

Workflow file for this run

---
name: PR Labels
on:
pull_request:
types: [opened, labeled, unlabeled, synchronize, reopened, edited, ready_for_review]
jobs:
pr_labels:
name: 🏭 Verify labels
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GH_ACT_PAT }}
steps:
- name: 🏷 Verify PR has a valid label
uses: mheap/github-action-required-labels@5847eef68201219cf0a4643ea7be61e77837bbce # v5
with:
labels: 'breaking-change, bugfix, documentation, enhancement, refactor, performance, new-feature, maintenance, ci, dependencies, translations, changelog-ignore, release'
mode: minimum
count: 1
pr_wip_check:
runs-on: ubuntu-latest
name: 🏭 Check for blocking labels
env:
GITHUB_TOKEN: ${{ secrets.GH_ACT_PAT }}
steps:
- name: 🏷 Check PR for a merge-blocking label
uses: tim-actions/wip-check@8c84f5987215d49440b86475062d61e4f099e1b7 # main branch
with:
labels: '["do-not-merge", "wip", "rfc", "blocked"]'
keywords: '["WIP", "wip", "RFC", "rfc"]'
pr_monorepo_label:
name: 🏭 Label PR With Repo(s)
runs-on: ubuntu-latest
if: contains(fromJson('["main", "l10_*"]'), github.base_ref) != true
env:
GITHUB_TOKEN: ${{ secrets.GH_ACT_PAT }}
steps:
- name: 🏷 Apply repo labels
uses: tinkurlab/monorepo-pr-labeler-action@026d1e71df075b29ee3986875bfbb8a5b5d969f1 # 4.2.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BASE_DIRS: 'apps|packages|lambas'
with:
prefix: '📦'
separator: ' '
squash_merge:
name: 🏭 Add misc PR labels
runs-on: ubuntu-latest
if: github.base_ref != 'main'
env:
GITHUB_TOKEN: ${{ secrets.GH_ACT_PAT }}
steps:
- name: Kodiak squash merge
uses: actions-ecosystem/action-add-labels@18f1af5e3544586314bbe15c0273249c770b2daf # v1
with:
labels: |
automerge
kodiak: merge.method = 'squash'