Skip to content

CICD: Auto-generate GoReleaser provider regexp #4253

Description

@cafferata

The Provider-specific changes regexp in .goreleaser.yml is a hardcoded list of provider names used to group changelog entries. When a new provider is added, this regexp must be manually updated, which is easy to forget.

- title: 'Provider-specific changes:'
  regexp: "(?i)((adguardhome|akamaiedgedns|alidns|...|vultr).*:)+.*"

Auto-generating this list from the registered provider constants would solve that, but introduces a question about historical aliases. In #4072 (comment) @TomOnTime (@tlimoncelli) noted that both CLOUDFLAREAPI and the common shorthand CLOUDFLARE should be accepted. With auto-generation only CLOUDFLAREAPI would appear, since that's the registered constant. The same applies to other historical aliases like HEXONET (now CNR), GANDI (now GANDI_V5), NSONE (now NS1), etc.

How should we handle these?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildPull requests that updates CI code

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions