File tree 6 files changed +35
-38
lines changed 6 files changed +35
-38
lines changed Original file line number Diff line number Diff line change @@ -15,12 +15,12 @@ trigger:
15
15
steps :
16
16
- name : deps-frontend
17
17
pull : always
18
- image : node:16.5
18
+ image : node:14
19
19
commands :
20
20
- make node_modules
21
21
22
22
- name : lint-frontend
23
- image : node:16.5
23
+ image : node:14
24
24
commands :
25
25
- make lint-frontend
26
26
depends_on : [deps-frontend]
58
58
TAGS : bindata gogit sqlite sqlite_unlock_notify
59
59
60
60
- name : checks-frontend
61
- image : node:16.5
61
+ image : node:14
62
62
commands :
63
63
- make checks-frontend
64
64
depends_on : [deps-frontend]
@@ -71,13 +71,13 @@ steps:
71
71
depends_on : [lint-backend]
72
72
73
73
- name : test-frontend
74
- image : node:16.5
74
+ image : node:14
75
75
commands :
76
76
- make test-frontend
77
77
depends_on : [lint-frontend]
78
78
79
79
- name : build-frontend
80
- image : node:16.5
80
+ image : node:14
81
81
commands :
82
82
- make frontend
83
83
depends_on : [test-frontend]
@@ -514,7 +514,7 @@ steps:
514
514
pull : always
515
515
image : techknowlogick/xgo:go-1.16.x
516
516
commands :
517
- - curl -sL https://deb.nodesource.com/setup_16 .x | bash - && apt-get install -y nodejs
517
+ - curl -sL https://deb.nodesource.com/setup_14 .x | bash - && apt-get install -y nodejs
518
518
- export PATH=$PATH:$GOPATH/bin
519
519
- make release
520
520
environment :
@@ -610,7 +610,7 @@ steps:
610
610
pull : always
611
611
image : techknowlogick/xgo:go-1.16.x
612
612
commands :
613
- - curl -sL https://deb.nodesource.com/setup_16 .x | bash - && apt-get install -y nodejs
613
+ - curl -sL https://deb.nodesource.com/setup_14 .x | bash - && apt-get install -y nodejs
614
614
- export PATH=$PATH:$GOPATH/bin
615
615
- make release
616
616
environment :
Original file line number Diff line number Diff line change @@ -1040,6 +1040,7 @@ editor.require_signed_commit=ブランチでは署名されたコミットが必
1040
1040
commits.desc =ソースコードの変更履歴を参照します。
1041
1041
commits.commits =コミット
1042
1042
commits.no_commits =共通のコミットはありません。 ' %s' と ' %s' の履歴はすべて異なっています。
1043
+ commits.nothing_to_compare =二つのブランチは同じ内容です。
1043
1044
commits.search =コミットの検索…
1044
1045
commits.search.tooltip =キーワード " author:" 、" committer:" 、" after:" 、" before:" を付けて指定できます。 例 " revert author:Alice before:2019-04-01"
1045
1046
commits.find =検索
Original file line number Diff line number Diff line change @@ -14,3 +14,10 @@ type swaggerResponseOAuth2Application struct {
14
14
// in:body
15
15
Body api.OAuth2Application `json:"body"`
16
16
}
17
+
18
+ // AccessToken represents an API access token.
19
+ // swagger:response AccessToken
20
+ type swaggerResponseAccessToken struct {
21
+ // in:body
22
+ Body api.AccessToken `json:"body"`
23
+ }
Original file line number Diff line number Diff line change @@ -164,6 +164,9 @@ type swaggerParameterBodies struct {
164
164
// in:body
165
165
CreateTagOption api.CreateTagOption
166
166
167
+ // in:body
168
+ CreateAccessTokenOption api.CreateAccessTokenOption
169
+
167
170
// in:body
168
171
UserSettingsOptions api.UserSettingsOptions
169
172
}
Original file line number Diff line number Diff line change @@ -76,15 +76,10 @@ func CreateAccessToken(ctx *context.APIContext) {
76
76
// description: username of user
77
77
// type: string
78
78
// required: true
79
- // - name: accessToken
79
+ // - name: userCreateToken
80
80
// in: body
81
81
// schema:
82
- // type: object
83
- // required:
84
- // - name
85
- // properties:
86
- // name:
87
- // type: string
82
+ // "$ref": "#/definitions/CreateAccessTokenOption"
88
83
// responses:
89
84
// "201":
90
85
// "$ref": "#/responses/AccessToken"
Original file line number Diff line number Diff line change @@ -11917,18 +11917,10 @@
11917
11917
"required": true
11918
11918
},
11919
11919
{
11920
- "name": "accessToken ",
11920
+ "name": "userCreateToken ",
11921
11921
"in": "body",
11922
11922
"schema": {
11923
- "type": "object",
11924
- "required": [
11925
- "name"
11926
- ],
11927
- "properties": {
11928
- "name": {
11929
- "type": "string"
11930
- }
11931
- }
11923
+ "$ref": "#/definitions/CreateAccessTokenOption"
11932
11924
}
11933
11925
}
11934
11926
],
12654
12646
},
12655
12647
"x-go-package": "code.gitea.io/gitea/modules/structs"
12656
12648
},
12649
+ "CreateAccessTokenOption": {
12650
+ "description": "CreateAccessTokenOption options when create access token",
12651
+ "type": "object",
12652
+ "properties": {
12653
+ "name": {
12654
+ "type": "string",
12655
+ "x-go-name": "Name"
12656
+ }
12657
+ },
12658
+ "x-go-package": "code.gitea.io/gitea/modules/structs"
12659
+ },
12657
12660
"CreateBranchProtectionOption": {
12658
12661
"description": "CreateBranchProtectionOption options for creating a branch protection",
12659
12662
"type": "object",
17045
17048
"responses": {
17046
17049
"AccessToken": {
17047
17050
"description": "AccessToken represents an API access token.",
17048
- "headers": {
17049
- "id": {
17050
- "type": "integer",
17051
- "format": "int64"
17052
- },
17053
- "name": {
17054
- "type": "string"
17055
- },
17056
- "sha1": {
17057
- "type": "string"
17058
- },
17059
- "token_last_eight": {
17060
- "type": "string"
17061
- }
17051
+ "schema": {
17052
+ "$ref": "#/definitions/AccessToken"
17062
17053
}
17063
17054
},
17064
17055
"AccessTokenList": {
You can’t perform that action at this time.
0 commit comments