chore(deps): Bump golangci/golangci-lint-action from 6.1.0 to 6.1.1 in the patch-updates group across 1 directory #813
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Required Labels | |
on: | |
pull_request: | |
types: [opened, labeled, unlabeled, synchronize] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
label: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: mheap/github-action-required-labels@v5 | |
with: | |
mode: minimum | |
count: 1 | |
labels: "kind:fix, kind:misc, kind:break!, kind:refactor, kind:feat, kind:deps, kind:docs, kind:ci, kind:chore, kind:testing" # yamllint disable-line rule:line-length | |
# will attempt to apply a breaking label | |
# on opening the PR but not enforce it on repeated changes | |
# so we don't get trapped by false positives (for now) | |
# we can expand to all cases after | |
apply-breaking: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.action == 'opened' && github.actor != 'dependabot[bot]' }} | |
permissions: | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Run check for breaking | |
id: breaking_change | |
run: | | |
git fetch origin main | |
make detect-breaking | |
- name: Add label if breaking changes detected | |
if: failure() | |
run: gh issue edit "$NUMBER" --add-label "$LABELS" | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GH_REPO: ${{ github.repository }} | |
NUMBER: ${{ github.event.pull_request.number }} | |
LABELS: kind:break! |