unjs / ungh

🐙 Unlimited access to github API
https://ungh.cc
MIT License
514 stars 12 forks source link

Add lastRelease in repo infos #10

Closed atinux closed 2 years ago

atinux commented 2 years ago

Example: https://ungh.unjs.io/repo/unjs/h3

thetejasmagade commented 2 years ago

Hey Sébastien I'm working on this enhancement.. But, on my development server it's giving me "401 Unauthorized". What should I've to do for fixing that?

pi0 commented 2 years ago

@thetejasmagade Copy server/.env.example to server/.env and add a personal token.

thetejasmagade commented 2 years ago

Oh Thank you @pi0 💗

thetejasmagade commented 2 years ago

is it right @pi0 ?

Screenshot 2022-11-10 221353

pi0 commented 2 years ago

I think we can add simplified release: { id, tag } to the response. Rest can be via /releases endpoint

thetejasmagade commented 2 years ago

So, basically in this {repo}/{owner}/{name} endpoint we want only release: {id, tag} right?

thetejasmagade commented 2 years ago

Now? @pi0

5

pi0 commented 2 years ago

Perfect :) Feel free to make PR.

thetejasmagade commented 2 years ago

Thank You @pi0 😇

pi0 commented 2 years ago

It if finally added as /releases/latest. Thanks for PR @thetejasmagade again and @Atinux for suggesting it!

thetejasmagade commented 2 years ago

Hello, @pi0 can you please give me more work for same repo?