giget icon indicating copy to clipboard operation
giget copied to clipboard

feat: add codeberg provider

Open joaopalmeiro opened this issue 1 year ago • 3 comments

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

joaopalmeiro avatar Jul 17 '24 06:07 joaopalmeiro

Thanks for the work dear @joaopalmeiro. I might take longer for me to test and release but your work seems nice 👍🏼

pi0 avatar Jul 17 '24 14:07 pi0

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.

codecov[bot] avatar Jul 17 '24 14:07 codecov[bot]

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.

joaopalmeiro avatar Jul 17 '24 14:07 joaopalmeiro

Hi, @pi0!

Sorry to bother you, but any chance this PR will be merged in the near future? Thanks!

joaopalmeiro avatar Jul 13 '25 08:07 joaopalmeiro

Hi, @pi0!

Any chance this PR can be reviewed in the near future? Thanks!

joaopalmeiro avatar Oct 13 '25 13:10 joaopalmeiro