Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Bug]: FetchDepth missing from IR — round-trip data loss #9

@t0st

Description

@t0st

pisyn version

pisyn dev (schema v1)

Affected platform

GitLab CI

What happened?

Problem

IRJob in pkg/pisyn/ir.go doesn't include FetchDepth. Round-tripping through pipeline.json (via pisyn buildpisyn graph/pisyn run) loses the fetch depth setting.

Suggested Fix

Add FetchDepth int to IRJob, and update jobToIR() and irJobToJob() to map it.

Files

  • pkg/pisyn/ir.goIRJob, jobToIR(), irJobToJob()

Expected behavior

FetchDepth gets included in the pipeline.json

Steps to reproduce

Actual output

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions