Skip to content

Add Compatibility for category and categories in Properties Files #45

Open
@SableRaf

Description

Continuing the conversation with @mingness started in #42

Do you want to allow a library to submit without a category? If so, then the validate script needs updating, wrt optional or required fields.

Thanks for catching that! The properties file for LazyGUI (which is the library I picked as an example for testing my changes to the issue templates) is using category instead of categories which caused the workflow to error out.

The original script appears to have gracefully handled this by mapping category to categories when creating the contribs file.

To maintain compatibility with both formats (category and categories), we should update the script to support this mapping.

Regarding the case where category or categories are both missing or unpopulated, it looks like the original script set categories as null if it couldn't find it though I don't know if that was intentional (see here for example). I'd lean towards throwing an error and asking the contributor to pick at least one category.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions