Skip to content

Feature: Prettify json before committing it to git #6550

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

Open
2 tasks done
prakarsh-dt opened this issue May 6, 2025 · 2 comments
Open
2 tasks done

Feature: Prettify json before committing it to git #6550

prakarsh-dt opened this issue May 6, 2025 · 2 comments
Assignees
Labels
enhancement New feature or request ENT-LNK needs-triage Issue is not approved or ready-to-work on

Comments

@prakarsh-dt
Copy link
Collaborator

🔖 Feature description

Prettify json before committing it to git. Right now the entire json is committed as a single line and No git providers show the diff within the same extended line. It's almost impossible to figure out the changes if ever required (may be required for audit, manual overrides etc)

Image

🎤 Pitch / Usecases

Committing a multiline prettified json will enable better readability for audit purposes and manual interventions.

🔄️ Alternative

No response

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@prakarsh-dt prakarsh-dt added enhancement New feature or request needs-triage Issue is not approved or ready-to-work on labels May 6, 2025
@abhibhaw
Copy link
Member

abhibhaw commented May 6, 2025

How about committing the yaml instead of json? @prakarsh-dt

@prakarsh-dt
Copy link
Collaborator Author

prakarsh-dt commented May 6, 2025

How about committing the yaml instead of json? @prakarsh-dt

How about also saving it in YAML (in DB) so that we can preserve comments as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ENT-LNK needs-triage Issue is not approved or ready-to-work on
Projects
None yet
Development

No branches or pull requests

2 participants