Version Control: How do I add the logged user's name to the commit message when pushing changes?

Hi all, just curious, I followed the steps in this article Ignition 8 Deployment Best Practices | Inductive Automation to set up version control on our dev server project.

The changes are currently pushing successfully, however, is there a way to add the name of the user logged into the designer to the commit message? What is the best way to do this?

The project update script gets an 'actor' parameter delivered:

1 Like

Thank you for your answer. Do you know how I can add the value of that actor parameter into the script file I’m executing in the same event with systems.utils.execute()?

This is what my Gateway event looks like, the system.utils.execute() reads the script and the script contains all the git commands and commit message to push to the repository.

Extend your batch file to accept a parameter on the command line - out of scope of this forum but your favorite search engine/LLM should be able to help you.

Within the project update script, actor will be automatically available as a local variable.
So something like this:

system.util.execute([
    "path/to/file.bat",
    actor
])
2 Likes