Skip to content

Commit 8ea2e59

Browse files
add fork handling
Signed-off-by: prashant-gurung899 <[email protected]>
1 parent d885975 commit 8ea2e59

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.woodpecker.star

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,7 @@ def main(ctx):
489489

490490
test_pipelines = \
491491
codestyle(ctx) + \
492+
# handleFork(ctx) + \
492493
checkGherkinLint(ctx) + \
493494
checkTestSuitesInExpectedFailures(ctx) + \
494495
buildWebCache(ctx) + \
@@ -544,6 +545,27 @@ def main(ctx):
544545
pipelineSanityChecks(pipelines)
545546
return pipelines
546547

548+
# def handleFork(ctx):
549+
# return [{
550+
# "name": "handle-fork",
551+
# "steps": [
552+
# {
553+
# "name": "handle-fork",
554+
# "image": "alpine/git",
555+
# "commands": [
556+
# "git remote add fork https://github.com/$CI_COMMIT_SOURCE_BRANCH.git",
557+
# "git fetch fork",
558+
# "git checkout $CI_COMMIT_SHA",
559+
# ],
560+
# },
561+
# ],
562+
# "when": [
563+
# event["base"],
564+
# event["pull_request"]
565+
# ],
566+
# }]
567+
568+
547569
def cachePipeline(ctx, name, steps):
548570
return {
549571
"name": "build-%s-cache" % name,

0 commit comments

Comments
 (0)