FogBugz hosted service & GitHub integration - FogBugz Knowledge Exchange most recent 30 from http://fogbugz.stackexchange.com 2013-05-20T13:43:38Z http://fogbugz.stackexchange.com/feeds/question/6541 http://www.creativecommons.org/licenses/by-nc/2.5/rdf http://fogbugz.stackexchange.com/questions/6541/fogbugz-hosted-service-github-integration FogBugz hosted service & GitHub integration David Kennedy 2011-01-07T10:11:58Z 2012-10-12T21:03:30Z <p>How do I setup integration between FogBugz and Github?</p> http://fogbugz.stackexchange.com/questions/6541/fogbugz-hosted-service-github-integration/6548#6548 Answer by adambox for FogBugz hosted service & GitHub integration adambox 2011-01-07T16:26:59Z 2011-01-07T16:26:59Z <p>The trick is that the script on github expects the string "7.0" for the version. anything else ("7", "8", "7.2") causes it to use the old-style source-control integration, which doesn't send the <code>ixRepository</code> parameter. If that change doesn't fix it, please send us an email: <a href="http://www.fogcreek.com/sendmail.html" rel="nofollow">http://www.fogcreek.com/sendmail.html</a></p> http://fogbugz.stackexchange.com/questions/6541/fogbugz-hosted-service-github-integration/6574#6574 Answer by David Kennedy for FogBugz hosted service & GitHub integration David Kennedy 2011-01-11T09:05:26Z 2012-10-12T21:03:30Z <p><em>Updated by Fog Creek Support</em></p> <p>First, go to your repository in Github. Click on the Admin button and then on service hooks. Click FogBugz in the list. Here are the instructions as posted there:</p> <h2>Install Notes</h2> <ol> <li><p>Requires FogBugz version 6.1 or above, and your FogBugz installation must be accessible from the internet</p></li> <li><p>"cvssubmit_url" is the url to the <code>cvsSubmit.[php|asp]</code> file on your FogBugz server. Example: <a href="https://server.com/fogbugz/cvsSubmit.php" rel="nofollow">https://server.com/fogbugz/cvsSubmit.php</a> or <a href="https://yoursite.fogbugz.com/cvsSubmit.asp" rel="nofollow">https://yoursite.fogbugz.com/cvsSubmit.asp</a></p></li> <li><p>The "sRepo" field (in FogBugz 6.1) will be automatically set to the name of this GitHub repository.</p></li> <li><p>The "ixRepository" field (in FogBugz 7.0 and later) will be set to the fb_repoid set in the hooks configuration page</p></li> </ol> <h2>FogBugz 7.0 and later, FogBugz 8.0 and later Configuration</h2> <p>FogBugz 7 and FogBugz 8 have a configuration page for multiple repositories. Each repository is given an ID that will be used by the cvsSubmit.asp page.</p> <ol> <li><p>From the FogBugz Admin menu, select Source Control.</p></li> <li><p>Click 'Create New Repository'.</p></li> <li><p>An option pane will pop up. Select 'Other (custom)'. Enter a name for the repository. The name does not have to be the same as the github repo name. Click Next.</p></li> <li><p>Set the 'Diff URL' field to be: <code>https://github.com/[github_username]/[github_reponame]/commit/^R2</code></p></li> <li><p>Set the 'Log URL' field to be: <code>https://github.com/[github_username]/[github_reponame]/commits/^FILE</code></p></li> <li><p>There's a URL printed at the top of the configuration screen. Make note of the number following ixRepository= That is the ID that needs to be filled in for the fb_repoid field.</p></li> </ol> <p>In GitHub > Admin > Service Hook after selecting "FogBugz" from the list:</p> <ol> <li><p>Set your Cvssubmit Url. Example: <a href="https://server.com/fogbugz/cvsSubmit.asp" rel="nofollow">https://server.com/fogbugz/cvsSubmit.asp</a></p></li> <li><p>Set "Fb Version" to the version you are running. This does not have to be the full version as the major version number is sufficient. For example. "8" for the current version of FogBugz On Demand 8.8.41, or "6" if you're still running version 6 of FogBugz For Your Server. To find your FogBugz version, go to your FogBugz URL, for example <a href="https://server.com/fogbugz" rel="nofollow">https://server.com/fogbugz</a>, and look at the page footer, or going to FogBugz > Help > About FogBugz and in either case you'll see, for example, "FogBugz Version 8.8.41 (DB 797, Build 0)". </p></li> <li><p>Set "Fb Repoid" to the number following "ixRepository=" from step 6 above.</p></li> </ol> <p>Once the integration is complete and you push some new changes to your GitHub repository referencing FogBugz Cases, you will see Checkins on the Case page. For example: <img src="http://our.fogbugz.com/default.asp?pg=pgDownload&amp;pgType=pgWikiAttachment&amp;ixAttachment=206069&amp;sFileName=githubintg.png" alt="GitHub Integration Example"></p> <h2>FogBugz 6.1 Configuration</h2> <p>If you want to use GitHub as your sole source control system, configuration within FogBugz is relatively easy. </p> <p>In your site configuration:</p> <ol> <li><p>Set "the Source Control URL for logs" field to be: <code>https://github.com/[github_username]/^REPO/commits/^FILE</code></p></li> <li><p>Set "the Source Control URL for diffs" field to be: <code>https://github.com/[github_username]/^REPO/commit/^R2</code></p></li> </ol> <p>If you have commits in FogBugz from a previous source control system, or if you want to use multiple GitHub accounts, please read:</p> <p>In the service hook here:</p> <ol> <li><p>Set your Cvssubmit Url.</p></li> <li><p>Set "Fb Version" to "6" (without quotes).</p></li> <li><p>Leave "Fb Repoid" blank.</p></li> </ol> <p><a href="http://www.fogcreek.com/FogBugz/KB/howto/MultipleRepositories-Mult.html" rel="nofollow">http://www.fogcreek.com/FogBugz/KB/howto/MultipleRepositories-Mult.html</a></p> <h2>Using the Integration</h2> <p>See <a href="http://fogbugz.stackexchange.com/questions/4402/source-code-control-system-integration/4439#4439" rel="nofollow">this guide</a> for how to use the integration.</p> http://fogbugz.stackexchange.com/questions/6541/fogbugz-hosted-service-github-integration/7047#7047 Answer by Jesse for FogBugz hosted service & GitHub integration Jesse 2011-02-14T20:26:55Z 2011-02-14T20:26:55Z <p>Did you ever figure out how to mark a commit as being related to a bug, or resolving a bug, from the commit message? And what constitutes the "commit message", do I have to put it on the first line of my message (the title) or can I put it in the body?</p> http://fogbugz.stackexchange.com/questions/6541/fogbugz-hosted-service-github-integration/10448#10448 Answer by Chris for FogBugz hosted service & GitHub integration Chris 2012-05-24T20:45:58Z 2012-05-24T20:45:58Z <p>The above seems to imply that you must set this up per code repo as opposed to a server. So for example if you have mygithub.com/myorg/A and mygithub.com/myorg/B you would need 2 entries in FogBugz. Not bad if you have 2 Repos. In our case we have about 230 code repos (for various things) so we would have to do this for everyone and every new one?</p> <p>Seems like FogBugz should just accept pathes to change sets verbatim and put the logic in the git plugin, no? Maybe I am missing how Fogbugz deals with the code changes, is there a good doc explaining it?</p> http://fogbugz.stackexchange.com/questions/6541/fogbugz-hosted-service-github-integration/10763#10763 Answer by Siva for FogBugz hosted service & GitHub integration Siva 2012-09-04T18:38:45Z 2012-09-04T18:38:45Z <p>Hi, We use Fogbugz in our company. We wanted to integrate it with cvs, also we don't use cvsweb, but use Bonsai cvs web interface. I went through this documentation <a href="http://www.fogcreek.com/fogbugz/docs/70/topics/sourcecontrol/setup/CVS.html" rel="nofollow">http://www.fogcreek.com/fogbugz/docs/70/topics/sourcecontrol/setup/CVS.html</a></p> <p>of integrating cvs with Fogbuz. Is this all we need to or is there a mock up examples of how we use cvs within fogbugz somewhere?</p> <p>Thanks.</p>