feat(gitea): Support gitUrl (#14947)
* feat: Support gitUrl on gitea platform * refactor: use query token instead of auth header * refactor: debug message style * refactor: use url property query * refactor: use basic http auth for gitea * test: add gitea tests for gitUrl property * refactor: capitalising abbreviations Co-authored-by:HonkingGoose <34918129+HonkingGoose@users.noreply.github.com> * refactor: move getRepoUrl to utils * fix: add missing property ssh_url to fix linting * fix: utils strict mode issues * Merge branch 'main' into main * refactor: use endpoint without api path slicing * refactor: use different null check * refactor: make urls optional Co-authored-by:
Michael Kriese <michael.kriese@visualon.de> * test: prettier fix * test: update test * refactor: throw error if clone_url is missing * test: refactor empty clone_url test * refactor: change empty clone_url logic * refactor: change imports Co-authored-by:
Michael Kriese <michael.kriese@visualon.de> * test: add token tests * refactor: replace deprecated url module * refactor: add null checks * test: add tests for null checks * test: use host rule implementation instead of mock * refactor: remove explicit typing Co-authored-by:
Michael Kriese <michael.kriese@visualon.de> * test: update mocking Co-authored-by:
Michael Kriese <michael.kriese@visualon.de> * test: change dynamic imports * Update lib/modules/platform/gitea/utils.ts Co-authored-by:
HonkingGoose <34918129+HonkingGoose@users.noreply.github.com> Co-authored-by:
Michael Kriese <michael.kriese@visualon.de> Co-authored-by:
Rhys Arkins <rhys@arkins.net>
Showing
- lib/modules/platform/gitea/gitea-helper.spec.ts 1 addition, 0 deletionslib/modules/platform/gitea/gitea-helper.spec.ts
- lib/modules/platform/gitea/gitea-helper.ts 2 additions, 1 deletionlib/modules/platform/gitea/gitea-helper.ts
- lib/modules/platform/gitea/index.spec.ts 165 additions, 3 deletionslib/modules/platform/gitea/index.spec.ts
- lib/modules/platform/gitea/index.ts 4 additions, 11 deletionslib/modules/platform/gitea/index.ts
- lib/modules/platform/gitea/utils.spec.ts 26 additions, 1 deletionlib/modules/platform/gitea/utils.spec.ts
- lib/modules/platform/gitea/utils.ts 54 additions, 0 deletionslib/modules/platform/gitea/utils.ts
Loading
Please register or sign in to comment