Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
thorwhalen opened this issue Mar 29, 2022 · 0 comments
Open

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

thorwhalen opened this issue Mar 29, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@thorwhalen
Copy link
Member

thorwhalen commented Mar 29, 2022

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.

@thorwhalen thorwhalen added the enhancement New feature or request label Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant