I have a bunch of time lost modifications because bad manipulations or something, or having workflows with multiple persons changing and making a mess.
Is there a way to see the history of changes on n8n? assuming no, I would like to:
save all workflows as separate files
put them into git
everytime the workflow is saved, it’s a new commit
so basically creating a n8n workflow saving to git that is triggered by a n8n event. so meta.
does it exist already? I see there is a N8N trigger, but the only event that is available is when the instance starts?
@Jon - Would this work with Gitea as well ? I couldnt find a node for Gitea in n8n - so if we have a selfhosted gitea, what would the best approach to do the same as what this workflow does ?
You would need to use the gitea API and the http request node or maybe use the execute command node and handle everything from the cli.
If you have not already noticed it Git intergration is natively supported in the Enteprise edition and you can push and pull to Git repos over SSH from the normal n8n ui without needing a workflow to manage it.