coenm / RepoM

👨‍💻 A minimal-conf git repository hub for Windows . This project is a fork of RepoZ
MIT License
9 stars 2 forks source link

Improve attribute usage in RepositoryActions #89

Closed coenm closed 6 months ago

coenm commented 6 months ago
[Predicate(true)]
coenm commented 6 months ago

search for // GitHub issue: https://github.com/coenm/RepoM/issues/89 in code.

coenm commented 6 months ago

Not sure why, but when removing attribute [DefaultValue(true)] in class

internal class TagObject : ITag
{
    public string Tag { get; set; } = string.Empty;

    [Predicate(true)]
    [DefaultValue(true)] // GitHub issue: https://github.com/coenm/RepoM/issues/89
    public Predicate When { get; set; } = new ScribanPredicate();
}

seems to break RepoM.

Guess is that the yaml deserializer uses this attribute somehow.