File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ class ProviderConfig {
77
77
78
78
case ' gitea' :
79
79
attr. platform = name
80
- if ( ! attr. server ) attr. server = ' https://try. gitea.io '
80
+ if ( ! attr. server ) attr. server = ' https://gitea.com ' // default to free tier
81
81
if ( ! attr. endpoint ) attr. endpoint = attr. server. toString(). stripEnd(' /' ) + ' /api/v1'
82
82
break
83
83
Original file line number Diff line number Diff line change @@ -189,6 +189,16 @@ class ProviderConfigTest extends Specification {
189
189
config. user == null
190
190
config. password == null
191
191
config. token == ' xyz'
192
+
193
+ when :
194
+ config = new ProviderConfig (' gitea' , [auth : ' xyz' ])
195
+ then :
196
+ config. auth == null
197
+ config. user == null
198
+ config. password == null
199
+ config. token == ' xyz'
200
+ config. server == ' https://gitea.com'
201
+ config. endpoint == ' https://gitea.com/api/v1'
192
202
}
193
203
194
204
def ' should ending slash and add protocol prefix' () {
You can’t perform that action at this time.
0 commit comments