From 1259f4e0b8fedbbb6a646b65a376280ccdc35c36 Mon Sep 17 00:00:00 2001 From: Pavel Vaks <129676672+PavelLinearB@users.noreply.github.com> Date: Thu, 28 Mar 2024 14:01:01 +0200 Subject: [PATCH 1/2] add regex to ignore repos --- docs/cm-file.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/cm-file.md b/docs/cm-file.md index 789495c4..a895a4e4 100644 --- a/docs/cm-file.md +++ b/docs/cm-file.md @@ -117,7 +117,7 @@ The `config` section is optional in the `.cm` file and is used to specify config | `config` | Map | - | per `.cm` file | The config section, applies for the automations defined in the current file | | `config.admin.users` | [String] | `[]` | `gitstream.cm` | Admin user list (use the Git provider user names) | | `config.ignore_files` | [String] | `[]` | per `.cm` file | Exclude specific files | -| `config.ignore_repositories` | [String] | `[]` | per `.cm` file | Exclude specific repositories | +| `config.ignore_repositories` | [String]
[regex] | `[]` | per `.cm` file | Exclude specific repositories | | `config.user_mapping` | [String: String] | `[]` | per `.cm` file | Key value list of Git user detailes and Git provider account names | @@ -152,16 +152,16 @@ config: ##### `config.ignore_repositories` -The `config.ignore_repositories` contains a list of repositories to ignore, for example: +The `config.ignore_repositories` contains a list of repositories to ignore by their names, or by a regular expression, for example: ```yaml title="example" config: ignore_repositories: - - services + - r/_service$/ - common ``` -For the listed repositories, the automation defined in the CM file shall not apply. +For the repository `common` and all repositories with the `_service` suffix, the automation defined in the CM file shall not apply. ##### `config.user_mapping` From e33da2d352663dd9ad933ea757c399174e7647f8 Mon Sep 17 00:00:00 2001 From: Pavel Vaks <129676672+PavelLinearB@users.noreply.github.com> Date: Thu, 28 Mar 2024 14:03:12 +0200 Subject: [PATCH 2/2] Update changelog.md --- docs/changelog.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/changelog.md b/docs/changelog.md index c012cc52..c40c8f3f 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,7 +1,8 @@ # /:\\ gitStream Changelog All notable changes to this project will be documented in this file. - +### 2024.3.28 +- Supporting regular expressions in `config.ignore_repositories` ### 2024.3.14 - Added the following explicit triggers: - `pr_ready_for_review` @@ -12,4 +13,4 @@ All notable changes to this project will be documented in this file. - Triggering on comment edits - Added support for `request-changes` action in GitLab ### 2023.11.22 -- gitStream Playground official release \ No newline at end of file +- gitStream Playground official release