-
Notifications
You must be signed in to change notification settings - Fork 131
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
Location field autofill #1060
Comments
This goes together with #1056 |
I'm not sure I understand. At which point should it be autofilled? And what does "autofilled" mean in this context? Just use that information in lieu of missing config? Or actually update the config? |
I was thinking about actually updating the config. Not sure how exactly that would work out though - the type of the Lines 95 to 101 in c4c9641
So if we don't have a |
Ok, just to clarify: does "auto-filling" involve writing the config back to disk? Or only adding it in memory after the config is read? Also: is there a particular reason for doing all that patching in JS? Without any more context, I would assume this kind of patching should be part of the codecs. |
Generally we write the config back to disk (so it persists) and also update the data in memory so that execution can move forward, but in this particular case I think we should just write to disk and add an error to the pile: the user still needs to commit the new config before publishing can happen.
This is something that should be better documented in our "dev" docs (which right now is the Basically we want to preserve formatting and comments in the yaml configs we write back to disk. We also want to reuse the JSON codecs to parse/deal with the yaml configs, which are not rich enough to store all that info. |
Would be nice if the location field could be filled as far as it is possible. One would have to run this command
git ls-remote --get-url origin
, if the remote is notorigin
then i would further not support automatic detection.The text was updated successfully, but these errors were encountered: