address comments

This commit is contained in:
Atharva Deosthale 2025-11-12 23:06:18 +05:30
parent 5963b2baf7
commit d411b741b3
2 changed files with 3 additions and 2 deletions

View file

@ -103,7 +103,8 @@ class Create extends Base
throw new Exception(Exception::FUNCTION_NOT_FOUND);
}
$branchUrl = $type == GitHub::CLONE_TYPE_BRANCH ? "https://github.com/$owner/$repository/tree/$reference" : "";
$branchUrl = "https://github.com/$owner/$repository/blob/$reference";
$repositoryUrl = "https://github.com/$owner/$repository";
$template = new Document([

View file

@ -105,7 +105,7 @@ class Create extends Base
throw new Exception(Exception::SITE_NOT_FOUND);
}
$branchUrl = $type == GitHub::CLONE_TYPE_BRANCH ? "https://github.com/$owner/$repository/tree/$reference" : "";
$branchUrl = "https://github.com/$owner/$repository/blob/$reference";
$repositoryUrl = "https://github.com/$owner/$repository";
$template = new Document([