We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ad7e22 commit 31a1760Copy full SHA for 31a1760
lib/trac.js
@@ -1,9 +1,19 @@
1
module.exports = function( Release ) {
2
3
Release.define({
4
- trac: function( path ) {
5
- var tracUrl = "http://bugs." + Release.project + ".com";
+ _tracUrl: function() {
+ var bugs = Release.readPackage().bugs;
6
+
7
+ // Unwrap
8
+ if ( bugs.url ) {
9
+ bugs = bugs.url;
10
+ }
11
12
+ // Strip trailing slash
13
+ return bugs.replace( /\/$/, "" );
14
+ },
15
+ trac: function( path ) {
16
+ var tracUrl = Release._tracUrl();
17
return Release.exec({
18
command: "curl -s '" + tracUrl + path + "&format=tab'",
19
silent: true
0 commit comments