@@ -1017,7 +1017,7 @@ func CreateIssueDependency(ctx *context.APIContext) {
1017
1017
// "404":
1018
1018
// description: the issue does not exist
1019
1019
1020
- createDep (ctx , models .DependencyTypeBlockedBy )
1020
+ createIssueDependency (ctx , models .DependencyTypeBlockedBy )
1021
1021
}
1022
1022
1023
1023
// RemoveIssueDependency remove an issue dependency
@@ -1051,7 +1051,7 @@ func RemoveIssueDependency(ctx *context.APIContext) {
1051
1051
// "200":
1052
1052
// "$ref": "#/responses/Issue"
1053
1053
1054
- removeDep (ctx , models .DependencyTypeBlockedBy )
1054
+ removeIssueDependency (ctx , models .DependencyTypeBlockedBy )
1055
1055
}
1056
1056
1057
1057
// GetIssueBlocks list issues that are blocked by this issue
@@ -1167,7 +1167,7 @@ func CreateIssueBlocking(ctx *context.APIContext) {
1167
1167
// "404":
1168
1168
// description: the issue does not exist
1169
1169
1170
- createDep (ctx , models .DependencyTypeBlocking )
1170
+ createIssueDependency (ctx , models .DependencyTypeBlocking )
1171
1171
}
1172
1172
1173
1173
// RemoveIssueBlocking unblock the issue given in the body by the issue in path
@@ -1201,10 +1201,10 @@ func RemoveIssueBlocking(ctx *context.APIContext) {
1201
1201
// "200":
1202
1202
// "$ref": "#/responses/Issue"
1203
1203
1204
- removeDep (ctx , models .DependencyTypeBlocking )
1204
+ removeIssueDependency (ctx , models .DependencyTypeBlocking )
1205
1205
}
1206
1206
1207
- func createDep (ctx * context.APIContext , t models.DependencyType ) {
1207
+ func createIssueDependency (ctx * context.APIContext , t models.DependencyType ) {
1208
1208
if ! ctx .Repo .Repository .IsDependenciesEnabled () {
1209
1209
ctx .NotFound ()
1210
1210
return
@@ -1254,7 +1254,7 @@ func createDep(ctx *context.APIContext, t models.DependencyType) {
1254
1254
ctx .JSON (http .StatusCreated , convert .ToAPIIssue (dep ))
1255
1255
}
1256
1256
1257
- func removeDep (ctx * context.APIContext , t models.DependencyType ) {
1257
+ func removeIssueDependency (ctx * context.APIContext , t models.DependencyType ) {
1258
1258
if ! ctx .Repo .Repository .IsDependenciesEnabled () {
1259
1259
ctx .NotFound ()
1260
1260
return
0 commit comments