ci: tidy pr labeler labels

This commit is contained in:
psychedelicious 2024-03-02 21:42:04 +11:00 committed by Kent Keirsey
parent eef3373799
commit 0c6b0cfdab
2 changed files with 21 additions and 19 deletions

28
.github/pr_labels.yml vendored
View File

@ -1,59 +1,59 @@
Root: root:
- changed-files: - changed-files:
- any-glob-to-any-file: '*' - any-glob-to-any-file: '*'
PythonDeps: python-deps:
- changed-files: - changed-files:
- any-glob-to-any-file: 'pyproject.toml' - any-glob-to-any-file: 'pyproject.toml'
Python: python:
- changed-files: - changed-files:
- all-globs-to-any-file: - all-globs-to-any-file:
- 'invokeai/**' - 'invokeai/**'
- '!invokeai/frontend/web/**' - '!invokeai/frontend/web/**'
PythonTests: python-tests:
- changed-files: - changed-files:
- any-glob-to-any-file: 'tests/**' - any-glob-to-any-file: 'tests/**'
CICD: ci-cd:
- changed-files: - changed-files:
- any-glob-to-any-file: .github/** - any-glob-to-any-file: .github/**
Docker: docker:
- changed-files: - changed-files:
- any-glob-to-any-file: docker/** - any-glob-to-any-file: docker/**
Installer: installer:
- changed-files: - changed-files:
- any-glob-to-any-file: installer/** - any-glob-to-any-file: installer/**
Documentation: docs:
- changed-files: - changed-files:
- any-glob-to-any-file: docs/** - any-glob-to-any-file: docs/**
Invocations: invocations:
- changed-files: - changed-files:
- any-glob-to-any-file: 'invokeai/app/invocations/**' - any-glob-to-any-file: 'invokeai/app/invocations/**'
Backend: backend:
- changed-files: - changed-files:
- any-glob-to-any-file: 'invokeai/backend/**' - any-glob-to-any-file: 'invokeai/backend/**'
Api: api:
- changed-files: - changed-files:
- any-glob-to-any-file: 'invokeai/app/api/**' - any-glob-to-any-file: 'invokeai/app/api/**'
Services: services:
- changed-files: - changed-files:
- any-glob-to-any-file: 'invokeai/app/services/**' - any-glob-to-any-file: 'invokeai/app/services/**'
FrontendDeps: frontend-deps:
- changed-files: - changed-files:
- any-glob-to-any-file: - any-glob-to-any-file:
- '**/*/package.json' - '**/*/package.json'
- '**/*/pnpm-lock.yaml' - '**/*/pnpm-lock.yaml'
Frontend: frontend:
- changed-files: - changed-files:
- any-glob-to-any-file: 'invokeai/frontend/web/**' - any-glob-to-any-file: 'invokeai/frontend/web/**'

View File

@ -1,6 +1,6 @@
name: "Pull Request Labeler" name: 'label PRs'
on: on:
- pull_request_target - pull_request_target
jobs: jobs:
labeler: labeler:
@ -9,8 +9,10 @@ jobs:
pull-requests: write pull-requests: write
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- uses: actions/labeler@v5
- name: label PRs
uses: actions/labeler@v5
with: with:
configuration-path: .github/pr_labels.yml configuration-path: .github/pr_labels.yml