From c99fbf8690d7dc47126db87f64692148bb545578 Mon Sep 17 00:00:00 2001 From: "h.nejati" Date: Mon, 26 Oct 2026 18:32:09 +0330 Subject: [PATCH 1/2] ci: label pull requests by changed paths --- .github/labeler.yml | 73 +++++++++++++++++++++++++++++++++++ .github/workflows/labeler.yml | 17 ++++++++ .github/workflows/tests.yml | 3 +- 3 files changed, 92 insertions(+), 1 deletion(-) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000..b75dae1d --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,73 @@ +area:elasticsearch: + - changed-files: + - any-glob-to-any-file: "packages/elasticsearch/**" +area:kafka: + - changed-files: + - any-glob-to-any-file: "packages/kafka/**" +area:keycloak: + - changed-files: + - any-glob-to-any-file: "packages/keycloak/**" +area:minio: + - changed-files: + - any-glob-to-any-file: "packages/minio/**" +area:mysql: + - changed-files: + - any-glob-to-any-file: "packages/mysql/**" +area:parsian-ipg: + - changed-files: + - any-glob-to-any-file: "packages/parsian-ipg/**" +area:postgres: + - changed-files: + - any-glob-to-any-file: "packages/postgres/**" +area:redis: + - changed-files: + - any-glob-to-any-file: "packages/redis/**" +area:saman-ipg: + - changed-files: + - any-glob-to-any-file: "packages/saman-ipg/**" +area:scylladb: + - changed-files: + - any-glob-to-any-file: "packages/scylladb/**" +area:sqlite: + - changed-files: + - any-glob-to-any-file: "packages/sqlite/**" +area:starrocks: + - changed-files: + - any-glob-to-any-file: "packages/starrocks/**" +area:temporal: + - changed-files: + - any-glob-to-any-file: "packages/temporal/**" +area:vault: + - changed-files: + - any-glob-to-any-file: "packages/vault/**" +area:email: + - changed-files: + - any-glob-to-any-file: + - "archipy/adapters/email/**" +area:models: + - changed-files: + - any-glob-to-any-file: + - "archipy/models/**" +area:configs: + - changed-files: + - any-glob-to-any-file: + - "archipy/configs/**" +area:helpers: + - changed-files: + - any-glob-to-any-file: + - "archipy/helpers/**" +area:testing: + - changed-files: + - any-glob-to-any-file: + - "features/**" + - "scripts/**" +area:ci: + - changed-files: + - any-glob-to-any-file: + - ".github/**" +documentation: + - changed-files: + - any-glob-to-any-file: + - "docs/**" + - "**/*.md" + - "**/*.mdc" diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 00000000..6e2e75c3 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,17 @@ +name: Label pull requests + +on: + pull_request_target: + types: [opened, synchronize, reopened] + +permissions: + contents: read + pull-requests: write + +jobs: + label: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v6 + with: + sync-labels: false diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c147b88c..928483fe 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -185,7 +185,8 @@ jobs: - '!LICENSE' - '!mkdocs.yml' - '!.github/ISSUE_TEMPLATE/**' - - '!.github/workflows/{close-stale-issues,deploy-docs,docs-check,instrumentor-compat,pr-merged-issue-comment,publish,ruff-lint,ty-lint}.yml' + - '!.github/workflows/{close-stale-issues,codeql,deploy-docs,dependency-review,docs-check,instrumentor-compat,labeler,link-check,pr-merged-issue-comment,publish,ruff-lint,ty-lint}.yml' + - '!.github/labeler.yml' - '!packages/keycloak/**' - '!packages/kafka/**' - '!packages/redis/**' From 2ae6bfca65d412846167eaa1430d180abb8fe6fe Mon Sep 17 00:00:00 2001 From: "h.nejati" Date: Mon, 26 Oct 2026 18:35:49 +0330 Subject: [PATCH 2/2] ci: drop codeql from the shared filter exclusion --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 928483fe..2a75f40f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -185,7 +185,7 @@ jobs: - '!LICENSE' - '!mkdocs.yml' - '!.github/ISSUE_TEMPLATE/**' - - '!.github/workflows/{close-stale-issues,codeql,deploy-docs,dependency-review,docs-check,instrumentor-compat,labeler,link-check,pr-merged-issue-comment,publish,ruff-lint,ty-lint}.yml' + - '!.github/workflows/{close-stale-issues,deploy-docs,dependency-review,docs-check,instrumentor-compat,labeler,link-check,pr-merged-issue-comment,publish,ruff-lint,ty-lint}.yml' - '!.github/labeler.yml' - '!packages/keycloak/**' - '!packages/kafka/**'