fix: improve repository rename

This commit is contained in:
tdurieux
2024-04-11 17:13:01 +01:00
parent 61c6a79949
commit 6b9574add3
5 changed files with 52 additions and 21 deletions
+13 -2
View File
@@ -1052,6 +1052,7 @@ angular
$scope.source = res.data.source;
$scope.options = res.data.options;
$scope.conference = res.data.conference;
$scope.repositoryID = res.data.source.repositoryID;
if (res.data.options.expirationDate) {
$scope.options.expirationDate = new Date(
res.data.options.expirationDate
@@ -1139,7 +1140,12 @@ angular
const o = parseGithubUrl($scope.repoUrl);
const branches = await $http.get(
`/api/repo/${o.owner}/${o.repo}/branches`,
{ params: { force: force === true ? "1" : "0" } }
{
params: {
force: force === true ? "1" : "0",
repositoryID: $scope.repositoryID,
},
}
);
$scope.branches = branches.data;
if (!$scope.source.branch) {
@@ -1160,7 +1166,11 @@ angular
const o = parseGithubUrl($scope.repoUrl);
try {
resetValidity();
const res = await $http.get(`/api/repo/${o.owner}/${o.repo}/`);
const res = await $http.get(`/api/repo/${o.owner}/${o.repo}/`, {
params: {
repositoryID: $scope.repositoryID,
},
});
$scope.details = res.data;
if (!$scope.repoId) {
$scope.repoId = $scope.details.repo + "-" + generateRandomId(4);
@@ -1200,6 +1210,7 @@ angular
params: {
force: force === true ? "1" : "0",
branch: $scope.source.branch,
repositoryID: $scope.repositoryID,
},
});
$scope.readme = res.data;
+1 -1
View File
File diff suppressed because one or more lines are too long