feat: add codeberg provider
Resolves #174
TODO
- [x] Check how to prepare the authorization header.
- [x] Test with a private Codeberg repository.
- [x] Validate that the ref type (branch, commit, or tag) can be omitted from the
url.
References
- https://forgejo.org/docs/latest/user/api-usage/#authentication
- https://codeberg.org/api/swagger (
AuthorizationHeaderToken) - https://docs.codeberg.org/advanced/access-token/
Commands
subdir
rm -rf unjs-template && pnpm giget codeberg:unjs/template/test
rm -rf unjs-template && pnpm giget codeberg:unjs/template/test#e24616c743fe6ee33c9e4d4712ba30e34cf4091d
Thanks for the work dear @joaopalmeiro. I might take longer for me to test and release but your work seems nice 👍🏼
Codecov Report
Attention: Patch coverage is 25.00000% with 12 lines in your changes missing coverage. Please review.
Project coverage is 53.80%. Comparing base (
743c9ae) to head (4e7f085). Report is 21 commits behind head on main.
| Files | Patch % | Lines |
|---|---|---|
| src/providers.ts | 20.00% | 12 Missing :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## main #175 +/- ##
==========================================
- Coverage 54.63% 53.80% -0.83%
==========================================
Files 7 7
Lines 615 630 +15
Branches 47 47
==========================================
+ Hits 336 339 +3
- Misses 278 290 +12
Partials 1 1
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Thanks for the work dear @joaopalmeiro. I might take longer for me to test and release but your work seems nice 👍🏼
Sure, take your time! Thank you for the opportunity! Let me know if anything is needed.
Hi, @pi0!
Sorry to bother you, but any chance this PR will be merged in the near future? Thanks!
Hi, @pi0!
Any chance this PR can be reviewed in the near future? Thanks!