Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: rework labeling jobs #1103

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions .github/workflows/pr-labeler-kind.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
name: labeler

on: [pull_request]
name: PR Labeler
on:
- pull_request_target

permissions:
pull-requests: write
issues: write

jobs:
labeler:
branch-name-labeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: |
.github/config/labeler.yml
- name: Label PR based on branch name
uses: actions/labeler@v5
with:
configuration-path: .github/config/labeler.yml
size-labeler:
runs-on: ubuntu-latest
name: Label the PR size
permissions:
Expand All @@ -33,3 +47,12 @@ jobs:
Note this PR might be rejected due to its size.
# github_api_url: 'api.github.com'
# files_to_ignore: ''
check_labels:
needs: [branch-name-labeler, size-labeler]
name: Check labels
runs-on: ubuntu-latest
steps:
- uses: docker://agilepathway/pull-request-label-checker:latest
with:
one_of: hore,fix,bugfix,bug,kind/bug,feature,enhancement,kind/enhancement,dependencies
repo_token: ${{ secrets.GITHUB_TOKEN }}
Loading