{"id":17760,"date":"2016-06-13T10:29:11","date_gmt":"2016-06-13T10:29:11","guid":{"rendered":"http:\/\/apidocs.kore.com\/?post_type=docs&#038;p=2654"},"modified":"2019-05-24T09:29:02","modified_gmt":"2019-05-24T08:29:02","slug":"integrating-with-subversion","status":"publish","type":"post","link":"https:\/\/multisite.korebots.com\/v9-0\/docs\/bots\/bot-store\/adding-bots\/integrating-with-subversion\/","title":{"rendered":"Adding a Subversion Bot"},"content":{"rendered":"<section class=\"l-section wpb_row height_auto\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row via_grid cols_1 laptops-cols_inherit tablets-cols_inherit mobiles-cols_1 valign_top type_default stacking_default\"><div class=\"wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><p>Kore.ai provides integration for a built-in <em>Subversion<\/em> Bot that you can use to display message notifications and execute tasks directly from Kore.ai Messenger or other supported channels. To use the <em>Subversion<\/em>\u00a0Bot, you just need to add the Bot to your channel, and then configure the settings for the Bot, such as authentication to access <em>Subversion<\/em>, and the\u00a0notification messages that you want. This topic describes the <em>Subversion<\/em>\u00a0built-in Bot\u00a0for Kore.ai.\u00a0For more information about other Kore.ai Bots, see <a style=\"line-height: 1.42857; background-color: #ffffff;\" href=\"\/docs\/bots\/about-kore-bots\/addingbots\/\">Adding Bots<\/a>.<\/p>\n<h1><span class=\"ez-toc-section\" id=\"About_the_Koreai_Bot_for_Subversion\"><\/span><span class=\"wysiwyg-font-size-x-large\">About the Kore.ai Bot for\u00a0Subversion<\/span><span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"logo2 alignleft\" src=\"\/wp-content\/uploads\/sites\/22\/DIYSubversionLogo-2.png\" alt=\"DIYSubversionLogo\" width=\"82\" height=\"73\" \/><em>Subversion<\/em> is a full-featured version control system originally designed to be a better concurrent versions system. You can use this Bot to get a notification when a commit is made in the configured repository.<\/p>\n<table border=\"0\" width=\"645\">\n<tbody>\n<tr>\n<td><strong>Integration Type<\/strong><\/td>\n<td><strong>Webhook<\/strong> &#8211; Connect to this Bot using a webhook integration where the web application pushes\u00a0message notifications in near real time.<\/td>\n<\/tr>\n<tr>\n<td><strong>Category<\/strong><\/td>\n<td><strong>Developer Tools<\/strong>\u00a0&#8211; This Bot is available in the Kore.ai application in the\u00a0<strong>Developer Tools\u00a0<\/strong>category.<\/td>\n<\/tr>\n<tr>\n<td><strong>Channels<\/strong><\/td>\n<td><strong>Kore.ai<\/strong>\u00a0&#8211; This Bot is available in the Kore.ai Messenger application.<br \/>\n<strong>Spark<\/strong>\u00a0&#8211; This Bot is available in the Cisco Spark application.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h1><span class=\"ez-toc-section\" id=\"Configuring_Subversion\"><\/span><span class=\"wysiwyg-font-size-x-large\">Configuring Subversion\u00a0<\/span><span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>To configure a <em>Subversion<\/em> webhook for Kore.ai, you must have a <em>Subversion<\/em>\u00a0account with administrator access as well as API access to configure a webhook. If you don&#8217;t, you&#8217;ll need to contact the <em>Subversion<\/em>\u00a0system administrator for\u00a0your company.<br \/>\nTo get started configuring the webhook in <em>Subversion<\/em>, you&#8217;ll need two\u00a0things:<\/p>\n<ol>\n<li>The Kore.ai webhook URL provided when you set up an alert in your Kore.ai account for each alert that you want to enable in\u00a0<em>Subversion<\/em>.<\/li>\n<li>A valid Username and Password for an account with <em>Subversion<\/em>\u00a0API access.<\/li>\n<\/ol>\n<p>The webhook URL is account-specific and cannot be transferred to any other account. This means that if you configure a <em>Subversion<\/em>\u00a0webhook using a test account, you will have to recreate the alert and get a new webhook URL to configure in <em>Subversion<\/em>. The following URL is an example webhook URL.<br \/>\n<span class=\"wysiwyg-color-blue\" style=\"color: #0000ff;\">https:\/\/app.kore.com\/hooks\/c6089802f36250c179dcb1aa29afd24c<\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Configuring_Webhook\"><\/span><span class=\"wysiwyg-font-size-large\">Configuring Webhook<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>This procedure describes the steps in <em>Subversion<\/em>\u00a0to configure a webhook using a Kore.ai webhook URL endpoint. In <em>Subversion<\/em>, you must download the Kore.ai\u00a0<span class=\"wysiwyg-color-blue\" style=\"color: #0000ff;\">subversion.pl<\/span> file, add your Kore.ai webhook URL to that file, and then point your <em>Subversion<\/em> repository to that file.<\/p>\n<ol>\n<li>Download the <span class=\"wysiwyg-color-blue\" style=\"color: #0000ff;\">subversion.pl<\/span> file using the link at the bottom of this page in the <strong>Article Attachments<\/strong> section, and save to a local directory on the computer where you will run\u00a0<em>Subversion<\/em> from, for example, \u00a0the\u00a0<span class=\"wysiwyg-color-blue\" style=\"color: #0000ff;\">&lt;\u00a0<strong><em>MySubversionHome\u00a0<\/em><\/strong>&gt;\/properties\/<\/span>\u00a0directory.<\/li>\n<li>In a text editor of your choice, open the <span class=\"wysiwyg-color-blue\" style=\"color: #0000ff;\">subversion.pl<\/span>\u00a0file, and then set the property for the Kore.ai webhook URL by modifying the following line:<br \/>\n<blockquote>\n<p><span class=\"wysiwyg-color-blue\">my $koreWebhookUrl = &#8220;<strong>https:\/\/app.kore.com\/hooks\/id<\/strong>&#8220;;<\/span><\/p>\n<\/blockquote>\n<p class=\"p1\"><span class=\"s1\">with your Kore.ai Webhook URL, and then <strong>Save<\/strong>\u00a0the\u00a0file.<\/span><\/p>\n<\/li>\n<li>In <em>Subversion<\/em>, right-click on\u00a0your repository that you want to add the webhook to, and then click <strong>Properties<\/strong>.<\/li>\n<li>On the <strong>Properties<\/strong> dialog, on the <strong>Hooks<\/strong> tab, in the <strong>Commit<\/strong> section, click <strong>Post-commit hook<\/strong>.<\/li>\n<li>In the <strong>Post-commit hook<\/strong> dialog, enter the path to the modified <span class=\"wysiwyg-color-blue\" style=\"color: #0000ff;\">subverison.pl<\/span> file, and then click <strong>OK<\/strong>.<\/li>\n<\/ol>\n<p>For more information, see <a href=\"https:\/\/sourceforge.net\/blog\/how-to-use-webhooks-for-git-mercurial-and-svn-repositories\/\" target=\"_blank\" rel=\"noopener noreferrer\">How to use Webhooks<\/a> in the <em>SourceForge<\/em>\u00a0documentation.<br \/>\nYou can setup message notifications to Kore.ai Messenger\u00a0using a <em>Subversion<\/em>\u00a0webhook. Click\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"inline alignnone\" src=\"\/wp-content\/uploads\/sites\/22\/newtask.png\" alt=\"\" width=\"30\" height=\"34\" \/>, click <strong>Get notified when&#8230;<\/strong>, click <strong>Commit Notification<\/strong>, and then\u00a0in\u00a0the <strong>Setup Task\u00a0<\/strong>dialog:<\/p>\n<ul>\n<li>click the <strong>Activate<\/strong> button to generate a Webhook URL.<\/li>\n<li>copy and save the URL, or click <strong>Email Instructions<\/strong> to send the URL to an email account. For more information, see <a href=\"\/docs\/bots\/about-kore-bots\/addingbots\/integrating-with-subversion\/#webhook\">Configuring Subversion\u00a0Webhooks<\/a>.<\/li>\n<li>optionally customize the <strong>Task Name\u00a0<\/strong><\/li>\n<li>optionally customize the <strong>Short Description<\/strong><\/li>\n<li>enable or disable <strong>Mute task notifications<\/strong><\/li>\n<li>and then click <strong>Finish<\/strong>.<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Article_Attachments\"><\/span><span class=\"wysiwyg-font-size-large\">Article Attachments<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><a href=\"https:\/\/support.kore.com\/hc\/en-us\/article_attachments\/203270798\/subversion.pl\" target=\"_blank\" rel=\"noopener noreferrer\">subversion.pl<\/a> (776 Bytes)<\/p>\n<h1><span class=\"ez-toc-section\" id=\"Next_Steps\"><\/span><em><span class=\"wysiwyg-font-size-x-large\">Next Steps<\/span><\/em><span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>After the webhook is configured in <em>Subversion<\/em>, when any of the events occur in <em>Subversion<\/em>, a message is displayed on the <strong>Bots<\/strong> page for Kore.ai Messenger or in your supported channel.<\/p>\n<\/div><\/div><div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><\/div><\/div><\/div><\/div><\/section>\n","protected":false},"excerpt":{"rendered":"Kore.ai provides integration for a built-in Subversion Bot that you can use to display message notifications and execute tasks directly from Kore.ai Messenger or other supported channels. To use the Subversion\u00a0Bot, you just need to add the Bot to your channel, and then configure the settings for the Bot, such as authentication to access Subversion,...","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts\/17760"}],"collection":[{"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/comments?post=17760"}],"version-history":[{"count":2,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts\/17760\/revisions"}],"predecessor-version":[{"id":21169,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts\/17760\/revisions\/21169"}],"wp:attachment":[{"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/media?parent=17760"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/categories?post=17760"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/tags?post=17760"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}