Skip to content

Commit

Permalink
don't invoke GitHub API to get clone URL
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Thorpe <[email protected]>
  • Loading branch information
nathanthorpe committed Aug 29, 2024
1 parent 5a37e61 commit cc1c22d
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,7 @@ class GithubRepositoryProvider extends RepositoryProvider {
/** {@inheritDoc} */
@Override
String getCloneUrl() {
Map response = invokeAndParseResponse( getEndpointUrl() )

def result = response.get('clone_url')
if( !result )
throw new IllegalStateException("Missing clone URL for: $project")

return result
return "${config.server}/${project}.git"
}

@Override
Expand Down

0 comments on commit cc1c22d

Please sign in to comment.