Skip to content

Commit

Permalink
chore(ci): fix failing actions/labeler
Browse files Browse the repository at this point in the history
Reformatted the `actions/labeler` configuration for v5.0.0 requirements.

Signed-off-by: Ryan Johnson <ryan.johnson@broadcom.com>
  • Loading branch information
tenthirtyam committed Dec 15, 2023
1 parent 11533ef commit 0a26b90
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 44 deletions.
24 changes: 17 additions & 7 deletions .github/labeler-pull-requests.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
---
chore:
- '.github/**/*'
- '.gitignore'
- changed-files:
- any-glob-to-any-file:
- ".ci/**/*"
- ".github/**/*"
- ".gitignore"
documentation:
- '**/*.md'
- changed-files:
- any-glob-to-any-file:
- "**/*.md"
- "Makefile"
- "**/*.md"
- "mkdocs.yml"
github-actions:
- '.github/workflows/**/*'
- changed-files:
- any-glob-to-any-file:
- ".github/workflows/**/*"
needs-review:
- '**'
- '.*'
- '.*/**'
- changed-files:
- any-glob-to-any-file:
- "**"
51 changes: 14 additions & 37 deletions .github/workflows/pull-requests.yml
Original file line number Diff line number Diff line change
@@ -1,50 +1,27 @@
---
name: Pull Request Target
name: Pull Request Labels

on:
pull_request_target:
branches:
- develop
types:
- opened
- synchronize
- reopened
- edited
- ready_for_review

env:
IN_MAINTAINER_LIST: '${{ contains(secrets.MAINTAINER_LIST, github.actor) }}'
- opened
- synchronize
- reopened
- edited
- ready_for_review

jobs:
label-needs-review:
labeler:
name: Labeler
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Apply Labels
uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
if: github.event.action == 'opened' && env.IN_MAINTAINER_LIST == 'false'
with:
configuration-path: .github/labeler-pull-requests.yml
repo-token: '${{ secrets.GITHUB_TOKEN }}'
label-size:
runs-on: ubuntu-latest
steps:
- name: Apply Size Label
uses: codelytv/pr-size-labeler@54ef36785e9f4cb5ecf1949cfc9b00dbb621d761 # v1.8.1
with:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
xs_label: size/xs
xs_max_size: '10'
s_label: size/s
s_max_size: '100'
m_label: size/m
m_max_size: '500'
l_label: size/l
l_max_size: '1000'
xl_label: size/xl
fail_if_xl: 'false'
message_if_xl: >-
This pull request exceeds the recommended size of 1000 lines and
might be rejected due to its size.
Please make sure you are not addressing multiple issues in a pull
request.
github_api_url: api.github.com

repo-token: '${{ secrets.GITHUB_TOKEN }}'

0 comments on commit 0a26b90

Please sign in to comment.