Skip to content

get the news fragment "types" #684

@ewohnlich

Description

@ewohnlich

I want to get some metadata on the current news fragments, specifically the type. The idea is to save this result somewhere and use it to determine the semantic version to use. For instance, if the fragments were validated against my config and returned "bugfix,feat,bugfix,doc" I would use that and say, ok "feat" is the highest so I can run hatch version minor in my pipeline. Is this a good idea? bad idea?

As far as I can tell the closest way to do this is parse the towncrier check output. But that's not ideal because I can't take advantage of all of the useful utility functions already in place like parse_newfragment_basename. Is there an existing practical solution I am missing?

Metadata

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