Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix JSON protection unmarshal error #2606

Merged
merged 1 commit into from Dec 26, 2022
Merged

Commits on Dec 23, 2022

  1. fix(protection): Resolves json unmarshal protection error

    Currently when trying to load in protection an error is thrown due to
    a data structure mismatch resulting in errors:
    json: cannot unmarshal object into Go struct field Protection.lock_branch of type bool
    json: cannot unmarshal object into Go struct field Protection.allow_fork_syncing of type bool
    This is due to them using an enabled field which the current structure
    does not understand. This change introduces the relevant structure and
    has been tested locally.
    
    Signed-off-by: Jason Field <jason@avon-lea.co.uk>
    xorima committed Dec 23, 2022
    Copy the full SHA
    2455d5d View commit details
    Browse the repository at this point in the history