Skip to content

Commit bbc895e

Browse files
committed
Fix the GitHub origin URL
When putting a link to the original script on a downloaded script in the script catalog, the generated link went to the repository generally and didn't directly link to the file that was downloaded. Change the URL so that it will link directly to the downloaded script.
1 parent aa3a89b commit bbc895e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/jenkinsci/plugins/scriptler/share/gh/GHCatalog.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class GHCatalog implements ScriptInfoCatalog<ScriptInfo> {
3131

3232
private final static Logger LOGGER = Logger.getLogger(GHCatalog.class.getName());
3333

34-
public static final String REPO_BASE = "https://github.com/jenkinsci/jenkins-scripts/tree/master/scriptler";
34+
public static final String REPO_BASE = "https://github.com/jenkinsci/jenkins-scripts/blob/master/scriptler/{1}";
3535
public static final String DOWNLOAD_URL = "https://raw.github.com/jenkinsci/jenkins-scripts/master/scriptler/{1}";
3636

3737
public static final CatalogInfo CATALOG_INFO = new CatalogInfo("gh", REPO_BASE, REPO_BASE, DOWNLOAD_URL);

0 commit comments

Comments
 (0)