Skip to content

feature: global project defaults #1995

Open
@dannysauer

Description

@dannysauer

As a user, I'd like to specify common project defaults once in the digger.yaml instead of duplicating across multiple projects. For example:

project_defaults:
- opentofu: true
  include_patterns:
    - ../../.tool-versions
    - ../../.github/workflows/digger_*.yml

This would set all projects to use opentofu, and specify two paths which should be merged with any project-specific include patterns. Presumably, name and path would be invalid in this section. The depends_on parameter might be doable as long as "depends on self" is silently ignored. :)

Allowing specification of common attributes across multiple projects reduces boilerplate code, making it easier to read the config file without the cognitive load of identifying and skipping unimportant segments. It also reduces the probability of error when adding a new project.

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