From 0c6b0cfdab88d8f31dae12fc8cd8f38912eccb0e Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Sat, 2 Mar 2024 21:42:04 +1100 Subject: [PATCH] ci: tidy pr labeler labels --- .github/pr_labels.yml | 28 ++++++++++++++-------------- .github/workflows/label-pr.yml | 12 +++++++----- 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/.github/pr_labels.yml b/.github/pr_labels.yml index 9580ccb0be..fdf11a470f 100644 --- a/.github/pr_labels.yml +++ b/.github/pr_labels.yml @@ -1,59 +1,59 @@ -Root: +root: - changed-files: - any-glob-to-any-file: '*' -PythonDeps: +python-deps: - changed-files: - any-glob-to-any-file: 'pyproject.toml' -Python: +python: - changed-files: - all-globs-to-any-file: - 'invokeai/**' - '!invokeai/frontend/web/**' -PythonTests: +python-tests: - changed-files: - any-glob-to-any-file: 'tests/**' -CICD: +ci-cd: - changed-files: - any-glob-to-any-file: .github/** -Docker: +docker: - changed-files: - any-glob-to-any-file: docker/** -Installer: +installer: - changed-files: - any-glob-to-any-file: installer/** -Documentation: +docs: - changed-files: - any-glob-to-any-file: docs/** -Invocations: +invocations: - changed-files: - any-glob-to-any-file: 'invokeai/app/invocations/**' -Backend: +backend: - changed-files: - any-glob-to-any-file: 'invokeai/backend/**' -Api: +api: - changed-files: - any-glob-to-any-file: 'invokeai/app/api/**' -Services: +services: - changed-files: - any-glob-to-any-file: 'invokeai/app/services/**' -FrontendDeps: +frontend-deps: - changed-files: - any-glob-to-any-file: - '**/*/package.json' - '**/*/pnpm-lock.yaml' -Frontend: +frontend: - changed-files: - any-glob-to-any-file: 'invokeai/frontend/web/**' diff --git a/.github/workflows/label-pr.yml b/.github/workflows/label-pr.yml index bc14e2f2c8..1a98512190 100644 --- a/.github/workflows/label-pr.yml +++ b/.github/workflows/label-pr.yml @@ -1,6 +1,6 @@ -name: "Pull Request Labeler" +name: 'label PRs' on: -- pull_request_target + - pull_request_target jobs: labeler: @@ -9,8 +9,10 @@ jobs: pull-requests: write runs-on: ubuntu-latest steps: - - name: Checkout + - name: checkout uses: actions/checkout@v4 - - uses: actions/labeler@v5 + + - name: label PRs + uses: actions/labeler@v5 with: - configuration-path: .github/pr_labels.yml \ No newline at end of file + configuration-path: .github/pr_labels.yml