Skip to content

Commit d35f4de

Browse files
Nathan JohnsonNathan Johnson
authored andcommitted
feat: Updated Gitea ProviderConfig server default
Signed-off-by: Author Name <[email protected]>
1 parent cc5a9c9 commit d35f4de

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

modules/nextflow/src/main/groovy/nextflow/scm/ProviderConfig.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class ProviderConfig {
7777

7878
case 'gitea':
7979
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
8181
if( !attr.endpoint ) attr.endpoint = attr.server.toString().stripEnd('/') + '/api/v1'
8282
break
8383

modules/nextflow/src/test/groovy/nextflow/scm/ProviderConfigTest.groovy

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,16 @@ class ProviderConfigTest extends Specification {
189189
config.user == null
190190
config.password == null
191191
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'
192202
}
193203

194204
def 'should ending slash and add protocol prefix' () {

0 commit comments

Comments
 (0)