From f3a5427495352613a0ff598cf5fd9478b7b914b0 Mon Sep 17 00:00:00 2001 From: prashant-gurung899 Date: Fri, 7 Nov 2025 16:33:16 +0545 Subject: [PATCH] add fork handling Signed-off-by: prashant-gurung899 --- .woodpecker.star | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.woodpecker.star b/.woodpecker.star index 86bab34cbf..0b033ed954 100644 --- a/.woodpecker.star +++ b/.woodpecker.star @@ -544,6 +544,26 @@ def main(ctx): pipelineSanityChecks(pipelines) return pipelines +# def handleFork(ctx): +# return [{ +# "name": "handle-fork", +# "steps": [ +# { +# "name": "handle-fork", +# "image": "alpine/git", +# "commands": [ +# "git remote add fork https://github.com/$CI_COMMIT_SOURCE_BRANCH.git", +# "git fetch fork", +# "git checkout $CI_COMMIT_SHA", +# ], +# }, +# ], +# "when": [ +# event["base"], +# event["pull_request"] +# ], +# }] + def cachePipeline(ctx, name, steps): return { "name": "build-%s-cache" % name,