diff --git a/.github/pr_labels.yml b/.github/pr_labels.yml new file mode 100644 index 0000000000..9580ccb0be --- /dev/null +++ b/.github/pr_labels.yml @@ -0,0 +1,59 @@ +Root: +- changed-files: + - any-glob-to-any-file: '*' + +PythonDeps: +- changed-files: + - any-glob-to-any-file: 'pyproject.toml' + +Python: +- changed-files: + - all-globs-to-any-file: + - 'invokeai/**' + - '!invokeai/frontend/web/**' + +PythonTests: +- changed-files: + - any-glob-to-any-file: 'tests/**' + +CICD: +- changed-files: + - any-glob-to-any-file: .github/** + +Docker: +- changed-files: + - any-glob-to-any-file: docker/** + +Installer: +- changed-files: + - any-glob-to-any-file: installer/** + +Documentation: +- changed-files: + - any-glob-to-any-file: docs/** + +Invocations: +- changed-files: + - any-glob-to-any-file: 'invokeai/app/invocations/**' + +Backend: +- changed-files: + - any-glob-to-any-file: 'invokeai/backend/**' + +Api: +- changed-files: + - any-glob-to-any-file: 'invokeai/app/api/**' + +Services: +- changed-files: + - any-glob-to-any-file: 'invokeai/app/services/**' + +FrontendDeps: +- changed-files: + - any-glob-to-any-file: + - '**/*/package.json' + - '**/*/pnpm-lock.yaml' + +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 new file mode 100644 index 0000000000..bc14e2f2c8 --- /dev/null +++ b/.github/workflows/label-pr.yml @@ -0,0 +1,16 @@ +name: "Pull Request Labeler" +on: +- pull_request_target + +jobs: + labeler: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - uses: actions/labeler@v5 + with: + configuration-path: .github/pr_labels.yml \ No newline at end of file