From 274df97886aa95de4c3ed5eb663238862605f4f1 Mon Sep 17 00:00:00 2001 From: Rick Staa Date: Fri, 15 Nov 2024 14:59:35 +0100 Subject: [PATCH 1/2] ci: fix PR labeler This commit ensures that the PR labeler action is working as expected again. --- .github/labeler.yml | 18 ++++++++++++++++++ .github/workflows/pr-labeler.yml | 2 ++ 2 files changed, 20 insertions(+) create mode 100644 .github/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000..6641abd7de --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,18 @@ +dependencies: + - '**/go.mod' + - '**/go.sum' + - '**/requirements.txt' + +docker: + - 'docker/**' + +github_actions: + - '.github/workflows/*.yml' + - '.github/workflows/*.yaml' + +go: + - '**/*.go' + +ai: + - 'ai/**' + - '**/ai_*.go' diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml index 26bade1dfc..b38be42fca 100644 --- a/.github/workflows/pr-labeler.yml +++ b/.github/workflows/pr-labeler.yml @@ -1,5 +1,7 @@ name: Label PRs on: + pull_request: + types: [opened, reopened] pull_request_target: types: [opened, reopened] From 5b23557a03d704204d16228349ce96db8865f141 Mon Sep 17 00:00:00 2001 From: Rick Staa Date: Mon, 18 Nov 2024 15:44:45 +0100 Subject: [PATCH 2/2] fix: update labeler cfg to new format This commit ensures that we use the labeler config format that was introduced in v5. --- .github/labeler.yml | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 6641abd7de..16b62af25c 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,18 +1,28 @@ dependencies: - - '**/go.mod' - - '**/go.sum' - - '**/requirements.txt' + - changed-files: + - any-glob-to-any-file: + - "**/go.mod" + - "**/go.sum" + - "**/requirements.txt" docker: - - 'docker/**' + - changed-files: + - any-glob-to-any-file: + - "docker/**" github_actions: - - '.github/workflows/*.yml' - - '.github/workflows/*.yaml' + - changed-files: + - any-glob-to-any-file: + - ".github/workflows/*.yml" + - ".github/workflows/*.yaml" go: - - '**/*.go' + - changed-files: + - any-glob-to-any-file: + - "**/*.go" ai: - - 'ai/**' - - '**/ai_*.go' + - changed-files: + - any-glob-to-any-file: + - "ai/**" + - "**/ai_*.go"