forked from github/github-services
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fog_bugz
91 lines (59 loc) · 2.59 KB
/
fog_bugz
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
FogBugz
=======
Install Notes
-------------
1. Requires FogBugz version 6.1 or above, and your FogBugz installation
must be accessible from the internet
2. "cvssubmit_url" is the url to the cvsSubmit.[php|asp] file on your
FogBugz server.
Example: https://server.com/fogbugz/cvsSubmit.php
3. The "sRepo" field (in FogBugz 6.1) will be automatically set to the name of
this GitHub repository.
4. The "ixRepository" field (in FogBugz 7.0 and later) will be set to the fb_repoid set in the
hooks configuration page
FogBugz 7.0 and later Configuration
---------------
Starting in FogBugz 7, there is a configuration page where you can setup
multiple repositories. Each repository is given and ID that will be used
by the cvsSubmit.asp page.
In FogBugz:
1. From the admin menu, select Source Control.
2. Click 'Create New Repository'.
3. 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.
4. Set the 'Diff URL' field to be:
https://github.com/[github_username]/[github_reponame]/commit/^R2
5. Set the 'Log URL' field to be:
https://github.com/[github_username]/[github_reponame]/commits/^FILE
6. 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.
In the service hook here:
1. Set your Cvssubmit Url.
2. Set "Fb Version" to the version you are running, e.g. "8".
3. Set "Fb Repoid" to the number following "ixRepository=" from step 6 above.
FogBugz 6.1 Configuration
---------------------
If you want to use GitHub as your sole source control system, configuration
within FogBugz is relatively easy.
In your site configuration:
1. Set "the Source Control URL for logs" field to be:
https://github.com/[github_username]/^REPO/commits/^FILE
2. Set "the Source Control URL for diffs" field to be:
https://github.com/[github_username]/^REPO/commit/^R2
If you have commits in FogBugz from a previous source control system, or if
you want to use multiple GitHub accounts, please read:
http://www.fogcreek.com/FogBugz/KB/howto/MultipleRepositories-Mult.html
In the service hook here:
1. Set your Cvssubmit Url.
2. Set "Fb Version" to "6" (without quotes).
3. Leave "Fb Repoid" blank.
Developer Notes
---------------
data
- cvssubmit_url
- fb_version (Valid options are 6 or anything else for 7, 8 or later)
- fb_repoid
payload
- refer to docs/github_payload