-
Notifications
You must be signed in to change notification settings - Fork 21
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
Don't reformat and reorder the entire bitrise.yml file #572
Comments
The root cause for this seems to be that the bitrise-workflow-editor/apiserver/service/bitrise_config.go Lines 97 to 102 in f7a00bc
The order of the fields inside the bitrise-workflow-editor/vendor/github.com/bitrise-io/bitrise/models/models.go Lines 97 to 112 in f7a00bc
Two ways out of this situation that come to mind:
|
We recently ran into this issue as well. Some of our devs use the editor on bitrise.io and others run the editor locally. This usually causes large and messy diffs when committing the yml file back to our repo. |
When you save a file using the offline workflow editor, it reformats and reorders everything in the file. It gives completely different output from the online version of the editor at https://app.bitrise.io/.
This makes it impossible to do a meaningful code-review of the changes you make.
We have to use the offline editor to make changes to our bitrise.yml on a branch, to be reviewed and merged in a PR. The online editor only works on the repo's default branch which is why we can't use it.
For example, here's the result of taking a file which was originally generated by the online editor, and then making a tiny change in the offline editor.
It's reformatted and reordered EVERYTHING.
The text was updated successfully, but these errors were encountered: