actions-label-commenter icon indicating copy to clipboard operation
actions-label-commenter copied to clipboard

proposal: Define config types and validate those

Open peaceiris opened this issue 5 years ago • 3 comments

Is your feature request related to a problem? Please describe.

Validate config file at first.

Describe the solution you'd like

Libraries

Describe alternatives you've considered

Additional context

peaceiris avatar Nov 25 '20 05:11 peaceiris

Thank you @peaceiris for suggesting this.

github-actions[bot] avatar Nov 25 '20 05:11 github-actions[bot]

export interface Labeled {
    issue: Issue;
    pr?:   Issue;
}

This wonders me... Would this make issue required? SInce it lacks the ? which to my basic ts knowledge makes it optional/nullable?

Andre601 avatar Aug 11 '21 00:08 Andre601

That is a simple example generated with yaml-to-typescript. In order to avoid misunderstandings, I have deleted that and added some useful libraries for validation.

peaceiris avatar Aug 11 '21 01:08 peaceiris