How do I update a value and add a comment at the same time? #1666
Unanswered
andrewimeson
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have this (simplified) pre-commit file in a bunch of places with a bunch of variations that I need to update.
I need to set the revision for
yamlfix
to1.3.1
and also add a comment above mentioning why it's pinned at that versionThe exact placement of the comment isn't critical, I just want it somewhere around the yamlfix dictionary.
I can update the value successfully with
But I can't seem to find a way to set
head_comment
. One way I attempted to ended up with therev
of all items being updatedBeta Was this translation helpful? Give feedback.
All reactions