Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Github trending widget #1562

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

alhazmy13
Copy link

@alhazmy13 alhazmy13 commented May 1, 2024

alhazmy13 Quick alhazmy13 /master → Lissy93/dashy Commits: 4 | Files Changed: 2 | Additions: 0 Label Unchecked Tasks Powered by Pull Request Badge

Thank you for contributing to Dashy! So that your PR can be handled effectively, please populate the following fields (delete sections that are not applicable)

Category:
Update the widget URL

Overview
This pull request updates the URL for the GitHub trending widget. It changes from the forked repository (https://github.com/Lissy93/gh-trending-no-cors) to the original repository (https://github.com/doforce/github-trending). This update is necessary because the application deployed from the forked repository (https://gh-trending-repos.herokuapp.com/repo) is no longer available, with this change we do update the widget UI & Paramter to match the new response schema for the project.

Code Quality Checklist (Please complete)

  • All changes are backwards compatible
  • All lint checks and tests are passing
  • There are no (new) build warnings or errors
  • (If a new config option is added) Attribute is outlined in the schema and documented
  • (If a new dependency is added) Package is essential, and has been checked out for security or performance
  • Bumps version, if new feature added

@alhazmy13 alhazmy13 requested a review from Lissy93 as a code owner May 1, 2024 08:59
Copy link

netlify bot commented May 1, 2024

Deploy Preview for dashy-dev ready!

Name Link
🔨 Latest commit eb62c7c
🔍 Latest deploy log https://app.netlify.com/sites/dashy-dev/deploys/66320ab50e79a90008e9fbb1
😎 Deploy Preview https://deploy-preview-1562--dashy-dev.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.

@alhazmy13 alhazmy13 changed the title Update Github trending widget URL Update Github trending widget May 1, 2024
Copy link
Owner

@Lissy93 Lissy93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @alhazmy13 - looks good :)
Just a small thing, make sure the lint checks pass, e.g. single quotes

@@ -77,11 +77,11 @@ export default {
slug: repo.repo,
desc: repo.desc,
lang: repo.lang,
link: repo.repo_link,
link: "https://github.com" + repo.repo,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Double quotes will fail the linter. Also, we can can use string interpolation.

- link: "https://github.com" + repo.repo,
+ link: `https://github.com/${repo.repo}`,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants