From db1c198d362fd93fa7f4446408a0f09c63655602 Mon Sep 17 00:00:00 2001 From: Akash LM Date: Mon, 8 Apr 2024 13:16:21 +0530 Subject: [PATCH 1/3] Fix: github action failure --- .github/labeler.yml | 36 ++++++++++++++++++++++++ .github/workflows/agent-container-pr.yml | 3 ++ .github/workflows/agent-git-pr.yml | 3 ++ .github/workflows/agent-kubviz-pr.yml | 3 ++ .github/workflows/client-pr.yml | 3 ++ .github/workflows/migration-pr.yml | 3 ++ 6 files changed, 51 insertions(+) create mode 100644 .github/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000..45fa1731 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,36 @@ +# Add 'Documentation' label to any changes within 'docs' folder or any subfolders +Documentation: +- changed-files: + - any-glob-to-any-file: docs/** + +# Add 'Documentation' label to any file changes within 'docs' folder +Documentation: +- changed-files: + - any-glob-to-any-file: docs/* + +# Add 'Documentation' label to any file changes within 'docs' or 'guides' folders +Documentation: +- changed-files: + - any-glob-to-any-file: + - docs/* + - guides/* + +# Add 'Documentation' label to any change to .md files within the entire repository +Documentation: +- changed-files: + - any-glob-to-any-file: '**/*.md' + +# Add 'source' label to any change to src files within the source dir EXCEPT for the docs sub-folder +source: +- all: + - changed-files: + - any-glob-to-any-file: 'src/**/*' + - all-globs-to-all-files: '!src/docs/*' + +# Add 'feature' label to any PR where the head branch name starts with `feature` or has a `feature` section in the name +feature: + - head-branch: ['^feature', 'feature'] + +# Add 'release' label to any PR that is opened against the `main` branch +release: + - base-branch: 'main' \ No newline at end of file diff --git a/.github/workflows/agent-container-pr.yml b/.github/workflows/agent-container-pr.yml index 5c61e536..a0f0e1ad 100644 --- a/.github/workflows/agent-container-pr.yml +++ b/.github/workflows/agent-container-pr.yml @@ -2,6 +2,9 @@ name: Container Agent Docker Image CI on: pull_request: + paths-ignore: + - '**.md' + - 'charts/**' branches: - 'main' diff --git a/.github/workflows/agent-git-pr.yml b/.github/workflows/agent-git-pr.yml index cd2f294c..17a15552 100644 --- a/.github/workflows/agent-git-pr.yml +++ b/.github/workflows/agent-git-pr.yml @@ -2,6 +2,9 @@ name: Git Agent Docker Image CI on: pull_request: + paths-ignore: + - '**.md' + - 'charts/**' branches: - 'main' diff --git a/.github/workflows/agent-kubviz-pr.yml b/.github/workflows/agent-kubviz-pr.yml index cc0cf561..81233d39 100644 --- a/.github/workflows/agent-kubviz-pr.yml +++ b/.github/workflows/agent-kubviz-pr.yml @@ -2,6 +2,9 @@ name: Agent Docker Image CI on: pull_request: + paths-ignore: + - '**.md' + - 'charts/**' branches: - 'main' diff --git a/.github/workflows/client-pr.yml b/.github/workflows/client-pr.yml index 870686a1..623ecad7 100644 --- a/.github/workflows/client-pr.yml +++ b/.github/workflows/client-pr.yml @@ -2,6 +2,9 @@ name: Client Docker Image CI on: pull_request: + paths-ignore: + - '**.md' + - 'charts/**' branches: - 'main' diff --git a/.github/workflows/migration-pr.yml b/.github/workflows/migration-pr.yml index 3d582691..2bcd5997 100644 --- a/.github/workflows/migration-pr.yml +++ b/.github/workflows/migration-pr.yml @@ -2,6 +2,9 @@ name: Migration Docker Image CI on: pull_request: + paths-ignore: + - '**.md' + - 'charts/**' branches: - 'main' From 34eb70f503191b330f586680b71bc45a37dffa7b Mon Sep 17 00:00:00 2001 From: Akash LM Date: Mon, 8 Apr 2024 13:24:06 +0530 Subject: [PATCH 2/3] Fix: github action failure --- .github/labeler.yml | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 45fa1731..7f3d0407 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,36 +1,36 @@ # Add 'Documentation' label to any changes within 'docs' folder or any subfolders Documentation: -- changed-files: - - any-glob-to-any-file: docs/** + - changed-files: + - any-glob-to-any-file: docs/** # Add 'Documentation' label to any file changes within 'docs' folder -Documentation: -- changed-files: - - any-glob-to-any-file: docs/* +Documentation_docs: + - changed-files: + - any-glob-to-any-file: docs/* # Add 'Documentation' label to any file changes within 'docs' or 'guides' folders -Documentation: -- changed-files: - - any-glob-to-any-file: - - docs/* - - guides/* +Documentation_guides: + - changed-files: + - any-glob-to-any-file: + - docs/* + - guides/* # Add 'Documentation' label to any change to .md files within the entire repository -Documentation: -- changed-files: - - any-glob-to-any-file: '**/*.md' +Documentation_md: + - changed-files: + - any-glob-to-any-file: '**/*.md' # Add 'source' label to any change to src files within the source dir EXCEPT for the docs sub-folder source: -- all: - - changed-files: - - any-glob-to-any-file: 'src/**/*' - - all-globs-to-all-files: '!src/docs/*' + - all: + - changed-files: + - any-glob-to-any-file: 'src/**/*' + - all-globs-to-all-files: '!src/docs/*' # Add 'feature' label to any PR where the head branch name starts with `feature` or has a `feature` section in the name feature: - - head-branch: ['^feature', 'feature'] + - head-branch: ['^feature', 'feature'] # Add 'release' label to any PR that is opened against the `main` branch release: - - base-branch: 'main' \ No newline at end of file + - base-branch: 'main' From 4e90f0e862bb62e28823df6328fd1f6f50e556fd Mon Sep 17 00:00:00 2001 From: Akash LM Date: Mon, 8 Apr 2024 13:43:08 +0530 Subject: [PATCH 3/3] Fix: github action failure --- .github/labeler.yml | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 7f3d0407..ffeada5d 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,31 +1,20 @@ # Add 'Documentation' label to any changes within 'docs' folder or any subfolders Documentation: - changed-files: - - any-glob-to-any-file: docs/** + - any-glob-to-any-file: + - 'docs/**' # Add 'Documentation' label to any file changes within 'docs' folder Documentation_docs: - changed-files: - - any-glob-to-any-file: docs/* - -# Add 'Documentation' label to any file changes within 'docs' or 'guides' folders -Documentation_guides: - - changed-files: - - any-glob-to-any-file: - - docs/* - - guides/* + - any-glob-to-any-file: + - 'docs/*' # Add 'Documentation' label to any change to .md files within the entire repository Documentation_md: - changed-files: - - any-glob-to-any-file: '**/*.md' - -# Add 'source' label to any change to src files within the source dir EXCEPT for the docs sub-folder -source: - - all: - - changed-files: - - any-glob-to-any-file: 'src/**/*' - - all-globs-to-all-files: '!src/docs/*' + - any-glob-to-any-file: + - '**/*.md' # Add 'feature' label to any PR where the head branch name starts with `feature` or has a `feature` section in the name feature: