Skip to content

Commit 0dc9bbc

Browse files
committed
Update func name
1 parent 5b90bf0 commit 0dc9bbc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

routers/api/v1/repo/issue.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@ func CreateIssueDependency(ctx *context.APIContext) {
10171017
// "404":
10181018
// description: the issue does not exist
10191019

1020-
createDep(ctx, models.DependencyTypeBlockedBy)
1020+
createIssueDependency(ctx, models.DependencyTypeBlockedBy)
10211021
}
10221022

10231023
// RemoveIssueDependency remove an issue dependency
@@ -1051,7 +1051,7 @@ func RemoveIssueDependency(ctx *context.APIContext) {
10511051
// "200":
10521052
// "$ref": "#/responses/Issue"
10531053

1054-
removeDep(ctx, models.DependencyTypeBlockedBy)
1054+
removeIssueDependency(ctx, models.DependencyTypeBlockedBy)
10551055
}
10561056

10571057
// GetIssueBlocks list issues that are blocked by this issue
@@ -1167,7 +1167,7 @@ func CreateIssueBlocking(ctx *context.APIContext) {
11671167
// "404":
11681168
// description: the issue does not exist
11691169

1170-
createDep(ctx, models.DependencyTypeBlocking)
1170+
createIssueDependency(ctx, models.DependencyTypeBlocking)
11711171
}
11721172

11731173
// RemoveIssueBlocking unblock the issue given in the body by the issue in path
@@ -1201,10 +1201,10 @@ func RemoveIssueBlocking(ctx *context.APIContext) {
12011201
// "200":
12021202
// "$ref": "#/responses/Issue"
12031203

1204-
removeDep(ctx, models.DependencyTypeBlocking)
1204+
removeIssueDependency(ctx, models.DependencyTypeBlocking)
12051205
}
12061206

1207-
func createDep(ctx *context.APIContext, t models.DependencyType) {
1207+
func createIssueDependency(ctx *context.APIContext, t models.DependencyType) {
12081208
if !ctx.Repo.Repository.IsDependenciesEnabled() {
12091209
ctx.NotFound()
12101210
return
@@ -1254,7 +1254,7 @@ func createDep(ctx *context.APIContext, t models.DependencyType) {
12541254
ctx.JSON(http.StatusCreated, convert.ToAPIIssue(dep))
12551255
}
12561256

1257-
func removeDep(ctx *context.APIContext, t models.DependencyType) {
1257+
func removeIssueDependency(ctx *context.APIContext, t models.DependencyType) {
12581258
if !ctx.Repo.Repository.IsDependenciesEnabled() {
12591259
ctx.NotFound()
12601260
return

0 commit comments

Comments
 (0)