harness / gitness

Gitness is an Open Source developer platform with Source Control management, Continuous Integration and Continuous Delivery.
https://gitness.com
Apache License 2.0
32.09k stars 2.8k forks source link

Can't import repository from GitHub #3402

Closed kilyinov closed 11 months ago

kilyinov commented 11 months ago

Hi team, trying to import a Spring Petclinic repo (https://github.com/spring-projects/spring-petclinic.git) in Gitness and no luck. This query fails with HTTP 400: http://localhost:3000/api/v1/repos/import Request:

{"description":"","parent_ref":"spring-petclinic","uid":"spring-petclinic.git","provider":{"type":"github","username":"","password":""},"provider_repo":"spring-projects/spring-petclinic.git"}

Video: https://www.youtube.com/watch?v=v4x6G4BwxhA

hitesharinga commented 11 months ago

Hey @kilyinov,

Thank you for reporting the issue.

Please update the repository URL to https://github.com/spring-projects/spring-petclinic. This change should resolve the problem. We are working on a modification to allow it to function with .git appended to the URL.

Thanks

cjlee01 commented 11 months ago

Hey @kilyinov, We have merged a pull request to allow import repo to function with .git appended to the URL. It should be out in the next release.

Closing the issue. Thanks again!

hitesharinga commented 11 months ago

The fix is in harness/gitness:latest and harness/gitness:v3.0.0-beta.2.