Skip to content

feat(company): expose separate github_url field - #241

Merged
Progi1984 merged 1 commit into
PrestaShop:masterfrom
PrestaEdit:feat/company-github-url
Jul 28, 2026
Merged

Progi1984 merged 1 commit into
PrestaShop:masterfrom
PrestaEdit:feat/company-github-url

Conversation

@PrestaEdit

Copy link
Copy Markdown
Contributor

Summary

  • Add optional github_url field to the Company DTO and its serialized output in topcompanies_prs.json.
  • Read the new field from var/data/companies.json in GenerateTopCompaniesCommand.
  • Populate it for PrestaEdit as a first example.

Motivation

html_url on a company entry points to the company's website, not to GitHub. The front (TopContributors) currently renders it under a "GitHub" label on the company detail page, which is misleading. This change lets us surface both links cleanly (Website + GitHub) on the front sidebar.

The front-side change lives in a companion PR on TopContributors: it renders github_url as the GitHub link and keeps html_url as the Website link.

Test plan

  • Regenerate topcompanies_prs.json and verify PrestaEdit exposes both html_url and github_url.
  • Verify companies without github_url in the source still generate a valid entry (field is null).

🤖 Generated with Claude Code

The Company DTO already carries html_url (which points to the company
website) but no dedicated GitHub URL. This adds an optional github_url
so the front can render GitHub + Website as two distinct sidebar
entries on the company detail page.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@Progi1984
Progi1984 merged commit db46f6a into PrestaShop:master Jul 28, 2026
3 checks passed
@github-project-automation github-project-automation Bot moved this from Ready for review to Merged in PR Dashboard Jul 28, 2026
Progi1984 pushed a commit to PrestaShop/TopContributors that referenced this pull request Jul 28, 2026
Company entries carry the company's **website** in html_url, not a
GitHub URL, so labeling it "GitHub" was misleading. Render two
distinct sidebar entries: an optional GitHub link driven by the new
github_url field, and a Website link keyed off html_url (with the
same icon the contributor sidebar uses).

Consumes the github_url field added to topcompanies_prs.json in
PrestaShop/traces#241.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants