ioBroker.javascript icon indicating copy to clipboard operation
ioBroker.javascript copied to clipboard

Adding a Versioning to the scripts

Open worksasdesigned opened this issue 1 year ago • 4 comments

Is your feature request related to a problem? Please describe. I have the "problem" that especially in more complex scripts, there is no rollback to last stable solution.

Describe the solution you'd like Perfect solution would be to create versions of scripts, and activate them. So the latest version is "live", but i can develop in an other version. If the improvement fails, i can simply choose one of the older versions and rollback my changes.

Describe alternatives you've considered automatic upload to Github. but due to sometimes security relevant information (e.g. Username/password) a direct upload to a possibly public github is too risky.

Additional context

worksasdesigned avatar Dec 14 '23 11:12 worksasdesigned

Just enable mirroring to file system and use git (not github).

klein0r avatar Dec 14 '23 11:12 klein0r

maybe we could add that as a topi in readme ...

Apollon77 avatar Dec 14 '23 19:12 Apollon77

Just enable mirroring to file system and use git (not github).

Sounds complicated and how is this done? I personally just copy the script and use that as a former version (or call it backup of a script, can be used as rollback if necessary). Identification is done by adding version and/or date to the name(similar to automatic versioning).

MichaelSchaaf999 avatar May 06 '24 05:05 MichaelSchaaf999

Sounds complicated and how is this done?

Google: Git for beginners

  • Install git using apt
  • Change to the mirrored directory
  • git init
  • Learn how to use git add, git commit, git revert, ...

This is not related to GitHub or a remote server - that is optional and not required

klein0r avatar May 06 '24 19:05 klein0r