Commit 2455d5d
committed
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>1 parent 2b4d596 commit 2455d5d
3 files changed
Lines changed: 60 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
843 | 843 | | |
844 | 844 | | |
845 | 845 | | |
846 | | - | |
847 | | - | |
848 | | - | |
849 | | - | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
850 | 858 | | |
851 | 859 | | |
852 | 860 | | |
| |||
0 commit comments