From 17d49996e30ffe89b1818cb4e14f5fd801baa90a Mon Sep 17 00:00:00 2001 From: Viktor Scharf Date: Fri, 20 Mar 2026 10:16:24 +0100 Subject: [PATCH 1/2] add final step for branch protection --- .woodpecker.star | 6 +++--- tests/acceptance/features/apiGraph/favorites.feature | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.woodpecker.star b/.woodpecker.star index 5d805746a9..c971cbc947 100644 --- a/.woodpecker.star +++ b/.woodpecker.star @@ -569,7 +569,7 @@ def main(ctx): ), ) - pipelines = test_pipelines + build_release_pipelines + genDocsPr(ctx) + notifyMatrix(ctx) + pipelines = test_pipelines + build_release_pipelines + genDocsPr(ctx) + notifyMatrixCheckSteps(ctx) pipelineSanityChecks(pipelines) return savePipelineNumber(ctx) + pipelines @@ -2283,9 +2283,9 @@ def genDocsPr(ctx): ], }] -def notifyMatrix(ctx): +def notifyMatrixCheckSteps(ctx): result = [{ - "name": "chat-notifications", + "name": "all-checks-finished", "skip_clone": True, "runs_on": ["success", "failure"], "depends_on": getPipelineNames(testPipelines(ctx)), diff --git a/tests/acceptance/features/apiGraph/favorites.feature b/tests/acceptance/features/apiGraph/favorites.feature index 95bbc93d80..7259bac371 100644 --- a/tests/acceptance/features/apiGraph/favorites.feature +++ b/tests/acceptance/features/apiGraph/favorites.feature @@ -273,7 +273,7 @@ Feature: favorites | permissionsRole | Viewer | And user "Brian" has a share "parent" synced When user "Brian" marks folder "parent/sub" as favorite from space "Shares" using the Graph API - Then the HTTP status code should be "201" + Then the HTTP status code should be "500" And the JSON data of the response should match """ { From d6fe39d60b4bc63830c5292314d015251740a6d1 Mon Sep 17 00:00:00 2001 From: Viktor Scharf Date: Fri, 20 Mar 2026 10:51:42 +0100 Subject: [PATCH 2/2] add step for ready release --- .woodpecker.star | 9 +++++---- tests/acceptance/features/apiGraph/favorites.feature | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.woodpecker.star b/.woodpecker.star index c971cbc947..547d92bb68 100644 --- a/.woodpecker.star +++ b/.woodpecker.star @@ -498,7 +498,8 @@ def main(ctx): is_release_pr = (ctx.build.event == "pull_request" and ctx.build.sender == "openclouders" and "🎉 release" in ctx.build.title.lower()) if is_release_pr: return checkVersionPlaceholder() + \ - licenseCheck(ctx) + licenseCheck(ctx) + \ + notifyMatrixCheckSteps(ctx, getPipelineNames(licenseCheck(ctx) + checkVersionPlaceholder())) build_release_helpers = \ readyReleaseGo() @@ -569,7 +570,7 @@ def main(ctx): ), ) - pipelines = test_pipelines + build_release_pipelines + genDocsPr(ctx) + notifyMatrixCheckSteps(ctx) + pipelines = test_pipelines + build_release_pipelines + genDocsPr(ctx) + notifyMatrixCheckSteps(ctx, getPipelineNames(testPipelines(ctx))) pipelineSanityChecks(pipelines) return savePipelineNumber(ctx) + pipelines @@ -2283,12 +2284,12 @@ def genDocsPr(ctx): ], }] -def notifyMatrixCheckSteps(ctx): +def notifyMatrixCheckSteps(ctx, depends_on): result = [{ "name": "all-checks-finished", "skip_clone": True, "runs_on": ["success", "failure"], - "depends_on": getPipelineNames(testPipelines(ctx)), + "depends_on": depends_on, "steps": [ { "name": "notify-matrix", diff --git a/tests/acceptance/features/apiGraph/favorites.feature b/tests/acceptance/features/apiGraph/favorites.feature index 7259bac371..95bbc93d80 100644 --- a/tests/acceptance/features/apiGraph/favorites.feature +++ b/tests/acceptance/features/apiGraph/favorites.feature @@ -273,7 +273,7 @@ Feature: favorites | permissionsRole | Viewer | And user "Brian" has a share "parent" synced When user "Brian" marks folder "parent/sub" as favorite from space "Shares" using the Graph API - Then the HTTP status code should be "500" + Then the HTTP status code should be "201" And the JSON data of the response should match """ {