open-sauced / hot

πŸ•The site that recommends the hottest projects on GitHub.
https://hot.opensauced.pizza
MIT License
418 stars 143 forks source link

feat: working hotlist with some cleanup #521

Closed bdougie closed 4 months ago

bdougie commented 5 months ago

Description

As an effort to revive this project, I am swapping out the repoList from Supabase and leveraging this endpoint instead. https://beta.api.opensauced.pizza/v2/histogram/top/stars

This still needs clean up, and the API needs to filter out spam accounts from showing (check for user 404s).

async function userStatusCode(owner: String) {
  const apiUserUrl = `https://api.github.com/users/${owner}`;
  const response = await fetch(apiUserUrl);
  const {login} = await response.json();
  if (apiUserUrl !== response.url) {
    return [301, login];
  } else {
    return [response.status,""];
  }
}

Related Tickets & Documents

closes #476

Mobile & Desktop Screenshots/Recordings

Screen Shot 2024-04-02 at 7 45 24 PM

Steps to QA

  1. View the landing and note there are repos.

Tier (staff will fill in)

[optional] Are there any post-deployment tasks we need to perform?

[optional] What gif best describes this PR or how it makes you feel?

netlify[bot] commented 5 months ago

Deploy Preview for hot-sauced-ui ready!

Name Link
Latest commit c67f97c9b9d6d9d02686e13a69935937d65944e3
Latest deploy log https://app.netlify.com/sites/hot-sauced-ui/deploys/661ac2649114a50008e68e42
Deploy Preview https://deploy-preview-521--hot-sauced-ui.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

github-actions[bot] commented 4 months ago

:tada: This PR is included in version 2.37.0-beta.3 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] commented 4 months ago

:tada: This PR is included in version 2.37.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: