From dedfe62b1b3be41ab6c0b5bc05bfd071fb486ba0 Mon Sep 17 00:00:00 2001
From: Pierre Smeyers <pierre.smeyers@gmail.com>
Date: Mon, 8 Aug 2022 18:34:36 +0200
Subject: [PATCH] doc: add Adaptive Pipeline to initial release MR template

---
 .gitlab/merge_request_templates/initial.md | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/.gitlab/merge_request_templates/initial.md b/.gitlab/merge_request_templates/initial.md
index 0e4c332..9eb5050 100644
--- a/.gitlab/merge_request_templates/initial.md
+++ b/.gitlab/merge_request_templates/initial.md
@@ -11,6 +11,7 @@ Template type: **build** / **analyse** / **package** / **deploy** / **acceptance
 
 * General:
     * [ ] add project logo (`logo.png` file) - preferably 256x256
+    * [ ] define [Merge Request pipeline](https://to-be-continuous.gitlab.io/doc/usage/#merge-request-workflow) as the default workflow strategy
     * [ ] defines a base (hidden) job
     * [ ] use [rules](https://docs.gitlab.com/ee/ci/yaml/#rules) instead of [only/except](https://docs.gitlab.com/ee/ci/yaml/#onlyexcept-advanced)
     * [ ] optimized [cache](https://docs.gitlab.com/ee/ci/caching/) configuration (wherever applicable)
@@ -38,6 +39,7 @@ Template type: **build** / **analyse** / **package** / **deploy** / **acceptance
 * Build & Test job:
     * (type here the used build & test tools/frameworks)
     * [ ] mapped to the `build` stage
+    * [ ] declare a common `.test-policy` job with rules implementing the [Adaptive Pipeline strategy](https://to-be-continuous.gitlab.io/doc/usage/#test-analysis-jobs-rules) and use in test & SAST jobs
     * [ ] unit tests report integration using [JUnit test report](https://docs.gitlab.com/ee/ci/junit_test_reports.html)
     * [ ] code coverage computing and [integration](https://docs.gitlab.com/ee/ci/yaml/#coverage)
     * [ ] optimized [cache](https://docs.gitlab.com/ee/ci/caching/) configuration
@@ -58,9 +60,7 @@ Template type: **build** / **analyse** / **package** / **deploy** / **acceptance
 * Code analysis job:
     * [ ] mapped to the `test` stage
     * [ ] can be enabled/disabled by configuration
-    * [ ] whenever possible, code analysis on non-`master`, non-`develop` branches should be a partial/light analysis
-    * [ ] if the analysis is time consuming it shall be [triggered manually](https://docs.gitlab.com/ee/ci/yaml/#whenmanual)
-      by default, and automatable by configuration
+    * [ ] declare a common `.test-policy` job with rules implementing the [Adaptive Pipeline strategy](https://to-be-continuous.gitlab.io/doc/usage/#test-analysis-jobs-rules) and use in jobs
 
 ### Packaging template checklist
 
@@ -104,6 +104,7 @@ Template type: **build** / **analyse** / **package** / **deploy** / **acceptance
         * must be associated to the [`environment:action:stop`](https://docs.gitlab.com/ee/ci/yaml/#environmentaction) event
 * (optional) Analysis job(s) (linters, dependency checks, ...) depending on the technologies:
     * [ ] mapped to the `test` stage
+    * [ ] declare a common `.test-policy` job with rules implementing the [Adaptive Pipeline strategy](https://to-be-continuous.gitlab.io/doc/usage/#test-analysis-jobs-rules) and use in test & SAST jobs
 
 ### Acceptance template checklist
 
@@ -111,6 +112,7 @@ Template type: **build** / **analyse** / **package** / **deploy** / **acceptance
 
 * Acceptance test job:
     * [ ] mapped to the `acceptance` stage
+    * [ ] declare a common `.acceptance-policy` job with rules implementing the [Adaptive Pipeline strategy](https://to-be-continuous.gitlab.io/doc/usage/#test-analysis-jobs-rules) and use in test & SAST jobs
     * [ ] tests report integration using [JUnit test report](https://docs.gitlab.com/ee/ci/junit_test_reports.html)
     * [ ] auto-evaluating the environment url to test based on the possible upstream `$environment_url` variable or via 
       an `environment_url.txt` file.
-- 
GitLab