Skip to content

Make it easier to do ci.yml CRUD in bulk. #16

@thorwhalen

Description

@thorwhalen

Safely and automatically edit ci.yml CI definition files in bulk.

Example use case.

Two packages (here axblack and click) are not compatible -- click or axlback need to "fix". Meanwhile we need to fix the install version in ci.yml. But as soon as click is fixed, we'd like to revert back to the non-constrained version.

We'd like to do this over 100+ repositories.

Each repo comes from a templated ci.yml, but the template has changed over time, and some ci.yml files have been edited manually to accommodate for particulars.

What we want to be able to do is local edits automatically. That is, find the line(s) that have to be edited (with high certainty) and edit them (or add lines, or remove lines...).

Since yml is a serialization of a tree structure, we should do this CRUD at the level of that, not the raw file contents itself. Something like:

image

Notes

Has to do with embody

See remap and dol.kv_walk before starting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions