Skip to content

Commit b6c7465

Browse files
committed
fix swagger doc, "master" is no longer "usually"
1 parent 57ed5e0 commit b6c7465

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

routers/api/v1/repo/file.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ func GetEditorconfig(ctx *context.APIContext) {
377377
// required: true
378378
// - name: ref
379379
// in: query
380-
// description: "The name of the commit/branch/tag. Default the repository’s default branch (usually master)"
380+
// description: "The name of the commit/branch/tag. Default to the repository’s default branch."
381381
// type: string
382382
// required: false
383383
// responses:
@@ -927,7 +927,7 @@ func GetContents(ctx *context.APIContext) {
927927
// required: true
928928
// - name: ref
929929
// in: query
930-
// description: "The name of the commit/branch/tag. Default the repository’s default branch (usually master)"
930+
// description: "The name of the commit/branch/tag. Default to the repository’s default branch."
931931
// type: string
932932
// required: false
933933
// responses:
@@ -973,7 +973,7 @@ func GetContentsList(ctx *context.APIContext) {
973973
// required: true
974974
// - name: ref
975975
// in: query
976-
// description: "The name of the commit/branch/tag. Default the repository’s default branch (usually master)"
976+
// description: "The name of the commit/branch/tag. Default to the repository’s default branch."
977977
// type: string
978978
// required: false
979979
// responses:
@@ -1006,7 +1006,7 @@ func GetFileContentsGet(ctx *context.APIContext) {
10061006
// required: true
10071007
// - name: ref
10081008
// in: query
1009-
// description: "The name of the commit/branch/tag. Default the repository’s default branch (usually master)"
1009+
// description: "The name of the commit/branch/tag. Default to the repository’s default branch."
10101010
// type: string
10111011
// required: false
10121012
// - name: body
@@ -1048,7 +1048,7 @@ func GetFileContentsPost(ctx *context.APIContext) {
10481048
// required: true
10491049
// - name: ref
10501050
// in: query
1051-
// description: "The name of the commit/branch/tag. Default the repository’s default branch (usually master)"
1051+
// description: "The name of the commit/branch/tag. Default to the repository’s default branch."
10521052
// type: string
10531053
// required: false
10541054
// - name: body

templates/swagger/v1_json.tmpl

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)