nawermc.blogg.se

Visualsvn marketplace
Visualsvn marketplace





visualsvn marketplace
  1. #VISUALSVN MARKETPLACE INSTALL#
  2. #VISUALSVN MARKETPLACE FULL#
  3. #VISUALSVN MARKETPLACE WINDOWS#

#VISUALSVN MARKETPLACE FULL#

Don't forget to use double-backslashes in the file path! Also, make sure there's a (double-)backslash at the end of the file path so the repository's full file path can be assembled correctly.ĮXAMPLE: reporootdir = "Y:\\Repositories\\" With that said, the script can easily be changed if you don't want it to do this.Ĭlick OK to accept the changes in the hook dialog, then click Apply and OK to accept the changes in the Properties dialog.Ĭhange the value of reporootdir to point to the root directory in which your Subversion repositories are stored.

visualsvn marketplace

NOTE: The Python hook script will override any username and avatar you specify in the Discord webhook dialog. In your Discord server, create a webhook in the channel in which the commit messages should be posted, copy the URL, then change discord_webhook_url to that URL.

  • Copy the contents of scr/post-commit.cmd and paste them into the hook dialog's text box.Ĭhange pythonw_file_path to point to the location of pythonw.exe in your Python installation directory.ĭownload scr/post-commit.py, then change hook_script_file_path to point to the file path to which you downloaded post-commit.py.Ĭhange reponame to the name of the repository as set in VisualSVN.
  • Navigate to the Hooks tab and double-click the "Post-commit hook" property.
  • In VisualSVN, open your repository's Properties page.
  • Normal-length commit message, long changelist: Long commit message, normal-length changelist: Normal-length commit message and changelist:

    visualsvn marketplace

    Usage Examplesīelow are a few examples of what the message looks like in multiple scenarios. The hook script will automagically truncate commit messages longer than 200 characters and changelists longer than 1700 characters in order to abide by Discord's maximum character limit of 2000. The message contains the name of the repository, the revision number, the name of the user who committed, the commit message, and the changelist. What It DoesĪfter a commit is made to the specified repository, this hook script posts a message to Discord server channel, which is specified through a webhook.

    #VISUALSVN MARKETPLACE INSTALL#

  • subprocess library : pip install subprocessĤ.
  • requests library : pip install requests.
  • They can be installed with the pip install command-line command. You'll need to have the following Python libraries installed in order to use these hook scripts. However, it should not be difficult to set it up with a non-Windows installation.

    #VISUALSVN MARKETPLACE WINDOWS#

    NOTE: The CMD hook scripts that call the Python scripts are only valid when used with a Windows installation of VisualSVN. This repository contains Subversion (VisualSVN) hook scripts that post messages to Discord. Discord-subversion-hook-scripts Table Of Contents







    Visualsvn marketplace